Finished level 5
BIN
gamedata/maps/Level 4/background0.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
gamedata/maps/Level 4/background1.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
gamedata/maps/Level 4/background2.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
gamedata/maps/Level 4/background3.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
gamedata/maps/Level 4/background4.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
BIN
gamedata/maps/Level 4/base.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
gamedata/maps/Level 4/bgm.ogg
Normal file
BIN
gamedata/maps/Level 4/filler.png
Normal file
After Width: | Height: | Size: 11 KiB |
10949
gamedata/maps/Level 4/map.json
Normal file
BIN
gamedata/maps/Level 5/background0.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
gamedata/maps/Level 5/background1.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
gamedata/maps/Level 5/background2.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
gamedata/maps/Level 5/background3.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
gamedata/maps/Level 5/background4.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
gamedata/maps/Level 5/background5.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
gamedata/maps/Level 5/base.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
gamedata/maps/Level 5/bgm.ogg
Normal file
BIN
gamedata/maps/Level 5/filler.png
Normal file
After Width: | Height: | Size: 11 KiB |
11934
gamedata/maps/Level 5/map.json
Normal file
@ -1583,7 +1583,7 @@
|
||||
{"x": 512, "y": 96},
|
||||
{"x": 640, "y": 144}
|
||||
],
|
||||
"values": {"0": "Beginning;18", "1": "The Docks;18", "2": "Tiny Island;25"}
|
||||
"values": {"0": "Beginning;18", "1": "The Docks;18", "2": "Tiny Island;25", "3": "Archipelago;32", "4": "Shipping Bridges;25", "5": "Cityscape;25"}
|
||||
},
|
||||
{"name": "Ripple", "id": 1, "_eid": "76589705", "x": 368, "y": 192, "originX": 0, "originY": 0},
|
||||
{"name": "Ripple", "id": 2, "_eid": "76589705", "x": 224, "y": 176, "originX": 0, "originY": 0},
|
||||
|
@ -25,7 +25,8 @@ class GameLoop():
|
||||
|
||||
def delid(self,id):
|
||||
# Supprime un objet à partir de son id
|
||||
del(self.objects[id])
|
||||
if id in self.objects.keys():
|
||||
del(self.objects[id])
|
||||
|
||||
def delname(self,name):
|
||||
# Supprimes les objet à partir d'un nom
|
||||
|
@ -17,6 +17,8 @@ class Balloon(Ennemy):
|
||||
|
||||
self.flip = False
|
||||
|
||||
self.autorespawn = self.game.lib.Timer(3)
|
||||
|
||||
self.canhit = False
|
||||
|
||||
def step(self):
|
||||
|
@ -13,10 +13,16 @@ class Crate(Ennemy):
|
||||
self.rect[2],self.rect[3] = self.size
|
||||
|
||||
self.canhit = False
|
||||
self.respawn = False
|
||||
|
||||
# Add his own rects to the solid list
|
||||
self.collisionrects.append(self.rect)
|
||||
|
||||
self.game.globals["totaltrashes"]+=1
|
||||
|
||||
def deadtrigger(self):
|
||||
self.game.globals["trashes"]+=1
|
||||
|
||||
def step(self):
|
||||
super().step()
|
||||
if self.dead:
|
||||
|
@ -13,6 +13,7 @@ class Ennemy(Movable):
|
||||
self.respawnmargin = 30
|
||||
|
||||
self.respawn = True
|
||||
self.autorespawn = False
|
||||
self.dead = False
|
||||
|
||||
self.particleoffsetx = 0
|
||||
@ -79,5 +80,9 @@ class Ennemy(Movable):
|
||||
elif self.respawn:
|
||||
if not self.onscreen:
|
||||
self.dead = False
|
||||
if self.autorespawn:
|
||||
if self.autorespawn.tick(self.game.dt):
|
||||
self.dead = False
|
||||
self.autorespawn.reset()
|
||||
else:
|
||||
self.game.gameloop.delid(self.id)
|
||||
|