allegro

Best way to detect collision between sprites?

Whats the best way to detect collisions in a 2d game sprites? I am currently working in allegro and G++ ...

Best 2D animation library/tech for "iPhone" style animation on WIN32?

All, I have built a nifty demo application that displays data about our internal systems as a full-screen "billboard" style display. You could think of this as something like an application displaying the national deficit - rapidly increasing numbers, animating very quickly, all day. The problem is that the demo works really well and t...

Review my game project OR (How to peer-review my project) ?

I just finished a 2d platformer in C++/Allegro. Its still in an incomplete stage... I wonder how to go about a peer-review from people who are into game development. I would like to review my project on grounds of game play Collision detection use of OOP programming of sounds, effects etc any further ideas ways in which i could have ...

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 the player back to the starting spot, can anyone tell me why? #include <allegro.h> #include...

Allegro Webactions not serving on SBCL. Methods to debug or possible solutions?

I am trying to get Portable Allegro Serve and Webactions up and running on SBCL. I have so far managed to make paserve properly serve pages. But webactions chunks out with the following warning in the console: 1-aserve-worker: 05/27/09 - 21:28:43 - processing clp file "/home/user/pages/index.html" got error The value NIL ...

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 ...

How to check if memory has aready been released in Destructor?

I have a simple tank wars style game using the allegro open source library. In my tank class, I initialize arrays of pointers to bitmap objects to 0. Then I create new objects with an allegro function create_bitmap which allocates the memory and initializes it. Then I go about my business as usual. The problem is, when I go to releas...

MFC visibile function

Hi guys, I have an assignment using MFC which is a completely foreign language to me. I have to be able to upload Image1, and Image2 into 2 picture controls. And using a slider: when it is on the far left, you see Image1 in a third picture control, when it is on the far right you see Image2. Anywhere in between you should see a transitio...

Boost Unit testing with Allegro Graphics Library

I'm trying to use boost unit testing alongside the Allegro graphics library, but both require main() alterations / overwrites. Has anyone had any experience using both? Edit 1/29/2010: I've refrained from selecting an answer until I can verify one or another, and due to the... sparse nature of the answers. ...

Allegro SCAN_DEPEND problems

I am trying to build a project with the allegro-msvc80-4.2.2 pre-built package. I'm using Visual C++ Express Edition 2005 and have added the input library alld.lib and am including allegro.h asp per these instructions: http://wiki.allegro.cc/index.php?title=Visual_C%2B%2B_Express_2005 When I compile, I get the fatal error: C1083:...

Software to track several memory errors in old project?

Hello, I am programming a game since 2 years ago. sometimes some memory errors (ie: a function returning junk instead of what it was supposed to return, or a crash that only happen on Linux, and never happen with GDB or Windows) happen seemly at random. That is, I try to fix it, and some months later the same errors return to haunt me. ...

Allegro 4.2.1, removing bmp background color

I have been building a game in allegro 4.2.1 and need help to remove a specific color to make invisible. The background color is, (255, 0, 255). I have been at the following sites, but they have not helped me much: http://www.allegro.cc/forums/thread/599210, http://www.cpp-home.com/tutorials/258_1.htm If someone could provide me with a...

[C] Texture management / pointer question

I'm working on a texture management and animation solution for a small side project of mine. Although the project uses Allegro for rendering and input, my question mostly revolves around C and memory management. I wanted to post it here to get thoughts and insight into the approach, as I'm terrible when it comes to pointers. Essentiall...

C/C++ Allegro program causes Windows 7 to switch to Aero Basic

Hi SO, I'm just trying out the allegro library, and here is the code which I've got so far: #include <allegro.h> int main(int argc, char *argv[]) { allegro_init(); // initialize the allegro libraries install_keyboard(); // initialize keyboard functions set_color_depth(16); // set the color depth set_gfx_mode(GFX_AUTO...

convert int to string for use in allegro function

I am trying to run the following code using allegro. textout_ex(screen, font, numbComments , 100, 100, GREEN, BLACK); numbComments is an integer, the function prototype of this function is void textout_ex(BITMAP *bmp, const FONT *f, const char *s, int x, int y, int color, int bg); and i can...

Installing Allegro in Dev-C++ using their Packages

I'm trying to install Allegro in Dev-C++, and rather than do it manually, I noticed the new version was in the available packages, so that'd be easier. Here it is in the manager. Here it is showing itself containing the header file. And when I try to run the simplest of Allegro programs, it doesn't recognize it. Anyone know how to ...

C++: How do I prevent a function from accepting a pointer that is allocated in-line?

Couldn't figure out how to word the question accurately, so here's an example: Given this function prototype: void Foo(myClass* bar); I want to prevent this usage: Foo(new myClass()); and instead require a previously created object: myClass* bar = NULL; bar = new myClass(); Foo(bar); or myClass bar; Foo(&bar); Thanks. EDI...

.Net binding for Allegro

Is there a current C# binding out there for the game library Allegro? AllegNet - seems to be dead mallegro - seems to be outdated Sharpallegro - seems to be outdated/not complete ...