Supertux, cheating at the source code level

Who said that there are no games for Linux?

Other than running games for windows through Wine (as well as nearly any other .exe file), there are many games that run natively on Linux.

I don’t play much, but I’ve personally tried Sauerbraten and Supertux, both of which have been suggested to me by admiral0, a member of the POuL.

Supertux is a nice game, but I’ve found it a bit too difficult to play, especially some levels where there are these flying enemies, identified in this picture:

supertux_cheating

So, to finish this almost-impossible level, I decided to cheat ๐Ÿ™‚

And since I’m a programmer, I thought that the easiest way to cheat was to alter the game’s source code ๐Ÿ˜€ It did not take much time to download the 0.3.1 beta release (which was the version I was playing) and find what to modify.

The code that makes these enemies attack from the sky is defined in

src/badguy/zeekling.cpp

and is the should_we_dive() member function of the Zeekling class.

Just replace the function’s body with a

return false;

and recompile. The game becomes a little bit easier, and I successfully completed the level ๐Ÿ™‚

Tags: ,

5 Responses to “Supertux, cheating at the source code level”

  1. sante rotondi Says:

    fantastico, io baravo cosรฌ ad xmoto ๐Ÿ˜€

  2. Martina Says:

    Io l’ho finito.. dopo un estate di duro lavoro ๐Ÿ˜€
    Decisamente avrei fatto meglio a fare come te…

  3. fedetft Says:

    Complimenti ๐Ÿ™‚ anche io l’ho finito, ma la modifica mi ha consentito di ridurre la difficoltร  degli ultimi livelli

  4. maramau Says:

    sei come il capitano kirk!! miticooo

  5. Anonymous Says:

    i need to get past lvl 1 and these blocks are blocking me plz help me!!!!!! ๐Ÿ™‚

Leave a reply to maramau Cancel reply