Allegro is a library intended for game and multimedia programming. Allegro 4 is backwards-compatible to Allegro 2.0. There were many significant changes in the library from Allegro 4 to Allegro 5, including new function names. Use the allegro4 tag for questions specific to Allegro 4 or earlier versions of the Allegro library.
Questions tagged [allegro4]
10 questions
0
votes
0 answers
Why when I run my application DOS shows me the SIGSEGV error?
I'm trying to make a game for MS-DOS in DOSBox with DJGPP and Allegro 4.
But when I try to draw a shape or show a sprite on screen I get the SIGSEGV error.
This is my code:
RGB palette[256];
if (allegro_init() != 0) return 1;
…

Mau_RyT0
- 3
- 2
0
votes
1 answer
Installing mouse causes segment fault in Dosbox
I'm making a simple program that supports GUI on DOS using Allegro4.
To implement mouse operation, I've created a shape object which presents current information of mouse.
Allegro provides lots of useful global variables such as mouse_x, mouse_y,…

DevShine
- 3
- 2
0
votes
0 answers
Difficulty setting and testing object attributes
So I am working on a tile based map game with allegro 4.4 using VS2010
There is going to be pathfinding involved later so I have node structures that represent the tiles on the map. The node structures are contained with a Graph structure that I…

RazelofHyrulez
- 35
- 7
0
votes
1 answer
How to create a portable executable with allegro 4.4.2
So I am creating a C++ program using the allegro version 4.4.2 library and I need to be able to produce an executable package which I can submit to a course instructor and have run on his computer without issues. I am developing the program using…

RazelofHyrulez
- 35
- 7
0
votes
0 answers
How can i make -lalleg on the linker to work?
Well, i did all i knew to work with allegro in C++ but i keep getting the same problem,
-lalleg not found
D:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:\Program Files…
0
votes
0 answers
How to make an allegro 4 game portable
So, I have this game that was my university project during the first period and I wanted to make it portable so it can run on any computer, even if the allegro library and gnu are not installed on them. This is the link to the project git…

Henrique Sabino
- 546
- 3
- 19
0
votes
0 answers
Mid not playing with Allegro 4 on Ubuntu 14.04
I am following along a book about programming in the C programming language with a game library called Allegro. If you Google "Allegro" you will know exactly what this is if you currently do not. Allegro basically makes writing a video game easier.…

user_loser
- 881
- 1
- 13
- 27
0
votes
1 answer
How to put an moving image at Allegro
I am making a 2d star wars game with allegro4 and I want to add a space ship image which is able to move(with keyboard up,down,right,left).
I can't find the fuction about that.Can you help me?

Tarkan Genç
- 21
- 9
0
votes
0 answers
Sound is not running at Allegro Game Library
I want to making a game with allegro4 on ubuntu.So I improving myself whit tutorials.
Today I want to add a sound in my game.
However I can't run the sound. When I compile my code and run the "output" program the terminal give that message:
ALSA lib…

Tarkan Genç
- 21
- 9
-1
votes
1 answer
Sprite coordinates issue
I created a class for a type of enemy using allegro4 and C++; in this class I have a function that makes move a sprite, like this:
sprite_one(x, y);
sprite_two(x2, y2);
class enemy{
public:
void mov(){
x++;
----
…

jhon k.
- 1