WIP (No title)
McGuire 13 Dec 2007 03:06
Ok, so heres a new project I'm working on to refresh my mind on how to use Brutus2D. It will be another text based game, but hopefully an improved one from my last one.
I need to know how to do the game loop, but you haven't done a tutorial on that yet.
Suggestions? Errors?
-Josh
dim gameover ''wether or not you can play
''''''''''''''''''
dim answer ''holding players input
dim response ''holding response info
dim player_name '' players character name
dim player_currency ''players money count
dim health ''players health value
dim mana ''players mana value
dim warrior ''playable class
dim mage ''playable class
dim paladin ''playable class
dim rogue ''playable class
dim player_class ''players class that he has chosen
dim node
'''''''''''''''''''''''
gameover = false ''game isn't over untile I say it is
health = 100 ''default
mana = 100 ''default
player_name = default ''default for debugging
player_currency = 0 ''starting with 0 money
player_class = default ''starting with no class
node = 1
''''''''''''''''''''''''
console.initialize
''players information
console.writeline
console.writeline "Name: "&player_name&""
if player_class = warrior or paladin or mage or rogue then console.writeline "Health: "&health&""
if player_class = mage or paladin then console.writeline "Mana: "&mana&""
if player_class = mage then console.writeline "Class: Mage"
elseif player_class = warrior then console.writeline "Class: Warrior"
elseif player_class = rogue then console.writeline "Class: Rogue"
elseif player_class = paladin then console.writeline "Class: Paladin"
end if
console.writeline "Money: "&player_currency&""
console.writeline
'''''
''''Starting of game
case 1
console.writeline "Blah blah.."
console.terminate