The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Create

From Allegro Wiki
Revision as of 14:45, January 25, 2008 by CGamesPlay (talk | contribs) (cat handled by template)
Jump to: navigation, search
Create logo.png

This article is a part of the Create series, originally by Richard Phipps. The article content may have been edited from its original form.

Create | Chapter 1

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!

Completion

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.

Chapters

  • 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:

This finished product will look like this:

Create Free Dungeons screenshot a6.png