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

C++ Allegro 5 error

I am trying to learn some allegro 5 principles with youtube tutorials and here is my first problem . #include #include #include #include #define…
samvel1024
  • 1,123
  • 4
  • 15
  • 39
0
votes
2 answers

C++ Allegro Drawing Sprites (even without any loop) Slows Graphics Down

I am developing a 2D platform game using Allegro with C++. However, there is a problem. In the game the character has rubber bullets and when a bullet is fired, it reflects from the walls forever. The character has ability to fire 30 bullets,…
rainbowunicorn
  • 63
  • 1
  • 10
0
votes
1 answer

Allegro library missing dll

I have installed allegro 5.0.8 version on visual c++2010 express . But now when I run the code it doesn't give any syntax errors but after opening the console a window opens which reports that I don't have MSVCR110d.dll file . What it means ? How…
samvel1024
  • 1,123
  • 4
  • 15
  • 39
0
votes
1 answer

Allegro 4 , load gif image

I am trying to create a program using allegro 4 to load a few images for creating a space invaders User interface. #include int main(void) { char *filename = "ship.gif"; BITMAP *image; int ret; allegro_init();…
0
votes
1 answer

How do I distribute my C++ Allegro 5 programs so that they work on computers without Allegro installed?

I am making a game that I do not want my users to have to download anything but the game folder and be able to simply double click and run. I can compile my code in OSX without Xcode just fine but when I try run the game on another computer using…
mattjegan
  • 2,724
  • 1
  • 26
  • 37
0
votes
1 answer

Best approach for command history system

Ok, I wasn't sure how to explain my question in the title but basically what I am trying to achieve is a "Command Line"-esque GUI using Allegro. The graphics work fine but the method of keeping the history isn't working for obvious reasons. I'm…
PurityLake
  • 1,110
  • 10
  • 18
0
votes
1 answer

Weird visual error with drawing Allegro primitives

I am using the allegro_primitives.h header file, and when I go to draw a rectangle with al_draw_filled_rectangle, and I move the rectangle with the keys, the outline of the rectangle in the direction that the rectangle is going is changing colors.…
angrytoad
  • 11
  • 1
0
votes
1 answer

Allegro 5 Bounding Box Detection

My bounding box detection is off. It detects collision when the boxes are "close" but not touching. Here is the relevant part off my code. if(bounding_box_collision(playerOne.x, playerOne.y, playerOne.x + 15, playerOne.y + 15, foodx, foody,…
user701329
  • 127
  • 2
  • 7
0
votes
1 answer

Allegro 5 al_create_display(x, y) not working

I have set up my allegro 5.0.7 project in MSVC 2010 properly and the code executes. I am able to compile and run programs that will display an error dialog or something. However, whenever I run a program that draws a window, the window is not shown…
user1588452
  • 33
  • 1
  • 6
0
votes
1 answer

Run-Time Check Failure #2 - Stack around the variable 'e_color' was corrupted

so I'm kind of new to this site, as well as to programming with c++ and allegro, but I've been having this problem in this game I'm making, and I can't seem to figure it out. It doesn't seem to be an array overflow (which is what I originally…
user2268170
  • 1
  • 1
  • 3
0
votes
1 answer

C and Allegro - How to detect shots in a top-view 2D shooter?

al_draw_rotated_bitmap(playerTux, defaultPlayer1.size / 2, defaultPlayer1.size / 2, defaultPlayer1.pos[0], defaultPlayer1.pos[1], mousePos / mouseSensitivity, 0); al_draw_rotated_bitmap(playerTux, defaultPlayer2.size / 2,…
Ericson Willians
  • 7,606
  • 11
  • 63
  • 114
0
votes
1 answer

Error with masked_blit in Allegro5

I use masked_blit() in my program to display a .bmp with transparency (using perfect pink). But when I build, it says : error: ‘masked_blit’ was not declared in this scope I included Allegro's .h, and of course I didn't forgot all of…
Elanore
  • 3
  • 1
0
votes
3 answers

AppDelegate not being called on iOS / Allegro 5

-- I have this in my appdelegate.m among all the other default calls: -- @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc]…
0
votes
1 answer

C++ Allegro 5.0.8 - al_load_bitmap() returning NULL on Linux

I'm developing a game in Allegro 5.0.8, and everything was going well, until i tried compiling it and running it on Linux (Mint 14)...so i did sime tests; #include #include #include int…
Sylar
  • 357
  • 1
  • 5
  • 15
0
votes
1 answer

Allegro native dialogues not recognized

I got allegro5 set up, and simple programs (like displaying a window, filling it with a black background) work fine. When I try importing other headers (like native dialogs) though, I run into problems. For example, when compiling this code #include…
Puzzler3141
  • 1,682
  • 2
  • 14
  • 21