From 6a9f8ab2b47ab9dd19b7ae0e507c16bb919de975 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 16 Mar 2024 19:25:16 +0200 Subject: add enemies --- src/sliceitoff/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sliceitoff/main.py') 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) -- cgit v1.2.3