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
0 answers

odd behaviour of al_destroy_timer

I am making a TRON Game using Allegro, and in my game loop I have the following code: al_start_timer(game->timer); while(1) { al_wait_for_event(game->timer_queue, &evt); if(evt.type == ALLEGRO_EVENT_TIMER) ++timer; …
lucas_turci
  • 315
  • 1
  • 3
  • 12
0
votes
1 answer

Allegro 5 : Handling small sprite dimension in big resolution display

I'm new to game programming. Here I have some sprites, say Mario sprites in a spritesheet. It just 32 x 32 pixel for each sprite. One sprite contain one movement, full body of Mario. Unfortunately, I have to work at least with 800 x 640 display. As…
imeluntuk
  • 385
  • 1
  • 5
  • 15
0
votes
0 answers

Mouse click lasts too long / clearing event queue

I create a 2D RPG Game and managed to make there some walking of character by pointing the destination with mouse click. Now, I set an enter menu that shows up after running a program and before a game loop starts. When I press (or release) a mouse…
P3piK
  • 3
  • 3
0
votes
1 answer

code blocks osx allegro

I am new to C++ and due to uni requirements we are all using Code Blocks. I use it on 10.10.5 OS X. Now I have to do a project that uses allegro5 library, but I can not install it! I have spent so much time trying to follow different tutorials like…
Łukasz d
  • 35
  • 6
0
votes
1 answer

c++ allegro input

I'm building a simple ice sliding puzzle to test uses of allegro. So far I've got the whole thing working although I haven't actually added in the objective yet or the puzzle, just the engine behind it. I'm having a little trouble making "r" jump…
user33061
  • 1,747
  • 6
  • 26
  • 29
0
votes
1 answer

rotate_sprite rotation is ~65625 times too small

I'm using c++98 and Allegro 4 and I'm attempting to use the rotate_sprite function. The documentation claims that in the angle parameter, 256 is a full circle and 64 is a right angle. void rotate_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y,…
Scott Mikutsky
  • 746
  • 7
  • 21
0
votes
1 answer

What is a typical example for playing video files of any type with Allegro library?

I want to play a video of some type/format in my c++ program, i have installed Allegro 4.2.2 and Allegro5 along with both MSVC10 and MSVC13, i don't want to use any other library as they are a bit difficult to understand, if there is an easier way…
0
votes
1 answer

Conversion from 'int' to non-scalar type conts 'Vec2' requested

I'm a beginner in C++ and I'm trying to do a snake, but I have a problem. Lines of errors: C:\Users\Kcper\Desktop\Snej w allegro\main.cpp||In function 'void display_game()':| C:\Users\Kcper\Desktop\Snej w allegro\main.cpp|58|warning: left operand of…
Dredo
  • 11
  • 3
0
votes
0 answers

Issue with DLL files

http://pastebin.com/ZLbRhnTi Here's the code, I can't get my PC to find the files. 'SPGAME.exe' (Win32): Loaded 'C:\Users\matth_000\Documents\Visual Studio 2012\Projects\SPGAME\Debug\SPGAME.exe'. Symbols loaded. 'SPGAME.exe' (Win32): Loaded…
0
votes
0 answers

Allegro 5 "Has stopped working" when loading a font

Title says it all. I'm (trying to) load a font in Allegro 5. Running the code at the bottom of this post results in a blank white window opening (desired) but crashes with "TSAGAME.EXE has stopped working" (not desired). Command prompt returns with…
0
votes
1 answer

Why is allegro c++ clearing the screen with blue color?

I am using the following code, which should clear the screen with black color, but it is blue. #define ALLEGRO_STATICLINK #include int main() { al_init(); ALLEGRO_DISPLAY* display = al_create_display(800, 600); …
alufers
  • 134
  • 2
  • 10
0
votes
2 answers

Pseudo 3D walls (top-down raycasting, sort of)

See, I'm not posting code because I need logic, math, algorithms. Well: I'm trying to achieve a 3d-looking visual for a top-down tile map using layers and parallax scrolling. The thing is: At the moment I simply set different "speeds" for each…
0
votes
1 answer

Linking Allegro 4.4 library in msvc to a project

I succeeded to compile allegro 4.4 in visual studio 2013 (msvc 12). I try to compile atanks 6.4 opensource project. Inside the project I link to alleg.lib that already compile in allegro project. When I compile atanks, it throw errors messages: This…
Tal
  • 1,145
  • 2
  • 14
  • 32
0
votes
1 answer

Netbeans can find headers but no reference to functions (netbeans/c++)

So, I got this project that I was making using CodeBlocks but I'm migrating it to Netbeans because the first IDE is very bad for compiling (imo). I'm on Ubuntu 14, added the code on a blank new c++ project on netbeans and It was fine, found all the…
user5245279
0
votes
2 answers

Structure of lisp projects

When I use Eclipse or Visual Studio or Xcode, structure of the project gets created automatically and one can get started immediately. Now I am trying to create a project on Allegro CL express edition and if I collect all lisp files and run it, it…
Pankaj Sejwal
  • 1,605
  • 1
  • 18
  • 27