Fixed type
@ -17,7 +17,7 @@ self.obj.addAnimation(gameUtils.AnimationHandler('anim1', './path/to/animation.w
|
|||||||
self.obj.playAnim('anim1')
|
self.obj.playAnim('anim1')
|
||||||
```
|
```
|
||||||
|
|
||||||
## To use events:
|
## To use the events:
|
||||||
```python
|
```python
|
||||||
# The onEvent function in your Game object
|
# The onEvent function in your Game object
|
||||||
def onEvent(self, event):
|
def onEvent(self, event):
|
||||||
|
|||||||
Reference in New Issue
Block a user