PDA

View Full Version : 2d platform game engine



paul_nicholls
01-02-2008, 10:50 AM
Hi guys,
Since end of September when the 4E6 gamdev competition was announced with the elements (ponies, accountants, explosions, crystals) I was planing to write a 2d platform game.

I was completely uninspired till I looked at Traveler's 2d platform game tutorials on his site http://www.gameprogrammer.net/index.php?fuseaction=item.list&project_id=abb3911ce261878220c16d458d0014b9, and then later on I found some flash tutorials (tile based games) http://www.tonypa.pri.ee/tbw/start.html.

Thanks to these two sites, I have managed to whip up a proof of concept 2d platform run and jump engine with working ladders and platforms + controllable player, enemy and "bullet" sprite types.

The graphics are just placeholders at the moment to test things.

There is no collision between sprites yet though, but I am very pleased that the platforms and ladders are working nicely :)

http://www.postimage.org/aV25T94J.jpg (http://www.postimage.org/image.php?v=aV25T94J)

The top middle sprite is the player with some bullets fired in different directions, and the other two sprites are enemies who patrol back and forth - changing direction if they hit a wall or the end of the platform they are on.

The player can jump around, fire bullets, climb up/down and jump onto ladders, and there is also gravity of course :-)

cheers,
Paul.

Traveler
01-02-2008, 11:52 AM
That's great!

It's nice to see people still have an interest in my tutorials, even though they're quite dated now.
Anyway, I hope you'll do well in the contest.

paul_nicholls
10-03-2008, 06:16 AM
I found a free png of 2d male character outline 'sprites' online here (gamemaker site - can't remember if registration is necessary)

http://www.yoyogames.com/extras/resource/file/san1/90/90/male_character_outline_final.png

I have edited a bunch some of them to create a simple humanoid pony character for my game. It contains a character standing, walking, running, jumping, falling, crouching, and getting up (so far)


http://www.postimage.org/aV5mETr.jpg (http://www.postimage.org/image.php?v=aV5mETr)

It is a start, at least :-)

cheers,
Paul

paul_nicholls
19-03-2008, 10:54 PM
Hi Guys,
I have uploaded a video of the current work in progress here
http://fpc4gp2x.eonclash.com/downloads/Pony_Game/Pony_Game.html

which now uses my new humanoid pony sprite animations :)

It won't be ready for the gamedev four elements competition, but I am going to try and finish it anyway :-)
cheers,
Paul

Memphis
19-03-2008, 11:15 PM
that is not bad at all, nice work

Huehnerschaender
20-03-2008, 06:49 AM
Yes, really nice :) Love the sliding when he stops walking :)

paul_nicholls
20-03-2008, 07:20 AM
Yes, really nice :) Love the sliding when he stops walking :)

Thanks :)
I made it so he slides only when running, adds a bit of interest :)


cheers,
Paul

paul_nicholls
26-03-2008, 01:03 AM
Hi Everyone,
I have uploaded the work in progress as a playable demo here http://fpc4gp2x.eonclash.com/downloads/ThePonyRebellion.zip

It would be great if people could try it out to see if it is at least playable on their windows machine - I am trying to make it work so far on as many different windows machines as possible.

It uses SDL for the window/input and OpenGL for the output.

Keys are

Keys:


Up = Jump or climb
down = crouch
Left/Right = move left/right
left Shift = Run instead of walk (will slide to a stop if running and you stop left/right keys)
F = fire

The moving platforms are ignored in collisions at the moment as I am trying to get them working correctly.
You can shoot, but there is nothing to shoot at the moment :-)

All I am interested in is if the character is playable.

Comments are welcome, but don't forget it is a concept test at the moment :-)

Can people post their machine specs if they have troubles?

Thanks for your time :-)

cheers,
Paul.

Memphis
26-03-2008, 01:38 AM
coming along really nice, character artwork is good and the slide to stop when running is great feature, will this be screen swap based or scrolling platformer ?

paul_nicholls
26-03-2008, 10:46 AM
coming along really nice, character artwork is good and the slide to stop when running is great feature, will this be screen swap based or scrolling platformer ?

Thanks for the nice comments Memphis! 8)

It is going to be a scrolling platformer in the final product, with the view window following the character around - the single screen is just for the test :-)

cheers,
Paul

Memphis
26-03-2008, 02:19 PM
It is going to be a scrolling platformer in the final product

cool i look forward to checking it out