
-----------------------------------
legends31
Mon Dec 23, 2002 12:12 am

Pong Game Need Help
-----------------------------------
am making a pong game for school and i am having some major trouble. I have different logic errors and i am also having trouble with having two actions working at once, eg. animating a box and a ball at the same time. It does the ball, then the box not both at same time. 
Here is the instructions part of my program.
whats wrong with it?
Thanks so much

setscreen ("graphics:700;500")

%===============================
%Makes blinking cursor disappear
%===============================

setscreen ("nocursor")

%==================
%Declares variables
%==================

var arial, arialbig, arialhuge, arialmedium, arialmicro, arialsmall, x, y, 
bnum, bud, paddlesize : int

%==========================
%Makes the background black
%==========================

drawfillbox (0, 0, maxx, maxy, 7)

%===================
%Draws three buttons
%===================

drawfillbox (200, 325, 300, 425, 9)
drawfillbox (200, 200, 300, 300, 12)
drawfillbox (200, 75, 300, 175, 2)

%===================================================================
%Assigns font sizes and styles to make using font quicker and easier
%===================================================================
arialhuge := Font.New ("arial:50")
arialbig := Font.New ("arial:40")
arial := Font.New ("arial:30")
arialmedium := Font.New ("arial:18")
arialsmall := Font.New ("arial:12")
arialmicro := Font.New ("arial:8")

%==============================================
%Draws the words "options", "rules" and "begin"
%==============================================

Font.Draw ("Options", 200, 350, arial, brightwhite)
Font.Draw ("Rules", 210, 225, arial, brightwhite)
Font.Draw ("Begin", 210, 110, arial, brightwhite)

%===============================
%Waits for the users mouse click
%===============================

buttonwait ("down", x, y, bnum, bud)

%============================================================================
%Finds out if the user clicked in a specified space and if so applies actions
%============================================================================

if x >= 200 and x = 325 and y = 200 and x = 300 and y = 275 and x = 300 and y =350 and x =300 and y = 200 and x = 200 and y = 200 and x = 75 and y 