Sprite and Image objects now inherit from an empty scalar which can be used to
keep any random data assoceated with that object. Previously there was a
dangerous tendency to pass any scalar operations to the top inherrited scalar
which was the class prototype.
-Image.Adopt = fun( raw_image)
+Image.Adopt = fun (raw_image)
{
- if (raw_image) return raw_image | Image;
+ if (raw_image) return raw_image | [] | Image;
else return NULL;
};
this.SetZ(z);
};
-Sprite |= fun(image)
+Sprite |= fun (image)
{
- new_sprite = Sprite._New() | Sprite;
+ new_sprite = Sprite._New() | [] | Sprite;
if (image) new_sprite.SetImage(image);
return new_sprite;
};