-
Notifications
You must be signed in to change notification settings - Fork 8
Learning C
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.
- Giraffe Academy's C tutorial on YouTube
- Derek Banes's C tutorial on YouTube
- Try C in your browser
- C on TutorialsPoint
If you want to learn C++ here are some great tutorials:
- LearnCpp Highly recommended !
- cplusplus.com not as complete, but a good reference.
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.