Questions tagged [allegro5]

Allegro 5 is the fifth version of the Allegro game programming library for C/C++ developers. It is not backwards compatible with Allegro 4. It is distributed freely, and it supports the following platforms: Unix (Linux, FreeBSD, etc.), Windows, OS X, and iOS.

323 questions
-1
votes
1 answer

Including Allegro 5 Issue

I just installed Allegro 5 from the terminal as outlined here: http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_SVN/OSX#Preliminaries. However, when I try to write a program, it has trouble including allegro.h. I have tried: #include…
user1413793
  • 9,057
  • 7
  • 30
  • 42
-2
votes
1 answer

Allegro5 window won't close

I have a window in allegro, and when the X button at the top is clicked it should close. I have all the necessary code for it to work, but it won't. To initialize the display I have this: display = al_create_display(dwidth, dheight); if…
user4383562
-2
votes
2 answers

Non-numerical Random Errors

The problem I've been coding a game in Microsoft Visual Studio 2010 Professional using C++ and Allegro 5.0.10 for the past year, and it's getting to the point where there isn't much left to do before release. However, when I build the game now, I…
-2
votes
1 answer

Need this to play music

Game dev class. Trying to understand what i did wrong here. Did I add the wrong thing, or do i have it at the wrong place. my goal was to add music. #include "allegro5/allegro.h" #include #include…
screw you
  • 141
  • 1
  • 10
-4
votes
1 answer

Why am I getting errors linking with Allegro 5.0.5

http://pastebin.com/gL40jpHA I don't have time to wrestle with stinking forum syntax when all I am trying to do is figure out a problem completely unrelated. All the information is in the pastebin. It was not letting me post it so I did it the EASY…
-4
votes
2 answers

How do I get a destructor on an object in a vector not to throw a failed assertion?

I'm programming a Breakout game in C++. I'm having a HUGE problem that's preventing me from giving the game multi-ball functionality. I think it has something to do with the destructor. Have a look: for loop for the balls (Driver.cpp): for (Ball& b…
-4
votes
1 answer

Colliding with obstacles on a map

I'm trying to make obstacles that stops the player after colliding. Simply, the walls. I've created collision detection, like this: if (x > (wall.x1 - wall.boundX) && x < (wall.x + wall.boundX) && y >(wall.y1 - wall.boundY) && y < (wall.y +…
-7
votes
1 answer

Drunk Mandelbrot implementation

I wrote a program that is supposed to draw the Mandelbrot fractal. Unfortunately, it seems to be drunk. Here is the output: The relevant function: void drawMandelbrot(float x, float y, float width, float height, float delta) { for (float…
11684
  • 7,356
  • 12
  • 48
  • 71
1 2 3
21
22