Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#1 2009-08-23 14:05:08

manolis
Member
Registered: 2009-08-23
Posts: 1

Make lifecounter more "authentic"

Hi,
i just discoverd this great project and have to say what has been done till now is quite awesome, but there is one thing i noticed. The lifecounter shows your life count including the life your currently "using". This means when your life count is 1 and you die, its game over. The behavior of the classic titels is different.  The counter only counts the remaining lifes without  the one "in use". So its game over when you have zero lifes and die. This is maybe not a bug, but it could confuse gamers who played the original games.
I haven't tested a lot, but this patch should fix this.

--- src/level.c    (revision 38)
+++ src/level.c    (working copy)
@@ -1105,7 +1105,7 @@
 
             /* death */
             if(team[i]->dead) {
-                if(player_get_lives() > 1) {
+                if(player_get_lives() > 0) {
                     /* restart the level! */
                     if(fadefx_over()) {
                         quest_setvalue(QUESTVALUE_TOTALTIME, quest_getvalue(QUESTVALUE_TOTALTIME)+level_timer);

And the languagefile for the german translation needs an update at LANG_COMPATIBILITY.

greetings
manolis

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org