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
1
vote
1 answer

Allegro pong collision problems

I have just recently started working with allegro 5 and decided to start with a basic pong game. I found one and decided to add some extras to it. After adding two more paddles and the needed variables and controls, I copied and pasted the collision…
Taxes45
  • 467
  • 1
  • 4
  • 24
1
vote
1 answer

Allegro 5 isn't working

I have just started programming in allegro, but the first simple program i wrote to check it is in working order returns the error: "Unhandled exception at 0x0F4C590B (allegro-5.0.7-monolith-md-debug.dll) in C++ Setup.exe: 0xC0000005: Access…
1
vote
1 answer

Allegro error in DevC++

I am running the latest DevC++ 5.5.3 and I need to use the Allegro 5.0.4 so I downloaded it from devpaks and install it common way. But when I want to run the project with allegro the compiler show me error "allegro.h: No such file or directory". I…
user2201196
  • 15
  • 2
  • 5
1
vote
0 answers

mingw32-make install "no rule to make target 'install'

I have an annoying problem, because i don't have any idea, what should I do. I want to extend my code::blocks program with allegro, and i found a really useful documentation (you can see here: https://www.allegro.cc/forums/thread/606041), but i…
radirka
  • 11
  • 3
1
vote
3 answers

vector::erase causing strange behavior

I am trying to create a vertically scrolling shooter where when you press space a bullet is created and then when the bullet goes off screen the bullet is destroyed. I keep track of the bullets through vector delcared as vector bullets; When…
1
vote
1 answer

Starting an executable program that uses additional libs

I made a program with Microsoft Visual Studio 2010. It uses additional libraries (Allegro), and it runs perfectly from MSVC, but I can't run it from it's directory. (...\"project name"\Debug\"project name".exe) It writes that it can't find some kind…
Zoltán Schmidt
  • 1,286
  • 2
  • 28
  • 48
1
vote
1 answer

Why isn't CodeBlocks letting me compile this example Allegro program?

Basically I'm having a problem with getting an Allegro binding (D + Allegro) to work with Code:Blocks. I think it's a settings problem, but I'm not sure where. So here's what I've done so far... Error: module base is in file 'allegro5\base.d' which…
dotnetN00b
  • 5,021
  • 13
  • 62
  • 95
1
vote
1 answer

Issues while making some kind of menu

I made this thing as a part of my program. Language is C++, with Allegro libraries. I want to make it do the next: when clicking, a border appears around one of the two rectangulars. It happens, but only once, at the beginning. After that, the…
Zoltán Schmidt
  • 1,286
  • 2
  • 28
  • 48
1
vote
1 answer

Called function clears changes of previous one

I'm working on a cellular automaton where changes happen in every rounds. Obviously, I made a loop for it - basically it works, fortunately, but if I want to add another type of cells to the map, one type of cells works, but the other doesn't do…
Zoltán Schmidt
  • 1,286
  • 2
  • 28
  • 48
1
vote
1 answer

Called function clears changes of previous one

I'm working on a cellular automaton where changes happen in every rounds. Obviously, I made a loop for it - basically it works, fortunately, but if I want to add another type of cells to the map, the whole thing doesn't work! I mean, one type of…
Zoltán Schmidt
  • 1,286
  • 2
  • 28
  • 48
1
vote
1 answer

Getting the colour that belongs to the given integer

I already learnt the working mechanis of RGBA, so I realised that hexadecimal numbers that belongs to the different colours can be turned into simple integers. It means that I can store colours in integers, even though some of them are quite big. My…
Zoltán Schmidt
  • 1,286
  • 2
  • 28
  • 48
1
vote
1 answer

Linking the Allegro library to a C++ application using the g++ compiler (Ubuntu)

In trying to get Allegro (A C++ game programming library) to work with a very simple C++ application in Ubuntu 12.04, I am unable to get the program to compile with the allegro header definitions. It returns the error allegro.h - no such file or…
Taylor Bishop
  • 479
  • 2
  • 5
  • 18
1
vote
1 answer

C++ & Allegro 4.2 - I need graphics to stretch in windowed mode

I am using C++ with Allegro 4.2 to build a windows game. I want stretchable graphics in windowed mode. I'm am one who likes giving users of my programs lots of options; I always hate when I'm playing a game in windowed mode and I'm either not…
1
vote
2 answers

Transparent sprites in c++ with Allegro

I'm learning to use Allegro. I'm trying to make my character cut out. How do I key out a certain color from my bitmap? which way is used for allegro? Thanks
jmasterx
  • 52,639
  • 96
  • 311
  • 557
1
vote
2 answers

Ogre and Allegro direct3d device 9 conflict

I've been trying to write a program that uses Allegro 5 to handle 2D rendering and and Ogre for 3D rendering but I've had problems with initialization, I've got most of the issues down which were the hInstance of the window, but now the issue is…
jason_rea
  • 43
  • 1
  • 4