Posted: 30th Dec 2002 23:19
Does any1 have a pong game that i can go over.......i would like to make this game but i dont know where to start

Thanks in advance(i think im gonna make that my sig)
Posted: 31st Dec 2002 2:14
Ya, right click <a href="http://www.dbheaven.com/sourcecode/solopong.dba">here</a> 'Save As Target'
to download the source.
This was found on the site <a href="http://www.dbheaven.com/index.php">dbheaven</a>.
Posted: 31st Dec 2002 2:19
Opps srry
Ya, right click http://www.dbheaven.com/sourcecode/solopong.dba 'Save As Target'
to download the source.
This was found on the sitehttp://www.dbheaven.com/index.php.
Posted: 31st Dec 2002 2:41
http://www.dbheaven.com/sourcecode/solopong.dba
Posted: 31st Dec 2002 2:41
there!
Posted: 31st Dec 2002 2:43
Here's the code...:
+ Code Snippet
CLS
HIDE MOUSE
SYNC ON
SYNC RATE 60
RANDOMIZE TIMER()

BOX 0,0,80,15
GET IMAGE 1,0,0,80,15
INK RGB(43,54,251),0
BOX 0,0,15,15
GET IMAGE 2,0,0,15,15
SPRITE 1,0,0,1
SPRITE 2,0,0,2


DO
	CLS RGB(100,100,100)
	playerx = 320 : playery = 450
	ballx# = 320.0 : bally# = 400.0
	ballyspeed# = 2.0
	ballxspeed# = 2.0
	speedinc# = 0.2
	playerspeed = 0
	playermove = 2
	player = 1 : ball = 2
	score = 0


	REPEAT
		IF RIGHTKEY()
			playerspeed = playermove
		ELSE
			IF LEFTKEY()
				playerspeed = 0 - playermove
			ELSE
				playerspeed = 0
			ENDIF
		ENDIF

		IF SPRITE COLLISION(player,ball)
			ballyspeed# = 0 - (ABS(ballyspeed#) + speedinc#)
			random# = (RND(10)-5)/10.0 
			ballxspeed# = ballxspeed# + (playerspeed/2) + random#
			score = score + 1
		ENDIF

		IF ballx# &gt; 625.0 OR ballx# &lt; 0.0 THEN ballxspeed# = 0.0 - ballxspeed#
		IF bally# &lt; 0.0 THEN ballyspeed# = 0.0 - ballyspeed#


		playerx = playerx + playerspeed
		ballx# = ballx# + ballxspeed#
		bally# = bally# + ballyspeed#

		SPRITE player,playerx,playery,player
		SPRITE ball,ballx#,bally#,ball
		SYNC
	UNTIL bally# &gt; 480

	CLS
	TEXT 100,0,"Score: "+STR$(score)
	TEXT 100,50,"Press ENTER to play again, or SPACE to end"
	REPEAT
		SYNC
	UNTIL RETURNKEY() OR SPACEKEY()
	IF SPACEKEY() THEN EXIT
LOOP

END
Posted: 31st Dec 2002 22:20
There's an announcment at the top of this board you crazy fools...
Posted: 1st Jan 2003 5:38
Ahh Quoth there sure are some people here that DONT PAY ATTENTION AND ASK EVERY BLOODY QUESTION THAT COMES TO MIND WITHOUT CONSIDERING THEIR RESOURCES!!!

Sorry lost myself there

Hey Quoth- like my new sig

RPGamer
Posted: 1st Jan 2003 11:18
I can not make Pong games.
I will sey a cool code with the good Pong game.

DBWinner
Posted: 1st Jan 2003 20:59
that's 4 newbies in one post! Where's characterartist?

lovely sig.
Posted: 1st Jan 2003 23:06
Thanx