heres my entry..
the bouncing took a bit to work out...
REM *************************************************************************************
REM * This is Lucifer1101's Entry to the DarkNoobs Pro Team, you may use this *
REM * code as you like royalty free as long as you dont claim it as your own... *
REM *************************************************************************************
sync on
sync rate 80
autocam off
set display mode 640,480,32
gosub SetupEnvironment
` ***************************************************************************************
` * Main Loop *
` ***************************************************************************************
do
gosub HandleHUD
gosub HandleObjects
control camera using arrowkeys 0,1,1
sync
loop
` ***************************************************************************************
` * Subroutines *
` ***************************************************************************************
SetupEnvironment:
`BGround
cls rgb(5,5,5)
fgcolor=RGB(255,255,255)
bgcolor=RGB(255,255,255)
ink fgcolor,bgcolor
for n=1 to 3000
dtx=rnd(1000):dty=rnd(1000)
dot dtx,dty
next n
get image 2,0,0,256,256,1
make object sphere 2,100000,6,6
set object 2,1,1,0,0,0,0,0
texture object 2,2
scale object texture 2,10,10
position object 2,0,0,0
` HUD
LineBox(1,1,160,18,1,rgb(255,255,255))
ink rgb(255,255,255),0
Text 0,0,"Lucifer1101's Entry"
get image 1,0,0,161,19
LEY=30
MSpeed=2
` Objects
make object cube 1,500
position object 1,0,0,0
texture object 1,1
CSpeed=5
` Camera
position camera 0,0,-1000
set camera range 1,1000000
set object light 1,0
` Light
make light 1
position light 1,0,0,0
return
HandleHUD:
text 0,0, "FPS: " + str$(screen fps())
sprite 1,LEX,LEY,1
if slide=0
inc LEX,MSpeed
else
dec LEX,MSpeed
endif
if LEX=480 then slide=1
if LEX=0 then slide=0
return
HandleObjects:
turn object left 1,1
if spacekey()
CubeY=object position y(1)
if Cshake=0
inc CubeY,CSpeed
else
dec CubeY,CSpeed
endif
if CubeY=20 then Cshake=1
if CubeY=-20 then Cshake=0
position object 1,0,CubeY,0
else
position object 1,0,0,0
endif
return
` ***************************************************************************************
` * Functions *
` ***************************************************************************************
Function LineBox(X1,Y1,X2,Y2,Thickness,LineColor)
ink LineColor,0
box X1-Thickness,Y1-Thickness,X2+Thickness,Y2+Thickness
ink 0,0
box X1,Y1,X2,Y2
Endfunction
the functions a good one, thanks Ashingda you sortof helped with that one
controls:
*arowkeys move the camera
*space make the cube bounce
alright so what should we be making first, i believe that maybe we should start by using the text functions only to make a fun game...
if anybody else wants to join your still welcome...
p.s. i dont think im qualified to be the co-ordinator is there someone more experienced willing to standin and maybe i can be co-cordinator.....