GameObj.toRect - HermesPasser/Ramu GitHub Wiki
Rect
GameObj.toRect()
Return
Rect
: GameObj rect.
Description
Get a rect with the GameObj position and size.
You can test this snippet of code here.
let gameObj = new GameObj(30, 50, 3, 2);
console.log(gameObj.toRect());