We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge 2 - Ball chase game
#1
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.
Reply
#2
(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.
Reply
#3
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.
Reply
#4
I bent the rules a bit, but this is my effort: WWSZ25.000
[-] The following 2 users Like litdev's post:
  • AbsoluteBeginner, z-s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)