The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki
The creation of a game can be a very satisfying and rewarding process. But it is also something that can appear extremely difficult to people relatively new to programming. In this series of articles I intend to create a game from start to finish that features some of the basics of 2D games. The game will be made using only relatively simple C code to show that you don’t always need to use the most advanced features of C to make a game. I hope these articles also show the processes and thinking that occur when developing a game.
Existing programming articles and suggestions seem to focus on a relatively simple game such as Pong or Tetris. While this focus on simple games is useful it can then be difficult for people to make the jump from Pong to working on a full 2D game. These articles are my attempt to address this as the game we will create will have many different levels, be multi-player, feature scrolling, moving enemies and player shots, and also have different level features.
The development will all be done with free software. We will use the Dev-C++ Integrated Development Environment (IDE), the Allegro Library, and free graphics packages to produce the game.
Some basic knowledge of the C programming language and programming techniques is assumed in these articles.
I am not a professional writer or programmer, and so I hope you can accept the rough edges in the writing and the programming!
After 8 articles, Free Dungeons has gone from a concept and a design plan to a fully working and playable game. We have achieved everything we set out to do and I hope these articles have been motivational and useful in explaining how to make a more advanced game. Good luck for your future programming experiences!
Thank you. Richard.
- Chapter 1 – The game and a design plan
- Chapter 2 – Programming methodology and a standard framework
- Chapter 3 – Loading a level and displaying it on the screen
- Chapter 4 – Moving a player around the level
- Chapter 5 – Collecting and shooting
- Chapter 6 – Opening locks, moving monsters, and skull generators
- Chapter 7 – Sounds, multiple players, death, and finishing levels
- Chapter 8 – 26 levels, extra bits, and finishing touches
Free Dungeons finished product
The game that will be created throughout these articles is titled Free Dungeons. You can download the entire product, including source code, graphics, and the program file here:
- Source and binaries – Includes source code, graphics, and program file.
This finished product will look like this: