diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-16 19:25:16 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-16 19:25:16 +0200 |
commit | 6a9f8ab2b47ab9dd19b7ae0e507c16bb919de975 (patch) | |
tree | 2abbbb9d1213472e2eda3e86ed8e5275323fd0b6 /src/sliceitoff/main.py | |
parent | 3d1e8a068f98a32e0146d8e9ab58dea49fbb4c74 (diff) |
add enemies
Diffstat (limited to 'src/sliceitoff/main.py')
-rw-r--r-- | src/sliceitoff/main.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sliceitoff/main.py b/src/sliceitoff/main.py index 1e84d28..966f3a1 100644 --- a/src/sliceitoff/main.py +++ b/src/sliceitoff/main.py @@ -6,6 +6,7 @@ from display import Display from status import Status from player import Player from field import Field +from enemies import Enemies from images import Images from game import Game @@ -19,20 +20,22 @@ def main(): status = Status() field = Field() player = Player(field = field) + enemies = Enemies(field = field, level = 2) game = Game(player=player) clock = pygame.time.Clock() - for _ in range(600): + for _ in range(6000): if game.step(): break display.update( [ status.get_sprites(), field.get_sprites(), + enemies.get_sprites(), player.get_sprites() ]) - clock.tick(60) + clock.tick(120) sleep(2) |