Create Phaser Sprite
craft.$sprite(key,options)
key
Phaser sprite keyoptions
<Object> | <String> Can be used as string to pass a framex
<Number> Position xy
<Number> Position yframe
<Number> Phaser sprite framegroup
<Number> Phaser group//simple
craft.$sprite('banana')
//full default values
craft.$sprite('banana',{
x:0,
y:0,
frame:undefined, // phaser sprite frame
group:undefined // phaser group to be insert
})
// second parameter can be used as string to call a frame
craft.$sprite('atlas','banana');