Spawn a random amount of squirrels on the map

This commit is contained in:
Yohann D'ANELLO
2020-11-10 21:41:54 +01:00
parent 3b3b8ee8da
commit 3f374d2558
3 changed files with 36 additions and 8 deletions

View File

@ -1,4 +1,5 @@
import sys
from random import randint
from typing import Any
from .entities.player import Player
@ -51,6 +52,7 @@ class Game:
self.player = Player()
self.player.move(1, 6)
self.map.add_entity(self.player)
self.map.spawn_random_entities(randint(1, 5))
@staticmethod
def load_game(filename: str) -> None: