Small Basic Forum
Challenge 2 - Ball chase game - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Challenges (https://litdev.uk/mybb/forumdisplay.php?fid=5)
+--- Thread: Challenge 2 - Ball chase game (/showthread.php?tid=18)



Challenge 2 - Ball chase game - litdev - 10-16-2023

Write a program to move a ball aound the screen with arrow keys.  Try to get the ball to move naturally and easy to control, and bounce off the edges of the GraphicsWindow.

When the single ball control works as you want it, extend the program into a game with a second ball for a second player. using WSAD keys.  This can then be a chase/tag game where one player has to escape the other for as long as they can.


RE: Challenge 2 - Ball chase game - AbsoluteBeginner - 10-17-2023

(translated by Google translator)

Hi.  Smile
I have a question.
Should pressing the control button create the effect of hitting the ball, or should pressing the button move the ball one step?

Thank you.


RE: Challenge 2 - Ball chase game - litdev - 10-17-2023

Hi,

It doesn't really matter, the idea is to be able to control the movement of the ball with keys, so that 2 players can move their own balls as a chaser and evader.  So how the actual game play works is up to you.


RE: Challenge 2 - Ball chase game - litdev - 10-31-2023

I bent the rules a bit, but this is my effort: WWSZ25.000