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 program bounding box collision is off

I am working on a menu for a game in c++ using the allegro graphics library. I am using code blocks and mingw. There are many buttons that use a modified bounding box that returns true if the mouse is over the button. It works fine for all of the…
Rubic
  • 1
  • 1
0
votes
0 answers

Website protected against downloading with Selenium

I used Selenium and Colab to download seller data. I have been unable to download the website content for a few days now. The seller's details are visible in incognito mode. In normal mode, I have to log in to see the data. How to deal with it? My…
dominik
  • 61
  • 1
  • 2
  • 8
0
votes
0 answers

Difficulty setting and testing object attributes

So I am working on a tile based map game with allegro 4.4 using VS2010 There is going to be pathfinding involved later so I have node structures that represent the tiles on the map. The node structures are contained with a Graph structure that I…
0
votes
1 answer

How can I determine which Allegro library functions are threadsafe?

I'm trying to learn how to use the Allegro 5 game programming library. I'm wondering how I can find out which library functions are threadsafe. I understand how to use mutexes to ensure safety in my own code, but the amount that I may need to use…
Charlim
  • 521
  • 4
  • 12
0
votes
1 answer

definition errors in Allgro 5 'multiple definition of ... first defines here ...'

i try to compile my allegro 5 program but i get this for some reason i want to make sort of an engine like structure so i made an app class to make it easier to make game for like ludum dare so you will make a class and make it inherit from app and…
Pislify
  • 1
  • 1
0
votes
1 answer

Issue trying to create an event queue in Allegro 5 C++

I'm trying to create an event queue in Allegro using ALLEGRO_EVENT_QUEUE but I get an error of infringement for trying to read a location 0x0000. This is the error message (it's in Spanish): Excepción no controlada en 0x7BE755AF…
CruzSol
  • 1
  • 1
0
votes
0 answers

Allegro example exits with 127

I successfully managed to compile and link the basic example from the Allegro wiki (completely unchanged) by downloading the binaries and setting up GCC on mingw32 accordingly. Compiling doesn't produce any errors, neither does linking with the…
michalwa
  • 164
  • 17
0
votes
1 answer

Why the program suddenly closes when I hover the cursor in area from 0 to 100 on x axis in allegro

I'm new in allegro and trying to make a small, very basic painting program. I want this program to stop painting when in the area from A(0, 0) to B(100, 600) on 800x600 plane. When I hover my cursor in this area the program suddenly closes itself.…
0
votes
0 answers

Compiling c code including allegro library 4 online

I'm wondering if there is a way to compile c code including allegro library 4 online. I found only solutions which allow to compile c code and libraries that can be included with the directive #include , but allegro doesn't have a…
Gennaro Arguzzi
  • 769
  • 1
  • 14
  • 27
0
votes
1 answer

Periodic thread terminated by pressing escape

I wrote the following code to implement a periodic thread terminated when someone presses escape. The result is a periodic thread that continues also after i pressed escape. Can you tell me where is the error please? The compiler compiles without…
Gennaro Arguzzi
  • 769
  • 1
  • 14
  • 27
0
votes
2 answers

How to show the draw of subbitmap in screen in Allegro?

I using two bitmaps, image (subbitmap) and grid (main bitmap) ALLEGRO_BITMAP* grid = NULL; ALLEGRO_BITMAP* image = NULL; ALLEGRO_DISPLAY* display = NULL; //Initialization display = al_create_display(SCREEN_W, SCREEN_H + INFO_H); grid =…
gvd
  • 1,482
  • 6
  • 32
  • 58
0
votes
1 answer

How to avoid to redraw static background in Allegro 5?

When I initialize Allegro, I draw a 2D table that its cells will change white/black during the program //Global variables int** board; //Draw 2D board for (int i = 0; i < SCREEN_H ; i++) { for (int j = 0; j < SCREEN_W; j++) { …
gvd
  • 1,482
  • 6
  • 32
  • 58
0
votes
1 answer

Allegro C++ library

I've been having this problem for a while. When I compile this part of my code It shows black lines above the bitmaps. What might be the problem and are there any solutions? void start() { FONT *verdana; PALETTE palette; verdana =…
Martin
  • 710
  • 2
  • 11
  • 18
0
votes
0 answers

Uncaught SyntaxError: Unexpected token '<' while running Turnilo locally in dev mode

Turnilo is a business intelligence, data exploration and visualization web application for Druid. Turnilo is a fork of Pivot which is currently available under commercial licence only. The repository was forked from the stalled repository Swiv with…
0
votes
2 answers

In C++, how do I link a program with libpng/zlib/loadpng in a MacOS X?

Umm... kinda self explanatory. I use Xcode 4 and Allegro.
Gabe
  • 85
  • 1
  • 8