12345678910111213141516171819202122232425262728293031323334 |
- # coding: utf-8
- import pyglet
-
- from synergine2.simulation import Subject
- from synergine2_cocos2d.actor import Actor
- from synergine2_cocos2d.animation import ANIMATION_WALK
-
-
- class Man(Actor):
- animation_image_paths = {
- ANIMATION_WALK: [
- 'actors/man.png',
- 'actors/man_w1.png',
- 'actors/man_w2.png',
- 'actors/man_w3.png',
- 'actors/man_w4.png',
- 'actors/man_w5.png',
- 'actors/man_w6.png',
- 'actors/man_w7.png',
- 'actors/man_w8.png',
- 'actors/man_w9.png',
- 'actors/man_w10.png',
- ],
- # ANIMATION_CRAWL: [
- # 'actors/man_c1.png',
- # 'actors/man_c2.png',
- # 'actors/man_c3.png',
- # 'actors/man_c4.png',
- # ]
- }
-
- def __init__(self, subject: Subject) -> None:
- super().__init__(pyglet.resource.image('actors/man.png'), subject=subject)
|