hi im eray,
i folowed the tut that sombody did it was gr8 but i
need to add stuff. i tried to make the bored bigger but the
bats and ball are now to close and i want to have a texture on the
bored instead of colours and i would like "you won" "you lose" kinda thing
so if you could talk me though it i would be most JOVIAL
rem ------------------
rem | eray's virus pong|
rem ------------------
hide mouse:sync rate 40
make object box 1,1,1,3:color object 1,rgb(255,0,0)
make object box 2,1,1,3:color object 2,rgb(0,0,255)
make object sphere 3,1:color object 3,rgb(0,255,0)
make object box 4,20,0.1,10:position object 4,0,-0.55,0:color object 4,rgb(0,0,0)
balla#=90
sync on:do
if ballx#>6 then player2score#=player2score#+1:ballx#=0:ballz#=0:balla#=270
if ballx#<-6 then player1score#=player1score#+1:ballx#=0:ballz#=0:balla#=90
set cursor 300,50:print player2score#
set cursor 320,50:print "-"
set cursor 340,50:print player1score#
ballx#=newxvalue(ballx#,balla#,0.3):ballz#=newzvalue(ballz#,balla#,0.3)
IF upkey()=1 and player1pos#<3.5 then player1pos#=player1pos#+0.5
IF downkey()=1 and player1pos#>-3.5 then player1pos#=player1pos#-0.5
If ballz#>player2pos# then player2pos#=player2pos#+0.11
If ballz#<player2pos# then player2pos#=player2pos#-0.11
IF keystate(17)=1 and player2pos#<3.5 then player2pos#=player2pos#+0.5
IF keystate(31)=1 and player2pos#>-3.5 then player2pos#=player2pos#-0.5
if keystate(17)=1 and ballx#<-4 and ballx#>-4.5 then balla#=balla#+8
if keystate(31)=1 and ballx#<-4 and ballx#>-4.5 then balla#=balla#-8
if ballx#>4 and ballx#<4.5 and ABS(player1pos#-ballz#)<1.5 then balla#=360-balla#
if ballx#<-4 and ballx#>-4.5 and ABS(player2pos#-ballz#)<1.5 then balla#=360-balla#
if ballz#>4 or ballz#<-4 then balla#=180-balla#
balla#=wrapvalue(balla#)
position object 1,5,0,player1pos#:position object 2,-5,0,player2pos#
position object 3,ballx#,0,ballz#:yrotate object 3,balla#
position camera 0,10,-10:point camera 0,0,0
sync:loop
thanxs in advance
e-ray has STOPPED talking