The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki
Difference between revisions of "Getting Started v2"
m (Remove top incomplete tag leave the one for Android)
Latest revision as of 19:56, April 12, 2014
- 1 Requirements
- 2 Installing Allegro
- 3 Using Allegro
- 4 Problems Using Allegro
- 5 Resources
- 6 Allegro In Depth
- 7 Legacy
If you want to use Allegro, you should be able to work comfortably with a computer and know the basics of programming in C or C+ either using an IDE or though the command line of your operating system. If you do not know how to program yet then please refer to the section #Learn C or C++.
Allegro can be installed either from pre-built binaries or from sources. If you are on Windows, the recommended way to install Allegro is to install from pre-built binaries. On Windows, it is time-consuming and error prone to compile and install the required supporting libraries of Allegro. On Linux it's recommended to install Allegro from sources. It's much easier on Linux to compile and install the supporting libraries than it is on Windows. On OSX it's recommended that you install MacPorts and then use this environment to build Allegro from sources.
Installing From Binaries
The tutorials below show you how to install Allegro with the pre-built binaries using different IDEs and compilers. If you don't see your system listed here, see the manual building instructions in the next section.
- Install Allegro from binaries for Microsoft Visual Studio 2008.
- Install Allegro from binaries for Microsoft Visual Studio 2010.
- Install Allegro from binaries for MinGW and Code::Blocks.
- Hiding the console window with Code::Blocks has additional information on using Code::Blocks.
Installing From Sources
These tutorials show how to build Allegro from it's sources, which is necessary if there are no pre-built binaries available for your system, or you want to try out the unstable version of Allegro outside of its snapshot releases.
- OSX, Xcode 3, Framework
- OSX, Xcode 4, Framework
- Install Allegro5 From Git. These instructions will also work on Linux if you skip the OS-X specific parts.
Official Getting Started Guide
These tutorials teach you how to use Allegro 5. Starting with the absolute bare necessities of display creation, and extending into all the various add-ons for music, and fonts and primitives.
These tutorials assume you are fairly competent in C/C++.
- Allegro 5 API Tutorials
- Allegro Vivace
- Tilemap Example
- Achieving Resolution Independence
- CodingMadeEasy Allegro 5 youtube video series
Problems Using Allegro
If you have problems using Allegro, this section provides help with what to do next.
At some point (usually sooner than later) you'll need help. The best place to get it is at Allegro.cc. Just sign up for an account, and ask your question on the forums. But be sure to read the instructions that come with the Allegro source code and the helpful articles here on the Wiki first!
This section contains various online resources that may be of interest if you use or want to learn how to use Allegro.
The following three websites are the main Allegro websites with the most general purpose content. Of course there are many other sites related to Allegro, but for the most part you can find links to them from these listed below.
- Allegro Wiki You are here. This is the official wiki (maintained by Thomas Fjellstrom) for all things Allegro and includes helpful articles of all sorts.
- Allegro.cc A community website (maintained by Matthew Leverton) used mainly for the Depot (categorizes and hosts games) and the Forums. This is the best place to ask questions and keep in touch with the Allegro community.
- Official Allegro Website Hosted by SourceForge, the official website has the Allegro source, news, FAQs, etc. For the most part, Allegro.cc and the Wiki have more interesting and up to date information.
External Recommended Websites
The following external web sites related to Allegro may be of interest to you.
- 2D Game Development Course using Allegro 5 - A set of video tutorials covering a wide variety of concepts needed to create simple games with Allegro 5
- C++ Allegro 5 Made Easy - A set of video tutorials covering a slightly different set of concepts than the above series
- Allegro 5 Book - A set of tutorials that cover some basic usage of Allegro 5
Learn C or C++
-  - An online book that will teach you the basics of C programming. Reccomended if you already know a different programming language than C.
Allegro In Depth
Allegro 5 has currently two branches that can be used. The 5.0.x branch has a stable API, which is guaranteed to stay the same for the life time of this branch. There is also the allegro 5.1.x branch, which has an expremental API, where features may be added or removed as we decide on the new API. Development of the 5.1.x branch will lead to a 5.2.x branch which will have a stable API again. Allegro 5.1.x is perfectly usable and has functionality and big fixes the allegrio 5.0.x branch misses, so there is no harm in already using it. However, if you are worried that the changes to the Allegro 5.1 API may break your application, or you require a rock-stable API, then using the Allegro 5.1.x branch is probably the best solution.
- Allegro 4 - Allegro 4 is an older, deprecated version of Allegro. Don't use it for new projects unless you have very good reason to.