We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e0a4a3 + 3a41106 commit 7ed977fCopy full SHA for 7ed977f
intermediate/collision.py
@@ -1,6 +1,7 @@
1
# Import statements as usual
2
from cocos.sprite import Sprite
3
-from cocos.tiles import load, RectMapCollider
+from cocos.tiles import load
4
+from cocos.mapcolliders import RectMapCollider
5
from cocos.layer import ScrollingManager, ScrollableLayer, ColorLayer
6
from cocos.director import director
7
from cocos.scene import Scene
@@ -37,6 +38,8 @@ def start(self):
37
38
39
# We also tell the game that our sprite is starting on the ground
40
self.on_ground = True
41
+ def on_bump_handler(self, vx, vy):
42
+ return (vx, vy)
43
44
# Now once again we update this "step" function
45
def step(self, dt):
0 commit comments