--- a/towercraft.py +++ b/towercraft.py @@ -155,7 +155,9 @@ self.airplane = Animation(SCREEN_WIDTH, calcFloorPos(20) + 4, 16, 11, AIRPLANE_SPRITES, -0.5, 2) self.ufo = Animation(SCREEN_WIDTH, calcFloorPos(40) + 4, 16, 8, UFO_SPRITES, -1, 2) - pyxel.init(SCREEN_WIDTH, SCREEN_HEIGHT, 'Towercraft', capture_sec=120) + # FredyGames: on the web, the key that quits the game (Esc) only freezes the page, so it is turned off. + pyxel.init(SCREEN_WIDTH, SCREEN_HEIGHT, 'Towercraft', capture_sec=120, + quit_key=pyxel.KEY_NONE) pyxel.colors.from_list([ 0x1a1c2b, 0x5d265d,