[PB 4.31] 2D platformer done with TileStudio
Posted: Wed Oct 14, 2009 11:40 am
Hi,
During the last summer holidays, I played with TileStudio, a very good map / level designer for 2D games.
The good thing with TileStudio is that you can write little scripts to generate code in your favorite programming language. So I wrote a script to generate code PB, using the parallax scrolling code from Ollivier as a basis.
You'll find the script here and the some explainations here (Google Translate)
To test the script, I've made a little 2D platformer (a remake of previous game posted by HuitBit on the french forums: Oldskull 2).
Download source and EXE here
Scenario:
While installing a geothermal water heater in the basement of the Oldskull Tower, our hero realizes he has gone through a pocket of magma, which begins to invade the building. Hurry! Oldskull must reach the controls at the top of the tower to stop the pump! And with those pesky giant bats roaming the tower, this may be harder than expected ... Will you get to the top?
Controls:
- Cursor left / right: move left or right
- Cursor up: jump
- Space: activates the special item you carry.
You can't carry more than an item, and once activated, you must wait until its effects end to trigger another (except for the sword, which can be triggered at any time).
Items:
- Magic Sword of St Zoutigmar the Ticklish: A holy man he was, yes, but Lord Zoutigmar was also quite touchy and did not hesitate to use violence against monsters, demons and infidels of all kinds. His particularly large collection of weapons still testifies to his passion for hitting things with other (harder) things. This sword, for example, make some of the nearby monsters explode in a sudden (but holy) bloody fireworks.
- Shielderang: Small steel shield hand-hammered by generations of crafty smiths, the Shielderang is a piece of armor poorly understood despite its effectiveness. Launched with dexterity, the Shielderang twirls in the air around you and chop into pieces all creatures unfortunate enough to approach you too closely.
- Blue Gentelin: The Blue Gentelin is an adorable little bird with tender eyes and a wonderful voice. Heard at the dawn of spring days, his singing brings joy and serenity to the lucky wanderer nearby. Also, if you shove it whole in your mouth and crush his head between your teeth before swallowing it, it gives you the ability to hover in the air for a few seconds. This is useful.
- Wild Magnet: Unlike conventional magnets, which have undergone a thorough training so that they attract iron only, this wild magnet kept intact its initial properties and draws to him any object nearby, composed of ferrous metal or not.
- Hourglass of Persia: Some Sands of Time, in an hourglass. Not very useful, because if you use it in your kitchen, your boiled eggs won't cook as long as there's sand left in the hourglass. And when there's no more sand, your eggs will start to cook again, but without hourglass, you won't know when they are ready... Oh, and it will also stop the lava for a few seconds.
- Gift: A fruit or a item at random. Don't you like surprises?
Command line parameters:
"-nosync": the "FlipBuffers" command will use "# PB_Screen_NoSynchronization" (for Wine)
"-bench": the game will run as fast as possible
"-bats N": there will be N bats in the level
Have fun, and good luck! (the game is insanely hard
)
During the last summer holidays, I played with TileStudio, a very good map / level designer for 2D games.
The good thing with TileStudio is that you can write little scripts to generate code in your favorite programming language. So I wrote a script to generate code PB, using the parallax scrolling code from Ollivier as a basis.
You'll find the script here and the some explainations here (Google Translate)
To test the script, I've made a little 2D platformer (a remake of previous game posted by HuitBit on the french forums: Oldskull 2).
Download source and EXE here
Scenario:
While installing a geothermal water heater in the basement of the Oldskull Tower, our hero realizes he has gone through a pocket of magma, which begins to invade the building. Hurry! Oldskull must reach the controls at the top of the tower to stop the pump! And with those pesky giant bats roaming the tower, this may be harder than expected ... Will you get to the top?

Controls:
- Cursor left / right: move left or right
- Cursor up: jump
- Space: activates the special item you carry.
You can't carry more than an item, and once activated, you must wait until its effects end to trigger another (except for the sword, which can be triggered at any time).
Items:
- Magic Sword of St Zoutigmar the Ticklish: A holy man he was, yes, but Lord Zoutigmar was also quite touchy and did not hesitate to use violence against monsters, demons and infidels of all kinds. His particularly large collection of weapons still testifies to his passion for hitting things with other (harder) things. This sword, for example, make some of the nearby monsters explode in a sudden (but holy) bloody fireworks.
- Shielderang: Small steel shield hand-hammered by generations of crafty smiths, the Shielderang is a piece of armor poorly understood despite its effectiveness. Launched with dexterity, the Shielderang twirls in the air around you and chop into pieces all creatures unfortunate enough to approach you too closely.
- Blue Gentelin: The Blue Gentelin is an adorable little bird with tender eyes and a wonderful voice. Heard at the dawn of spring days, his singing brings joy and serenity to the lucky wanderer nearby. Also, if you shove it whole in your mouth and crush his head between your teeth before swallowing it, it gives you the ability to hover in the air for a few seconds. This is useful.
- Wild Magnet: Unlike conventional magnets, which have undergone a thorough training so that they attract iron only, this wild magnet kept intact its initial properties and draws to him any object nearby, composed of ferrous metal or not.
- Hourglass of Persia: Some Sands of Time, in an hourglass. Not very useful, because if you use it in your kitchen, your boiled eggs won't cook as long as there's sand left in the hourglass. And when there's no more sand, your eggs will start to cook again, but without hourglass, you won't know when they are ready... Oh, and it will also stop the lava for a few seconds.
- Gift: A fruit or a item at random. Don't you like surprises?
Command line parameters:
"-nosync": the "FlipBuffers" command will use "# PB_Screen_NoSynchronization" (for Wine)
"-bench": the game will run as fast as possible
"-bats N": there will be N bats in the level
Have fun, and good luck! (the game is insanely hard
