Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Sloppy Mouse

Author
Message
Vid
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: United States
Posted: 25th Mar 2003 05:10
I have a little problem with this code. Everything loads properly and works fairly well, but if i move the mouse too quickly to the left or right, the paddle does not go all the way to the right or all the way to the left. Its supposed to be like a Breakout or Arkanoid Clone.

Rem Project: Bouncer
Rem Created: 3/24/2003 9:19:18 PM

Rem ***** Main Source File *****


backdrop off

`load images
load image "paddle.bmp", 1
load image "ball.bmp", 2
load image "landscape.jpg", 3


`set background
sprite 3,0,0,3

`main loop
do

Gosub PaddlePosition
Gosub BallPosition

sync
loop


PaddlePosition:
` 0 and mousex()
Vid
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: United States
Posted: 25th Mar 2003 05:11

Login to post a reply

Server time is: 2024-04-19 04:47:32
Your offset time is: 2024-04-19 04:47:32