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
1
vote
2 answers

Using Qt Creator with Allegro

I want to get Allegro 4 (MSCV 9) to work with Qt Creator. I am using Windows XP. I have added these lines to my .pro: INCLUDEPATH += C:/Allegro/include \ LIBS += C:/Allegro/lib/allegro-4.4.2-md.lib \ …
user1442214
1
vote
0 answers

Create c++ project on Xcode with allegro5

I have tried recently to create a c++ project on Xcode using allegro5. I had no trouble creating a c++ project, but I encountered some difficulties when trying to use allegro. I followed the following tutorial to install and bound allegro to Xcode :…
Mtrompe
  • 351
  • 5
  • 15
1
vote
2 answers

How to wrap a project into a single .exe?

I made an Allegro game in Visual Studio. It's very small. But how can I get a finished .exe? When I copy the .exe out of the project's debug folder and try to run it, it basically says "Sorry the Allegro dll's are all missing! Install them and try…
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
1
vote
1 answer

How can I make a non-rectangular image in my game?

Don't ask questions, but basically my game has a lot of mouse cursors chasing the player's cursor. I have a tiny little cursor image with a black background which I've been using, but the problem is that it's simply not in the shape of a cursor.…
porque_no_les_deux
  • 479
  • 1
  • 6
  • 18
1
vote
1 answer

Changing Colors of Primitives During Runtime in Allegro 5

I'm writing a 2D object editor so that I can more quickly create UI for basic programs. I'm not using any bitmaps at all. Instead I'm just drawing primitives with function calls in the game loop. Everything so far has been fine, but I'd like to know…
Liuqahs15
  • 56
  • 6
1
vote
3 answers

How to use multiple timers in allegro?

if( ev.type == ALLEGRO_EVENT_TIMER) This is the statement in the event loop to check if the incoming event is a timer event. But all timers would generate this same event, so how do you have multiple timers going at once? How do you differentiate…
porque_no_les_deux
  • 479
  • 1
  • 6
  • 18
1
vote
1 answer

Blit transparent images with Allegro

I'm wondering if there is any possibility to draw png with transparent colors, so I can make something half-transparent. I've read this but I can't get anything to work. I also heard about alpng library but I don't know if it's able to load…
noisy cat
  • 2,865
  • 5
  • 33
  • 51
1
vote
1 answer

text file to bitmap in allegro

hello what I'm currently dealing with is the ability to get input from a text file and then convert it into a bitmap and save it to a file. the input looks like this: ######## # # ######## and I want to draw it using allegro and instead of #…
Markus
  • 686
  • 1
  • 11
  • 18
1
vote
1 answer

How do I force "default" visibility of _al_mangled_main on OS X?

I'm getting the same error as the person asking on the link bellow. There is already an answer, but how exactly do I do that? Thanks for any help https://stackoverflow.com/a/5294039/1333847 edit1) this is the code: #include…
Markus
  • 686
  • 1
  • 11
  • 18
0
votes
1 answer

How do i read from a file to a double in allegro C++?

I am working with a project but I can't seem to read from a file to a double. Please help me. This is my code: std::ifstream loadFile1("voltagelevel.txt"); if (loadFile1) { while (loadFile1&&loop<20) { loadFile1 >>…
0
votes
1 answer

Allegro 5 problems

The code below won't work; it produces a blank screen. But if I change the filled rectangle line toward the bottom line to: al_draw_filled_rectangle(100, 100, 100+15, 100+15, al_map_rgb(155, 255, 155)); It produces a square at the correct…
user701329
  • 127
  • 2
  • 7
0
votes
1 answer

Allegro 5: Image won't load

I have this code. http://pastebin.com/guZ7Svs4 (Stack overflows code methods were giving me trouble) It compiles fine but it won't run. It works fine without the image loading. The image.png file exists. MSCV2010 Express gives me this…
user701329
  • 127
  • 2
  • 7
0
votes
2 answers

Allegro: Why wait for an event or until 60 milliseconds is up?

On the allegro wiki(http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Events) it shows this code. bool get_event = al_wait_for_event_until(event_queue, &ev, &timeout); I get what the code does but why wait for an event or until 60…
user701329
  • 127
  • 2
  • 7
0
votes
3 answers

cmake didn't find my allegro includes and llibs so compile time error

I am trying to set up my code to use the allegro libray, I am using the KDEV4 under mandriva, I installed the allegro-dev package. Then whenusing allegro functions in KDevelop it displays the documentation, so he surely found the library. However…
Qchmqs
  • 1,803
  • 2
  • 20
  • 29
0
votes
5 answers

C++ (seemingly) Random Compiler Errors

I've been playing around with C, C++ and Allegro thanks to a little book and a bigger book I found in an Oxfam book shop. I'm understanding it quite well at the moment but I've hit a wall... Whenever I compile I get these…