TGC Codebase Backup



Level Loader by Shark

3rd Jun 2006 1:34
Summary

A simple little Level Loader



Description

A simple level loader you can use in your games



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    rem Level Loader Copyright 2006 FPSC PHREAK if you use this put my name in the credits
rem Sets window and size and other stuff
set window on : set window size 640,485
load bitmap "images\image.bmp"
rem Password Stuff
menu:
print "Welcome to ------s Menu"
print "Type the level number:"
print "Level 1?(1)"
print "Level 2?(2)"
print "Level 3?(3)"
print "Level 4?(4)"
print "Level 5?(5)"
print "Or credits?(6)"
rem Inputs the number for what level
input a#
rem Sees what file to open
if a#=1 then execute file "C:\Program Files\Prison\Prison\Level1.exe","","",1
if a#=2 then input "Password: ",pass1#
if pass#=1111 then execute file "C:\Documents and Settings\User Name Here\Desktop\My Game\Level2\Level2.exe","","",1
if a#=3 then input "Password: ",pass2#
if pass2#=1111 then execute file "C:\Documents and Settings\User name here\Desktop\My Game\Level3\Level3.exe","","",1
if a#=4 then input "Password:",pass3#
if pass3#=1111 then execute file "C:\Documents and Settings\User name here\Desktop\My Game\Level4\Level4.exe","","",1
if a#=5 then input "Password:",pass4#
if pass4#=1111 then execute file "C:\Documents and Settings\User name here\Desktop\My Game\Level5\Level5.exe","","",1
if a#=6 then print "Your Credits Here. - Press any key to go back © FPSC PHREAK" : wait key : cls : goto menu