Skip to content
Doug Thompson edited this page Aug 9, 2019 · 21 revisions

If you're going to use Allegro, you'll need a grasp of the C and/or C++ programming languages.

You can use Allegro in higher-level languages with the bindings, but knowledge of Allegro as a C library is often necessary to use them well.

Teaching C/C++ is beyond the scope of this wiki; most of the concepts we discuss here will assume you understand at least one of them. However, there are various tutorials elsewhere to help you get started quickly.

If you want to learn C++ here are some great tutorials:

Aside: why does Allegro use C/C++?

Compared to frameworks like Unity, Allegro is a low-level library. There's no game engine; it's up to you to write your own!

Given the amount of power that Allegro's philosophy demands, it'd therefore be silly not to base Allegro on a powerful programming language. The language chosen was C - because of its ubiquity, portability, relative simplicity, and of course its high power level in that it provides uninhibited access to memory and hardware.

C++ is (for the most part) a superset of C - that is, it's C with additional functionality. You can therefore use Allegro with either language.

In summary, this means that when you use Allegro, you have a ton of control over how your game runs. This is, of course, a double-edged sword: with great power comes great responsibility.


The title of this page should be Learning C and C++, but GitHub wikis discard '+' characters from page titles.

Clone this wiki locally