A small example game in pure basic
Hey all,
Well, here you go. it's a little example game I coded in pure basic, this time with commented source code included. It's like a pong game. You have to follow the ball from left to right and hit it, but it has to be relatively low (close to you). Each time you swing but don't connect, you get a mishit.
There are platforms in the game that when a ball has stopped horizontally moving, if it is destined to fall on one, the platform will make it bounce up. However, if it bounces off of a platform, that means you have to go after it much faster next time. This increased speed after contact with platform, is called the catipult affect, and only lasts around 5 seconds when it happens.
You should also know that platforms can break. And, if you hit the ball a certain amount of times, a new one will form.
Enjoy the game, and I hope you can learn from the code! Here is the download link.
https://dl.dropboxusercontent.com/u/492 … 20Ball.zip
Hints:
If you hear a little churp while moving, it means you are at the same x position as the ball, so you can hit when it gets low enough. However, if the ball is still moving right or left after this little ping, keep following it and swinging. You'd rather have a lot of mishits than lose the game, I'm sure.
The keys to move are left and right to move in those directions, and space to swing at the ball.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector