-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
25 lines (22 loc) · 787 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import ppb
from ppb import keycodes
from shooter import systems
from shooter.events import Shoot
from shooter.scene import Splash
from shooter.values import resolution
inputs = [
systems.Axis("vertical", keycodes.Down, keycodes.Up),
systems.Axis("horizontal", keycodes.Left, keycodes.Right),
systems.Impulse("fire", keycodes.Space, Shoot)
]
with ppb.GameEngine(Splash,
systems=[
systems.ControllerSystem,
systems.LifeCounter,
systems.EnemyLoader,
systems.PowerUp,
systems.ScoringSystem,
systems.EnemyComms,
],
resolution=resolution, inputs=inputs) as ge:
ge.run()