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

learn more… | top users | synonyms

0
votes
2answers
576 views

What do I need to implement a side-scrolling screen, like in classic platformer games?

I'm working on a game in Allegro for C++. I'm stumped about how to scroll the screen. I'm trying to make the screen scroll with the player, as it does in classic side-scroller games such as Super ...
2
votes
2answers
187 views

Collision detection - make sure the player touches the object exactly

I know this is really something I should be able to figure out on my own, but a solution is evading me. Okay, here are a few relevant parts of my code. bool Game::Col(int x1,int y1,int w1,int h1, ...