Entities are living during two ticks, fixes #80

This commit is contained in:
Yohann D'ANELLO
2021-01-16 00:40:32 +01:00
parent 87e896bd06
commit d978d319bc
3 changed files with 10 additions and 3 deletions

View File

@ -255,6 +255,7 @@ class TestGame(unittest.TestCase):
self.game.map.add_entity(explosion)
self.assertIn(explosion, self.game.map.entities)
self.game.handle_key_pressed(KeyValues.WAIT)
self.game.handle_key_pressed(KeyValues.WAIT)
self.assertNotIn(explosion, self.game.map.entities)
rabbit = Rabbit()