Simple Platformer Prototypes

This week I present some of my prototype work for a very simple platformer. Tech demos have evolved from “very little at all” to “not much more” and have been used as a tool to learn both the C++ programming language and the SDL multimedia library.

Lazyfoo has a set of SDL tutorials that served as a starting point for the very first prototype. Tonypa’s and OutsideOfSociety’s tile-based game tutorials for Adobe Flash were also aiding in this development process. The first demo featured a red block that could move collide with black tiles.

Initial demo

Initial demo

A revision was made to make use of smaller sprite sizes to test how it scaled with a larger number of objects/tiles.

Larger (320x320) platformer demo

Larger (320x320) platformer demo

As I began to get a better grasp of C++, I wanted to recreate what I had done. The demo was recreated with the inclusion of a level editor using point and click. Left click places a tiles and right click toggles between available tiles.

Platformer editor

Platformer editor

Editor with a modified level

Editor with a modified level

The next step was to place a character in the level and add collision detection with the tiles. This next screenshot shows a character that is controllable by the user. The red box indicates where a collision has occurred. The collision method was based off of the jnrdev tutorials. (In the process, I came across some issues with the tile collision method described by the tutorials.)

The red box show environment collision

The red box show environment collision

This project has been abandoned for the time being to work on a top-down game called BAMA. The latest source code for this platformer is available via github.

Tags: ,

Comments are closed.