Skip to content

Commit 6b7b30d

Browse files
Merge pull request #177 from Poccket/master
Fixes #164, #169 and #163
2 parents aeb9586 + 6ac4484 commit 6b7b30d

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

enemies/bulletbill.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"movement": "none",
77
"killsontop": true,
88
"killsonsides": true,
9+
"killsonbottom": true,
910

1011
"stompable": true,
1112
"stompcombosuppressor": true,

mario.lua

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,8 +2215,22 @@ function mario:stompenemy(a, b, c, d, side)
22152215
if b.small then
22162216
playsound("shot")
22172217
if b.speedx == 0 then
2218-
addpoints(500, b.x, b.y)
2219-
self.combo = 1
2218+
if self.combo < #mariocombo then
2219+
addpoints(mariocombo[self.combo], self.x, self.y)
2220+
if not b.stompcombosuppressor then
2221+
self.combo = self.combo + 1
2222+
end
2223+
else
2224+
if mariolivecount ~= false then
2225+
for i = 1, players do
2226+
mariolives[i] = mariolives[i]+1
2227+
end
2228+
end
2229+
table.insert(scrollingscores, scrollingscore:new("1up", self.x, self.y))
2230+
playsound("oneup")
2231+
end
2232+
--addpoints(500, b.x, b.y)
2233+
--self.combo = 1
22202234
end
22212235
else
22222236
playsound("stomp")
@@ -3215,7 +3229,7 @@ function mario:startfall()
32153229
end
32163230

32173231
function mario:die(how)
3218-
if self.dead then
3232+
if self.dead or levelfinished then
32193233
return
32203234
end
32213235
if editormode then

0 commit comments

Comments
 (0)