mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
Updating documentation
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
The Game Loop module is a simple abstraction over the game loop concept. Basically most games are built upon two methods:
|
||||
|
||||
* The render method takes the canvas ready for drawing the current state of the game.
|
||||
* The update method receives the delta time in milliseconds since last update and allows you to move the next state.
|
||||
* The update method receives the delta time in seconds since last update and allows you to move the next state.
|
||||
|
||||
The class `Game` can be subclassed and will provide both these methods for you to implement. In return it will provide you with a `widget` property that returns the game widget, that can be rendered in your app.
|
||||
|
||||
@ -43,4 +43,4 @@ A very simple `BaseGame` implementation example can be seen below:
|
||||
add(new MyCrate()); // this will call resize the first time as well
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user