Oh, sorry, I was a bit sleepy. Here it is, anyway.
Rem Project: Moradamus
Rem Created: Friday, May 21, 2010
Rem ***** Main Source File *****
//********************
// SCREEN SETUP
//********************
//Welcome to Moradamus!
sync on : sync rate 0
ai start : phy start : lm start
set display mode 1024,768,32,1 : set window off
disable escapekey : disable systemkeys : hide mouse
//********************
//Gamestatus variable - this is used to move the game along and
//is changeable for testing levels (sections)
global GameStatus = 1
//********************
//********************
//SPLASH SCREEN/MAIN MENU VARIABLES AND IMAGES
//********************
//Splash screen variables and images
SplashLife = 200 : SplashScreen = 0001
load image "media/images/SplashScreen1.png",SplashScreen
//MAIN MENU LOADING
//Loading screen that appears while menu assets are being loaded
global MMLoad = 0002
load image "media/images/MMLoading1.png",MMLoad
//********************
//********************
//********************
//MAIN GAME LOOP
//********************
//********************
//********************
//SPLASH SCREEN AND MAIN MENU LOOP
WHILE GameStatus = 1
//SPLASH SCREEN
if GameStatus = 1
//Splash Screen timer
if SplashLife > 0
SplashLife = SplashLife - 1
sprite SplashScreen,0,0,SplashScreen
size sprite SplashScreen,screen width(),screen height()
//Press 'SPACE' to exit to Main Menu
if keystate(57) = 1
SplashLife = 0
endif
endif
//End of the Splash Screen's timer
if Splashlife = 0
delete sprite SplashScreen
GameStatus = 2
endif
endif
sync
ENDWHILE
//LOADING MAIN MENU ASSETS
//Main menu loading screen
sprite MMLoad,0,0,MMLoad
size sprite MMLoad,screen width(),screen height()
//Randomizing the main menu
global RandomMainMenu = rnd(4) : global MainMenuStatus = 0
//if statement for Pharave main menu goes here
//LOADING THE PHARAVE MAIN MENU SCREEN
//Making the camera
make camera 0011 : position camera 0011,540,260,-1520 : set camera range 0011,1,60000 : backdrop off
//LOADING DBO
//Main static object (ground, Pharave, ect)
load object "media/sections/PMM/PharaveMM.x",0011 : position object 0011,0,0,0 : set object light 0011,1
//LOADING MODELS
//Pharave body parts
load object "media/models/pharave/PharaveLimb1.x",0012 : scale object 0012,800,800,800 : position object 0012,400,100,-1200
set object light 0012,1
//Creating lights
set ambient light 0 : lm add point light 0,600,0,2000,0.4,0.4,0.4
//Setting up object
lm add collision object 0011 : lm add collision object 0012
lm build collision data
lm add light map object 0011 : lm add light map object 0012
lm build light maps //you will need to set the parems here cause I don't have Dark BASIC on this computer and I can't remember them
//PHARAVE MAIN MENU LOOP
WHILE GameStatus = 2
PMM()
control camera using arrowkeys 0011,3,3
sync
ENDWHILE
//********************
//********************
//FUNCTIONS
//********************
//********************
//MAIN MENU FUCNTIONS
//Pharave main menu function
function PMM()
//Deleting the loading screen
if sprite exist(MMLoad) then delete sprite MMLoad
//Ending the game
if keystate(1) = 1 then end
endfunction
There you go....sorry about that.
Clonkex
Making games is easy.....finishing them is a different matter.
Intel Core 2 Duo 2.8Ghz, Nvidia GeForce 9400 GT 512mb, 1gb ram.