'lo all! I have been working on this game for awhile now and despite a few bugs to fix i have it mostly complete.
Here it is!
Rem Project: Galactic Warfare
Rem Created: 1/10/2007 12:46:05 PM
Rem ***** Main Source File *****
rem basic settings
hide mouse
center text screen width()/2,screen height()/2,"Loading..." : wait 3000
rem loading media
load image "Metal_Plates_T.bmp",1 : load image "bunker.bmp",2
load sound "Blaster.wav",1 : load sound "Boom 1.wav",2
rem creating material for game
make object cone 1,100 : make object cube 2,50 : make object cube 3,50
make object cube 4,50 : make object cube 5,50 : make object cone 6,75
make object cone 7,75 : make object cone 8,75 : make object sphere 9,75
make object sphere 10,75 : make object sphere 11,75 : make object cylinder 12,75
make object cylinder 13,75 : make object cylinder 14,75 : make object cone 15,75
make object cone 16,75 : make object cone 17,75 : make object cone 18,75
make object cone 19,75 : make object cone 20,75 : make object cone 21,75
make object cone 22,75 : make object cone 23,75 : make object cone 24,75
make object cube 25,75 : make object sphere 26,12
rem positioning material
position object 1,0,-375,0 : position object 2,-400,-375,0 : position object 3,400,-375,0
position object 4,0,-550,0 : position object 5,0,525,0 : position object 6,-300,1200,0
position object 7,-200,1100,0 : position object 8,-100,1000,0 : position object 9,100,1800,0
position object 10,200,1900,0 : position object 11,300,2000,0 : position object 12,-300,3000,0
position object 13,0,3000,0 : position object 14,300,3000,0 : position object 15,300,4600,0
position object 16,200,4700,0 : position object 17,100,4800,0 : position object 18,0,4900,0
position object 19,-100,5000,0 : position object 20,-300,5600,0 : position object 21,-200,5700,0
position object 22,-100,5800,0 : position object 23,0,5900,0 : position object 24,100,6000,0
position object 25,0,7000,0 : position object 26,0,-525,100
rem adjusting size of ships
scale object 1,125,100,50 : scale object 4,1500,50,50 : scale object 5,1500,50,50
scale object 6,75,100,25 : scale object 7,75,100,25 : scale object 8,75,100,25
scale object 15,75,100,25 : scale object 16,75,100,25 : scale object 17,75,100,25
scale object 18,75,100,25 : scale object 19,75,100,25 : scale object 20,75,100,25
scale object 21,75,100,25 : scale object 22,75,100,25 : scale object 23,75,100,25
scale object 24,75,100,25
rem pointing enemy ships
zrotate object 6,180 : zrotate object 7,180 : zrotate object 8,180
zrotate object 15,180 : zrotate object 16,180 : zrotate object 17,180
zrotate object 18,180 : zrotate object 19,180 : zrotate object 20,180
zrotate object 21,180 : zrotate object 22,180 : zrotate object 23,180
zrotate object 24,180
rem texturing ships and coloring cannon
texture object 1,1 : texture object 6,2 : texture object 7,2
texture object 8,2 : texture object 9,2 : texture object 10,2
texture object 11,2 : texture object 12,2 : texture object 13,2
texture object 14,2 : texture object 15,2 : texture object 16,2
texture object 17,2 : texture object 18,2 : texture object 19,2
texture object 20,2 : texture object 21,2 : texture object 22,2
texture object 23,2 : texture object 24,2 : texture object 25,2
color object 26,rgb(255,0,0)
rem setting cannon transparency
ghost object on 26
rem hiding boundary lines
hide object 2 : hide object 3
rem making and editing the camera
make camera 1
position camera 1,0,0,-750
color backdrop 1,rgb(0,0,0)
rem game loop
do
rem setting player ship controls
if leftkey() then move object left 1,0.2
if rightkey() then move object right 1,0.2
if spacekey()
position object 26,object position x(1),object position y(1),object position z(1)
play sound 1
endif
rem setting boundaries
if object collision(1,2) then move object right 1,0.2
if object collision(1,3) then move object left 1,0.2
if object collision(26,5) then position object 26,0,-525,100
rem launching enemies
move object up 6,0.1 : move object up 7,0.1 : move object up 8,0.1
move object down 9,0.1 : move object down 10,0.1 : move object down 11,0.1
move object down 12,0.1 : move object down 13,0.1 : move object down 14,0.1
move object up 15,0.1 : move object up 16,0.1 : move object up 17,0.1
move object up 18,0.1 : move object up 19,0.1 : move object up 20,0.1
move object up 21,0.1 : move object up 22,0.1 : move object up 23,0.1
move object up 24,0.1 : move object down 25,0.1
rem enemy properties
if object collision(6,1) then end
if object collision(7,1) then end
if object collision(8,1) then end
if object collision(9,1) then end
if object collision(10,1) then end
if object collision(11,1) then end
if object collision(12,1) then end
if object collision(13,1) then end
if object collision(14,1) then end
if object collision(15,1) then end
if object collision(16,1) then end
if object collision(17,1) then end
if object collision(18,1) then end
if object collision(19,1) then end
if object collision(20,1) then end
if object collision(21,1) then end
if object collision(22,1) then end
if object collision(23,1) then end
if object collision(24,1) then end
if object collision(25,1) then end
if object collision(6,4) then end
if object collision(7,4) then end
if object collision(8,4) then end
if object collision(9,4) then end
if object collision(10,4) then end
if object collision(11,4) then end
if object collision(12,4) then end
if object collision(13,4) then end
if object collision(14,4) then end
if object collision(15,4) then end
if object collision(16,4) then end
if object collision(17,4) then end
if object collision(18,4) then end
if object collision(19,4) then end
if object collision(20,4) then end
if object collision(21,4) then end
if object collision(22,4) then end
if object collision(23,4) then end
if object collision(24,4) then end
if object collision(25,4) then end
rem cannon properties
if object position z(26)=object position z(1) then move object up 26,0.5
if object hit(26,6)
play sound 2
position object 6,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,7)
play sound 2
position object 7,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,8)
play sound 2
position object 8,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,9)
play sound 2
position object 9,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,10)
play sound 2
position object 10,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,11)
play sound 2
position object 11,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,12)
play sound 2
position object 12,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,13)
play sound 2
position object 13,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,14)
play sound 2
position object 14,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,15)
play sound 2
position object 15,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,16)
play sound 2
position object 16,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,17)
play sound 2
position object 17,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,18)
play sound 2
position object 18,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,19)
play sound 2
position object 19,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,20)
play sound 2
position object 20,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,21)
play sound 2
position object 21,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,22)
play sound 2
position object 22,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,23)
play sound 2
position object 23,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,24)
play sound 2
position object 24,0,-600,0
position object 26,0,-525,100
endif
if object hit(26,25)
play sound 2
position object 25,0,-600,0
position object 26,0,-525,100
wait 1000
end
endif
rem end loop
loop
I just started programming a month ago so don't laugh too hard.
Any ideas on how I can make this more efficient?