Release Note v0.1 - Beta
Release Date - August 24, 2019
1 console.log("Beta Version is Here!");
Updated Libraries
GameObject Library Update
Components from Gameobject() has been removed and no plan to implement again.
You can now add custom variables on GameObject()
01 /*
02 Adding custom variables on GameObject()
03 */
04 let player = new GameObject();
05 // Declare
06 player.addVar("speed", 1);
07 // Update
08 player.updateVar("speed", 5);
09 // Retrieve
10 player.getVar("speed"); // Output: 5
You can now move the GameObject by using GameObject.Translate()
1 /*
2 Moving GameObjects using GameObject.Translate() function
3 */
4 let player = new GameObject();
5 player.Translate(xMove, yMove);
6 // Example
7 player.Translate(-1, 0);// Moves to the left.
You can now find the nearest object near GameObject()
1 /*
2 Finding nearest GameObject() using GameObject.near() function
3 */
4 let player = new GameObject();
5 player.near();// Returns the near object in player
You can now remove a GameObject() using delete() function
1 /*
2 removing GameObject() using GameObject.delete() function
3 */
4 let player = new GameObject();
5 player.delete();// removes the player from objects[]
JUtil Library Update
You can now check if two GameObject() collides by using JUtil.checkCollide() function
1 /*
2 Checking if two objects collide
3 */
4 let util = new JUtil();
5 util.checkCollide(GameObject, GameObject);// returns true if two collides, returns false when doesn't