Ramu 0.7b doc
class
Spritesheet: Drawable
Description
Displays a region (spritesheet) of an image.
Constructor Parameters
Image Object
image: The image.Rect
sheetRect: The spritesheet to be displayed.int
x: Position in x.int
y: Position in y.int
width: Width.int
height: Height.bool
canDraw: 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