lib/parser/commands/DrawspriteCommand.js
function DrawspriteCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 3) throw new SyntaxError('DRAWSPRITE command requires 3 arguments');
    this.id = parsed.args[0];
    this.x = parsed.args[1];
    this.y = parsed.args[2];
    this.scale = parsed.args.length === 4 ? parsed.args[3] : false;
    this.rotation = parsed.args.length === 5 ? parsed.args[4] : false;
}
function DrawspriteCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 3) throw new SyntaxError('DRAWSPRITE command requires 3 arguments');
    this.id = parsed.args[0];
    this.x = parsed.args[1];
    this.y = parsed.args[2];
    this.scale = parsed.args.length === 4 ? parsed.args[3] : false;
    this.rotation = parsed.args.length === 5 ? parsed.args[4] : false;
}
function DrawspriteCommand ( args ) { var parsed = new statements . ArgumentStatement ( args ) ; if ( parsed . args . length < 3 ) throw new SyntaxError ( 'DRAWSPRITE command requires 3 arguments' ) ; this . id = parsed . args [ 0 ] ; this . x = parsed . args [ 1 ] ; this . y = parsed . args [ 2 ] ; this . scale = parsed . args . length === 4 ? parsed . args [ 3 ] : false ; this . rotation = parsed . args . length === 5 ? parsed . args [ 4 ] : false ; }
Draws a sprite

@param {String} args The arguments to the command
@constructor
Draws a sprite