Ramu 0.7b doc
class Spritesheet: Drawable
Description
Displays a region (spritesheet) of an image.
Constructor Parameters
Image Objectimage: The image.RectsheetRect: The spritesheet to be displayed.intx: Position in x.inty: Position in y.intwidth: Width.intheight: Height.boolcanDraw: Whether it will be drawn or not. (optional, default is true)let img = Ramu.Utils.getImage("image.png"); let rec = new Rect(20, 20, 40, 40); let sh = new Spritesheet(img, rec, 10, 10, 100, 100, true);
Properties
Public Methods
Inherited Members
- canDestroy
- canDraw
- canUpdate
- destroy
- draw
- drawOutOfCanvas
- drawPriority
- flipHorizontally
- flipVertically
- height
- opacity
- setActive
- start
- tag
- toRect
- update
- updatePriority
- width
- x
- y