Skip to main content

Questions tagged [allegro]

Allegro is a cross-platform, open source, game programming library, primarily for C and C++ developers.

0 votes
0 answers
69 views

I am writing a software renderer with allegro5, but without using its own triangle drawing functions, I use the al_draw_prim function to draw the triangles but with all the z coordinates at zero, the ...
Ivan Rojas's user avatar
0 votes
1 answer
118 views

I am trying to do a palette swap in Allegro 5. I have not found any way to do this from my research. So what I've thought of doing is to do it myself by setting individual pixels. I also haven't found ...
Will's user avatar
  • 1
1 vote
1 answer
160 views

I'm in the very early stages of writing a 2d tile-based game using Allegro. I've hacked the Allegro source to allow me to specify tint values at each corner of a bitmap, however the resulting image ...
stusmith's user avatar
  • 111
1 vote
0 answers
128 views

I have an isometric diamond-shaped map. Currently my map origin is to the far left, instead of the top. The green circle at the top-center of the map is where I want the origin point to be, however ...
Matias Persson's user avatar
1 vote
0 answers
348 views

I've been trying to make my own implementation of Snake clone using Allegro 5 / C. Unfortunetaly I can't find a good method to align x & y position of snake to grid. I'm looking for some good ...
wixy0's user avatar
  • 77
3 votes
1 answer
1k views

while making my own Snake implementation I decided to use delta time for smoothing movement on screen. The problem is that before Snake was moving fixed amount of pixels every frame, but now when ...
wixy0's user avatar
  • 77
3 votes
2 answers
598 views

I'm developing my 1st board-game (go-game) in C with Allegro 5, for a course project. Part of my goal is to make a gamesave of the current gamestate. Let's say for 2 players if we exit the game, and ...
saraasadi78's user avatar
1 vote
1 answer
167 views

I have consistently segfaulted trying to load a TMX file into a *map. ...
dotJson's user avatar
  • 11
2 votes
0 answers
1k views

While looking for a cross platform library for game development, I came across both SDL and Allegro. After extensive research on fora, it seems SDL it way more widely used than Allegro is. I got the ...
Daan Rutten's user avatar
2 votes
1 answer
266 views

I'm using Allegro 5 to create a software-generated "motion blur" effect for my 2D sprites. I basically just have a boost::circular_buffer of some length which holds "snapshots" of the sprite going ...
MattyZ's user avatar
  • 155
-1 votes
1 answer
155 views

I ran brew install allegro on OSX while following this tutorial. My code looks like this: ...
user333866's user avatar
1 vote
1 answer
348 views

I'm trying to render a "skybox" using Allegro 5, that 3D objects can move around "in front" of. I'm having trouble figuring out how to set up the projection transform and where to put the vertices for ...
MattyZ's user avatar
  • 155
2 votes
1 answer
116 views

If I have a data structure for the Allegro threading API as shown in the example here: https://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Threads And I lock the mutex, is there a way to have ...
MattyZ's user avatar
  • 155
0 votes
1 answer
384 views

How can I draw a static bitmap for the background of an Allegro 5 graphics window, if I'm using camera transformations to apply perspective to bitmaps in front of the background so it appears that ...
MattyZ's user avatar
  • 155
0 votes
2 answers
240 views

I've been using allegro for some time, and the timer event worked in all my previous projects, but I don't know what happened this time, I want to move a piece as long as the game is going, but it isn'...
Luna's user avatar
  • 145

15 30 50 per page