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.

316 questions
-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
  • 25
  • 1
  • 6
-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,268
  • 2
  • 29
  • 61
-1
votes
1 answer

Checking for collision

I'm coding a game for our final project in our major using Allegro but I get some issues with collision. My game is basically Battleships and what I did is after a loading screen, a screen will appear wherein you can select the coordinates of your…
-1
votes
1 answer

Allegro 5 Audio Assertion Fail

I'm wondering if anyone can point me in the right direction for this error. I am learning 2D game programming using Allegro 5 installed in Visual Studio 2010. I have been following a tutorial series and everything has been fine until the last…
Nortski
  • 1
  • 1
-1
votes
1 answer

Reference pointer in class

Well, I need an attribute in my class is a pointer reference & and start to null, because it pointed to the address of an image that has not yet been charged. It is possible to do this? If not possible, is as follows: I'm creating a game with…
vaati
  • 142
  • 1
  • 12
-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
  • 772
  • 2
  • 8
  • 27
-1
votes
2 answers

C++ Allegro stopping the sample

I want to stop my sample at certain point , but it sends me some weird error. This is my code: ALLEGRO_SAMPLE_ID id; ALLEGRO_SAMPLE* spl = al_load_sample("sound.ogg"); al_play_sample(spl, 1.0, 0, 1.0, 0,…
-1
votes
1 answer

allegro 5 linker error

Can someone help me with Allegro 5.0.8 static linking in MSVC2010? allegro-5.0.8-monolith-static-mt.lib; -> this doesn't work for me. I can run the game from IDE but i can't release the solution. I have this at the top of my program: #include…
nix_kc
  • 1
  • 2
-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
  • 7,967
  • 6
  • 24
  • 39
-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
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 +…
1 2 3
21
22