Updates to level 2. Fixed extra life through bone dust bug.
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
"type": "coffin"
|
"type": "coffin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x_range": [15, 18],
|
"x_range": [15, 20],
|
||||||
"y": 3,
|
"y": 3,
|
||||||
"sound": "coin",
|
"sound": "coin",
|
||||||
"collectible": true,
|
"collectible": true,
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"type": "coffin"
|
"type": "coffin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x_range": [65, 68],
|
"x_range": [65, 70],
|
||||||
"y": 3,
|
"y": 3,
|
||||||
"sound": "coin",
|
"sound": "coin",
|
||||||
"collectible": true,
|
"collectible": true,
|
||||||
|
@@ -268,7 +268,7 @@ class Level:
|
|||||||
# Extra life
|
# Extra life
|
||||||
self.player._coins = 0
|
self.player._coins = 0
|
||||||
self.player._lives += 1
|
self.player._lives += 1
|
||||||
play_sound(self.sounds['extra_life'])
|
play_sound(self.sounds['get_extra_life'])
|
||||||
|
|
||||||
elif obj.isHazard and not self.player.isJumping:
|
elif obj.isHazard and not self.player.isJumping:
|
||||||
if not self.player.isInvincible:
|
if not self.player.isInvincible:
|
||||||
|
Reference in New Issue
Block a user