Gládio Cítrico

Ramu 0.7b doc

doc homeRamu

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());