invaders: change points per enemy

this commits changes the points you get per enemy:

enemy #1 : 15
enemy #2 : 10
enemy #3 : 5
This commit is contained in:
Gregor Best 2008-10-21 21:22:12 +02:00 committed by Julien Danjou
parent 04b5e24c43
commit e2d8f043b0
1 changed files with 8 additions and 1 deletions

View File

@ -243,7 +243,14 @@ function enemies.handle ()
e.screen = nil e.screen = nil
s.screen = nil s.screen = nil
if (y % 3) == 0 then
gamedata.score = gamedata.score + 15
elseif (y % 3) == 1 then
gamedata.score = gamedata.score + 10 gamedata.score = gamedata.score + 10
else
gamedata.score = gamedata.score + 5
end
gamedata.field.status.text = gamedata.score.." | "..gamedata.ammo.." " gamedata.field.status.text = gamedata.score.." | "..gamedata.ammo.." "
break break
end end