|
@@ -2,6 +2,7 @@
|
2
|
2
|
import random
|
3
|
3
|
|
4
|
4
|
from sandbox.tiledstrategy.gui.animation import ANIMATION_WALK
|
|
5
|
+from sandbox.tiledstrategy.gui.animation import ANIMATION_CRAWL
|
5
|
6
|
from synergine2_cocos2d.animation import Animate
|
6
|
7
|
from synergine2_cocos2d.gui import TMXGui
|
7
|
8
|
|
|
@@ -21,4 +22,8 @@ class Game(TMXGui):
|
21
|
22
|
self.layer_manager.set_selectable(man)
|
22
|
23
|
man.scale = 1
|
23
|
24
|
|
24
|
|
- man.do(Animate(ANIMATION_WALK, 10, 4))
|
|
25
|
+ if x % 2:
|
|
26
|
+ man.do(Animate(ANIMATION_WALK, 10, 4))
|
|
27
|
+ else:
|
|
28
|
+ # TODO: Problème de zone selectable, elle reste a la taille de image debout.
|
|
29
|
+ man.do(Animate(ANIMATION_CRAWL, 20, 4))
|