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 Crashes when I move the window

I Have built a C++ Allegro Map Editor. One of the requests was to have a log so I've put it in the console window for every move that is made... Problem now is that the console window is under the main window (Used GFX_AUTODETECT_WINDOWED), But…
user925890
  • 11
  • 2
0
votes
1 answer

"Peiran message result: 0" messages using the Allegro 5 game library

I am making a game with the Allegro 5 game library for C++ and I am using visual studio 2022. When I run my game these messages are in the output. The messages keep appearing very fast so I think there might be a slight performance loss. Here are…
stew
  • 1
  • 4
0
votes
0 answers

How disable resizing bitmaps with resize display in Allegro 5 library and C++?

I coding a game on C++(20) with Allegro 5 library. I added a flag ALLEGRO_RESIZABLE with al_set_new_display_flags to main ALLEGRO_DISPLAY for get resizable window. BUT. Now my bitmaps resizable too: when i resize window with my mouse my bitmaps…
0
votes
1 answer

Allegro 4.2.4 in palette mode on Windows7 corruption

I have problem with Allegro 4.2.4 running palette mode (256 colors) in Windows 7. I found over Internet solution of killing explorer and it's working indeed, however it would be ridiculous to expect that end user will kill explorer when trying to…
PiotrK
  • 4,210
  • 6
  • 45
  • 65
0
votes
0 answers

I can't get help on a symbol in allegro common lisp unless i delete the previous help window

When I start Allegro Common Lisp an help windows opens, but when I try to obtain help for a symbol the window does not update. I have to delete the window and ask help on a symbol. This is quite tiring and boring. Does anybody know how to solve this…
ponipei
  • 23
  • 4
0
votes
0 answers

Allegro5 input lag/stuttering because of an overfilling event queue

I got an assignment in my class to develop a simple game in C with the Allegro5 library. In class we developed tetris together. The approach was to implement a while(true) loop within our main.c with a switch case to listen for events. We registered…
MichaelS
  • 171
  • 11
0
votes
0 answers

Getting a bunch of weird errors, Open Watcom C++ 2.0 with Allegro 4.2.3 library

I'm trying to compile a project written in C++ and using Allegro 4.2.3 library using Open Watcom C/C++ 2.0 compiler. The OS I'm targetting is MS-DOS. I'm getting the same errors when using CMake in CLion IDE, and when using Open Watcom IDE (compiler…
0
votes
1 answer

Allegro c++; flashing BITMAP

im trying to make a simple program that has one BITMAP that is the "background" and another BITMAP that i can move, ive tried different ways, like drawing the background directly to screen, tried making two buffers, ive tried putting both BITMAPS in…
0
votes
0 answers

flickering in allegro with loops

The red bars a cross the top flickers. I can make them out of the loop but not in the loop. #include void init(); void deinit(); int main() { init(); int length = 20; int x= 900; int y= 600; int c; //while (!key[KEY_ESC]) { …
0
votes
1 answer

korean font with allegro 4.4

I am trying to support korean font in my Allegro project. I've converted ttf to fnt format with many sorts of programs, and check to see whether it works the way I expect it to. However, it never did. PALETTE pal; FONT * font10; font10 = …
kim taeyun
  • 1,837
  • 2
  • 24
  • 49
0
votes
1 answer

How can I increase the size of the displayed text using a library like Allegro? C

How can I change the size of the displayed font to display the following entry: al_draw_textf(font, al_map_rgb(204, 255, 255), WIDTH / 2, 50,\ ALLEGRO_ALIGN_CENTER, "%d : %d", pl1.scope, pl2.scope); Created a standard ASCII font which…
Astrodynamic
  • 103
  • 1
  • 5
0
votes
1 answer

Allegro 5 game - bitmap drawing slows down after running for a few seconds

I have a problem with my Allegro 5 code. It has three, sections, a section that checks for inputs, then a section that runs every 1/30th of a second with a timer, and a graphics drawing section. The program begins, spawns all the objects on the…
Alex W
  • 1
  • 1
0
votes
0 answers

How do I setup a CMake project with both Allegro and MSVC?

Lately I've been experimenting with the Allegro game library, but I'm having some trouble setting it up in the following scenario: I would like to create a cross-platform project (for at least Linux and Windows binaries, preferably also OS X) using…
0
votes
1 answer

Can't install/use allegro

So, I've been working on programming a small game using allegro5. I'm currently in college, so my professor gave us some kind of "base project" on Visual Studio that already had allegro in it. The problem is, that when I run the program from Visual…
Fio
  • 1
0
votes
0 answers

How to add allegro Library in CMake?

What's the path I must to put in cmakelist? cmake_minimum_required(VERSION 3.17) project(trabajo) set(CMAKE_CXX_STANDARD 14) add_executable(trabajo main.cpp) target_link_libraries(trabajo - lmingw32 - allegro_acodec-5.0.10-md-debug)