A nice little game I made
Posted: August 13th, 2017, 10:55 am
So I did this with what little knowledge I acquired from Chili's beginner C++ tutorials up until right before the snake game. Source and game included in post!
The box(player) is controlled only by the mouse. The player's goal is to dodge all the balls except the ball that is glowing. Currently the goal is 5. So you only have to collect the target ball 5 times to win. There are 10 other balls that you need to dodge.
If you wish to increase the goal and "bad balls" you can do so in the source
As far as I know, the progress bar is completely dynamic to the goal number you set. I have tested with the goal being as high as 100 and as low as 1. The game should end properly when goal is reached. Also, you shouldn't be able to win before the bar reaches the edge of the screen nor should it ever extend passed the screen width. Not to mention that the progress bar is linked to the window width. so adjusting the screen size shouldn't be an issue
Small note: you have a short moment of invincibility when the game starts. This is to prevent panic and immediate collision if a ball happens to randomly spawn at the start point. Have fun! tweak that fucker a little! I'd love to see variations from other beginners!
The box(player) is controlled only by the mouse. The player's goal is to dodge all the balls except the ball that is glowing. Currently the goal is 5. So you only have to collect the target ball 5 times to win. There are 10 other balls that you need to dodge.
If you wish to increase the goal and "bad balls" you can do so in the source
As far as I know, the progress bar is completely dynamic to the goal number you set. I have tested with the goal being as high as 100 and as low as 1. The game should end properly when goal is reached. Also, you shouldn't be able to win before the bar reaches the edge of the screen nor should it ever extend passed the screen width. Not to mention that the progress bar is linked to the window width. so adjusting the screen size shouldn't be an issue
Small note: you have a short moment of invincibility when the game starts. This is to prevent panic and immediate collision if a ball happens to randomly spawn at the start point. Have fun! tweak that fucker a little! I'd love to see variations from other beginners!