Hey guys,
Im trying to do the tutorial for Pong by dcfoermanuk.
Im following it to the letter and at part 3, Ive just finished with the loading the files, he says to compile, just to check there are no errors in finding the file, but when I compile, i get "Declaration not valid at line 3"
Im still verrry new to coding, so I have no idea whats wrong, any chance one of you wonderful people could help?
Here is the code:
Randomize Timer()
Type ObjectData
x as a float
y as a float
xspeed as a float
yspeed as a float
Lives as a Integer
Trigger as a Integer
EndType
global Player as ObjectData
global AI as ObjectData
global Ball as ObjectData
Ball.x = 320
Ball.y = 240
Ball.xspeed = -2
Ball.yspeed = rnd(1)+1
Player.x = 590
Player.y = 240
Player.Lives = 3
AI.x = 50
AI.y = 240
AI.Live = 3
AI.Trigger = 200
REM Game Initialzation
Sync On
Sync rate 60
backdrop on
color backdrop RGB(0, 196, 0)
path$ = get dir$()
load sound path$ + "\" + "Impact.wav", 1
load sound path$ + "\" + "Boundry.wav", 2
load sound path$ + "\" + "Win.wav", 3
load sound path$ + "\" + "Loose.wav", 4
Georga, the M16A4. The Only Woman I'll ever need.