My Allegro C++ Platform Game
Loading...
11,641
Loading...
Uploader Comments (Falciase)
see all
All Comments (100)
-
This looks great, how did you ever make such a nice game only 2 months into C++?
-
MAN!!! actually the game seems pretty fun lol! so, have you ever used sdl? do you like allegro more than sdl?
-
@Falciase wow thats amazing
-
@Falciase This is where I facepalm and wonder how I didn't figure that out myself. Thanks.
-
@noobgy I use a vector that dynamically adds a bullet object each time one is shot and dynamically removes it when it hits.
Loading...
nice game thats very impressive
how long have you been learning c++?
JakobRobert00 1 month ago
@JakobRobert00
At the point that I made this game, I was probably about two months in.
Falciase 4 weeks ago
Do you know how to program a level to automatically scroll? I know how to program it to scroll with the player...But I've been bashing my brain trying to figure out how to make it scroll automatically.
adamrothraisdead 1 month ago
@adamrothraisdead
Well, think about this then-- you have the camera's x value set at the player's x value minus half the screen width, right? So, instead of making the camera's x value dependent on the player's x value, make it an integer that automatically increments by, say, 1 pixel for every game loop. Then the camera would automatically scroll to the right.
Falciase 1 month ago
what libraries and file types did you use for the map handling? unless you hard coded each tile?
TotalJargon 1 month ago
@TotalJargon
Building the map was simply a matter of reading a two dimensional array of integer values. 0 stood for nothing, 1 stood for a solid block, 2 stood for a checkpoint, 3 for coin, 4 for badguy1, etc etc... I had a loadlevel function that had a loop that went through the level array, placing new objects for every nonzero value in the array at 32 pixel intervals. There were two loops nested in each other, one for the x values of the array, and one for the y values... Hope this helps!
Falciase 1 month ago