Questions tagged [allegro]

Allegro is a low-level game programming library distributed freely, supporting desktop and mobile platforms. It is coded in C and offers several language bindings.

The latest stable version is 5.0. It is completely rewritten with a new API and full hardware accelerated graphics via OpenGL or D3D. There is official support for Windows, OS X, Linux, and iOS. There is also an unstable branch 5.1.

Links

383 questions
0
votes
1 answer

Linking allegro 5 on debian

I followed this guide: http://wiki.allegro.cc/index.php?title=Debian_and_Allegro_5 Everything went smooth, and I have /usr/include/allegro5 and allegro lirary files in /usr/lib When I compile simple program, includes are resolved correctly, but I…
kovarex
  • 1,766
  • 18
  • 34
-1
votes
3 answers

Need help in C++ with allegro library....?

I installed CodeBlocks 10.5 with minGW compiler. After setting environment variables for minGW I cheked gcc -v on cmd and it is working fine. The problem is that, I have made a small program in CodeBlocks project the code is below #include…
Bilal
  • 2,645
  • 3
  • 28
  • 40
-1
votes
1 answer

Drawing Text Using OpenGL and Allegro 5

How can I draw 2d text using openGL and Allegro 5 in C++? I want to be able to specify a font file to load, and not have to put all the characters into an image file by hand.
John Stimac
  • 5,335
  • 8
  • 40
  • 60
-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++; ---- …
-1
votes
1 answer

How to draw a binary matrix to the display

I'm recreating tetris in c++ for a starter project. I'm using allegro for user input and drawing to the display. Every action, move, rotation is inserted into a 2x2 matrix. Now I got stuck at drawing the actual matrix to the screen. Here's my…
Vid Osep
  • 35
  • 1
  • 1
  • 6
-1
votes
2 answers

How to convert pixels into indices

The problem it's I need to change a matrix and I just have acess to these positions in pixels x and y, how can I convert x and y into an indice ? E.g : char *map[20][17] = { "WWWWWWWWWWWWWWWW", "WFFFFFFFFFFFFFFW", "WFWWWWWFFWWWWWFW", …
user7075574
-1
votes
1 answer

I can't log out the output C program

I am developping a game with allegro library. I wrote a starter C code then I compile the program on Ubuntu Terminal.After that When I open the output program,the program open but not closed.Cancel Button(X) is not working. Here is my starter…
-1
votes
1 answer

Allegro Throws errors when trying to draw lines

For some reason allegro (C++ Game Engine), throws errors when i try to run... So first this code works fine ! : #include #include int main(void) { int width = 640, height = 480; …
amanuel2
  • 4,508
  • 4
  • 36
  • 67
-1
votes
1 answer

Unhandled exception error Visual Studio 2012 and Allegro 4

I´m using allegro 4.4.2 on Visual Studio 2012 for a school project. Allegro is installed and working, and I'm trying to get it to load a map.txt file which is located in the project folder. When debugging, allegro freezes and becomes incredibly slow…
Turkeydipking
  • 33
  • 1
  • 5
-1
votes
1 answer

How can I learn advanced game programming?

I am Computer Science student, but there is no particular provision or course for learning game programming in our college. I have been studying allegro API for the past year. But I am still unsure how to apply physics in games and realistic games.…
-1
votes
1 answer

Why do allegro crash when blitting? What does these debug reports mean?

I was programming in c++ using the allegro library in code::blocks. I declared a bitmap, loaded the bitmap and blit the image to test if the bitmap is being drawn into the screen. I compiled this program and the compiler found no errors. When I run…
-1
votes
5 answers

Software to track several memory errors in old project?

I am programming a game since 2 years ago. sometimes some memory errors (ie: a function returning junk instead of what it was supposed to return, or a crash that only happen on Linux, and never happen with GDB or Windows) happen seemly at random.…
speeder
  • 6,197
  • 5
  • 34
  • 51
-1
votes
2 answers

Allegro 5 assertion fail

I am trying to load a bitmap with allegro 5.0.10 ALLEGRO_PATH *path = al_get_standard_path(ALLEGRO_RESOURCES_PATH); al_set_path_filename(path, "Bitmap.bmp"); al_init_image_addon(); ALLEGRO_BITMAP *bmp = al_load_bitmap(al_path_cstr(path, '/')); if…
junyi00
  • 792
  • 3
  • 8
  • 28
-1
votes
1 answer

Creating a mutex class using Allegro mutexes

I'm trying to create a custom mutex class based on the Allegro mutex (cross-platform). I am not using C++11. I'm trying to do it like this, but it seems to be a bit superfluous: template class Mutex { private: ALLEGRO_MUTEX *mutex =…
creXALBO
  • 307
  • 1
  • 3
  • 13
-1
votes
1 answer

Why is this member's value changing?

I am creating an object called "ID1000" of type "Maps". The object contains a member, "Platforms[][]". Platforms[][] is a two-dimensional array. class Maps{ int Platforms[][4] } ID1000; ID1000.Platforms[0][0] = 100; Here, I set Platforms[0][0]…
1 2 3
25
26