-
Notifications
You must be signed in to change notification settings - Fork 0
gameObject ( Core )
There Is Core And Power Of The Framework ! All Commands Are Easier Here ! You Can Create A gameObject With Giving Id Of The Element Then You Have All Commands !
Way To Use :
var player = new gameObject("player");
player.[function]();
All Functions Are Here :
Move The Game Object In x Pixels ( Horizontal ) .
Move The Game Object In y Pixels ( Vertical ) .
Checks If There Is A Collision To Target Object Or Not .
Return A JSON Object Contains x And y Of The gameObject .
Set The gameObject src .
Remove The Element .
Returns The Object x .
Returns The Object y .
Set The gameObject X to x .
Set The gameObject Y to y .
Set The gameObject Y to y And X To x .
Acts LikeThat .
Acts Like That .
Acts Like That .
Some Useful Methods And Variables Are In This Example :
var a = new gameObject("player");
var b = new gameObject("enemy");
if(a.collisionTo(b.object)){
print("Enemy Down !");
}
You Can Access To The Html Object Like That :
var a = new gameObject("test");
->a.object
You Can Find If Object Is gameObject Like That :
var a = new gameObject("test");
->a.type // If Returns "gameObject" , That's It ! Else Its An Html Object ! ( Or Something Else ... )