new SpriteRenderer()
Example
var ship = new DE.GameObject( { x: 500, y: 500, renderer: new DE.SpriteRenderer( { "spriteName": "ship", "scale": 0.7, "offsetY": -30 } ) } );
draw a sprite
if the given sprite is animated, it'll animate it automatically according to you imagesDatas file
checkout Renderer for standard parameters
var ship = new DE.GameObject( { x: 500, y: 500, renderer: new DE.SpriteRenderer( { "spriteName": "ship", "scale": 0.7, "offsetY": -30 } ) } );