Ramu.init - HermesPasser/Ramu GitHub Wiki
static
Ramu.init(width, height)
Parameters
int
width: Width of the canvas. (optional, default is 500)int
height: Height of the canvas. (optional, default is 500)
Description
Setup Ramu and call the game loop.
Note: it will throw an error if the code is called outside of a body tag.
Called without parameters: (You can test this snippet of code here)
Ramu.init();
Called with parameters: (You can test this snippet of code here)
Ramu.init(200, 300);