Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 24 Sep 2011
Offline Last Active Jun 18 2013 11:15 PM

Topics I've Started

Allegro moving rectangle help

05 October 2011 - 07:03 PM

Hi, I have a simple question, probably super easy too, so I'd appreciate if someone could help me out here!

I'm trying to recreate Pong, but far from that...I'm at the stage of getting things on the screen :P
Basically, I want to move the rectangles on the sides, but can't figure out how in a productive manner.

And before I get any farther, I am running Allegro 4.2, not the new version, 5.

I have this code:
if (key[KEY_S])

Sorry if it looks weird, trying to figure out how to put code on here...anyways...Basically for anyone who has ran Allegro, this simply redraws another rectangle, so it ends up looking like there's a rectangle on the whole left side. I've tried doing
to sort of "erase" it, but then when moving it just looks horrible (flicking black).

Any help would be appreciated, or point me in the right direction!

Thank you,

Beginning Game Programming

24 September 2011 - 12:18 AM

Hi everyone! I've been reading the forums for a few days now and finally broke down and made an account to see if I could get your opinions...

To start off, yes I have been teaching myself C++ for awhile now, and I got most of the basics down, and learning more advanced such as objects and classes, etc...

Simply speaking though, I am wanting to get into game programming, whereas right now I am solely doing programming. What would be the best option (and/or tool) for me to add gaming to my programming list? Obviously since I have no prior experience in the gaming programming field, I want to start off very basic, such as 2D. I've read about Allegro and seen it to be a good starting position, though I was unsure of how good of quality you can make with it alone.

And yes I've read through other posts, I've seen other engines and such, and I know this question has been asked a million times before. I just want to know where my best start would be with C++, as I've been getting various answers everywhere...so I want real programmer's opinions.

Any and all advice will be greatly appreciated, please feel free to throw anything you have out here, even if it's the most basic of all programming. I just want a place to start, and possibly something I could grow into a larger field.

Thanks for reading!