Mage vs Monster - C#
Posted: Mon Jan 16, 2012 9:21 pm
So basically, I'm teaching myself C#. Based on HallsOfValhalla's tutorials, and some books etc. I've put together my first little game! 
It is called MageVsMonster and it's text-based.
It is a turn based game where you play a mage, and you have to kill a monster. simple right? it is. hahaha.
As of right now nothing happens when you run out of mana D: but the game is so easy i highly doubt you will run out of mana.
Make sure to type the spells in lowercase with no spaces because I haven't written any code to fix that lol.
You can download it here: http://www.mediafire.com/?kxbo4x2z40crr7b
I would love any and all feedback
Just remember this is a test project. And i dont plan on finishing it, because it was just to test my knowledge of c#
EDIT: Just realized that there was a typo with the heal spell. It was
Notice that it had originally said
When it was supposed to say
In the version you can download it will set your health to 5 if you use the heal spell. So don't use it xD
It is called MageVsMonster and it's text-based.
It is a turn based game where you play a mage, and you have to kill a monster. simple right? it is. hahaha.
As of right now nothing happens when you run out of mana D: but the game is so easy i highly doubt you will run out of mana.
Make sure to type the spells in lowercase with no spaces because I haven't written any code to fix that lol.
You can download it here: http://www.mediafire.com/?kxbo4x2z40crr7b
I would love any and all feedback
Just remember this is a test project. And i dont plan on finishing it, because it was just to test my knowledge of c#
EDIT: Just realized that there was a typo with the heal spell. It was
Code: Select all
static public void Heal()
{
Console.Clear();
Console.WriteLine("The player casted Heal!");
int heal = 10;
health = +heal;
mana -= 5;
Console.WriteLine("The player healed for: 10");
Console.WriteLine("The spell cost 5 mana.");
Console.ReadKey();
}Code: Select all
health = +healCode: Select all
health += heal