Is anyone else following this tutorial?
I'm brand new to Dark Basic and thought I'd give it a go. I'm about 28 and a half mins into the tutorial where we are just starting to compile to see what we've done, but I get nothing but a blank screen
Anyone possibly point me in the direction of what I'm doing wrong? I've checked and re-checked that my code matches but nothing
TT3D Code:
Gosub Data_Setup
Gosub Environment
Plyr.Lives = 3
AI.Lives = 3
AI.Trigger = 0
MakeObjects()
` SetReset()
Do
` Ball()
` PlyrControl()
` AIControl()
` ScreenText()
` Sync
Loop
Enviro Code:
Data_Setup:
Type ObjData
ID as Integer
x as Float
y as Float
z as Float
xSpeed as Float
ySpeed as Float
lives as Integer
trigger as Integer
flagX as Integer
flagY as Integer
flag as Integer
EndType
Global Ball as ObjData
Global AI as ObjData
Global Plyr as ObjData
Global TB as ObjData
Global BB as ObjData
Global AIB as ObjData
Global PlyrB as ObjData
Return
Environment:
Sync On
Sync Rate 60
BackDrop On
Color Backdrop 0
Autocam Off
Randomize Timer()
Move Camera 0, -550
Set Global Collision On
Return
Functions Code:
Function MakeObjects()
Set Spot Light 0, 2, 3
Position Light 0, 0, -200, -250
Point Light 0, 0, 0, 0
Make Object Plain 1, 801, 603, 1
Color Object 1, rgb(0,255,255)
Set Shadow Shading On 1
Make Object Box 2, 805, 603, 75
Make Object Box 3, 790, 593, 100
Perform CSG Difference 2, 3
Delete Object 3
EndFunction