Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » How to learn to make a first basic game in allegro 4?

This thread is locked; no one can reply to it. rss feed Print
How to learn to make a first basic game in allegro 4?
b aryal
Member #17,071
April 2019

i am using allegro 4 and i love it.
i tried few programs from "game programming all in one"..i finished all topics of vector graphics i.e drawing rectangles, etc..
now, i wanted to go through the tank war game given in it..
i am having such a hard time understanding it...u can't believe...while learning i think like this, how can i apply this concept to a different program that i want to make (penalty kick soccer game with rectangle player ..simple)
but, things aren't going like that...even understanding what he is doing is being hard..
it has been nearly 1 active week of practicing allegro in last 1 month.
still things are going hard for me....
so, my question is-: how should i learn?
people say use google...and i find really nothing about allegro 4 on google..
people say use documentation..though there is everything in allegro 4 there is no applications made with that..so that is also somehow tough to get...
so, how can i proceed and what can i expect the learning to be?
please give me hints ..:'(

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Okay, here we go again.

Allegro 4 is the old version of Allegro. 5 is the new version and is almost completely different, but similar in some ways.

Harbour's book is not the best way to learn, but it works, sort of.

First, you need a good reference manual like this one :

Allegro 4.4.3 CHM Manual.

Second, every version of allegro comes with examples that show you how to do most things. They come as source code with the source package.

All things allegro are now at

http://liballeg.org

and

https://github.com/liballeg

Try downloading the source code and compiling the examples for yourself. It will give you experience and help you understand how to do more complex things with your code.

Second, allegro is just a graphics, multimedia, and input library. It's up to you to program the rest of the game like logic and display and update.

Third, you should be using the latest version of allegro. Whether you want to stick with Allegro 4 is up to you, but it's no longer under development. That means using Allegro 4.4.3 or Allegro 5.2.5 is the best option.

You can find the latest binaries on github or you can use mine if you like.

All my binaries are here, along with some other goodies :

https://bitbucket.org/bugsquasher/unofficial-allegro-5-binaries/downloads/

All the example source code is online as well, see here :

https://github.com/liballeg/allegro5/tree/4.4/examples

https://github.com/liballeg/allegro5/tree/master/examples

Please be specific in your questions so we can help you more easily.

Go to: