My first game in C#
Well i've finished my text based game.
It's the one thats textbased exploring through the house. The content is pretty lame, but I just wanted to succeed at the programming part!
To all who are interested to look at it and view the code to give me their input:
Haunted Mansion Source
Thanks for the pointers some of you gave while I worked on it.
Hello,
Well I went through the release version(I only played for 10 minutes) and I looked at the code. I have to say you did a nice job. Maybe you will like to add on how to handle things. For example, if there is no monster in the room and the user type attack it won't stop working. It will instead inform the user there is no monster in the room. Another thing is maybe work on the battle system. I don't like how it runs automatically and don't allow the user to actually participate in it. Did you debug the program before you decided it was finish? I ask that because when I was looking through the code and I decided to debug it it had threw some errors and one warning. The error started in your content.cs file under public static class Loo, and the warning was about some variable not being used at all. Otherwise I have to say you did a nice job, and I congratulate you! Keep up the good work!
~Carl J. Loucius
Well I went through the release version(I only played for 10 minutes) and I looked at the code. I have to say you did a nice job. Maybe you will like to add on how to handle things. For example, if there is no monster in the room and the user type attack it won't stop working. It will instead inform the user there is no monster in the room. Another thing is maybe work on the battle system. I don't like how it runs automatically and don't allow the user to actually participate in it. Did you debug the program before you decided it was finish? I ask that because when I was looking through the code and I decided to debug it it had threw some errors and one warning. The error started in your content.cs file under public static class Loo, and the warning was about some variable not being used at all. Otherwise I have to say you did a nice job, and I congratulate you! Keep up the good work!
~Carl J. Loucius
Quote:Original post by acddklr07
Hello,
Well I went through the release version(I only played for 10 minutes) and I looked at the code. I have to say you did a nice job. Maybe you will like to add on how to handle things. For example, if there is no monster in the room and the user type attack it won't stop working. It will instead inform the user there is no monster in the room. Another thing is maybe work on the battle system. I don't like how it runs automatically and don't allow the user to actually participate in it. Did you debug the program before you decided it was finish? I ask that because when I was looking through the code and I decided to debug it it had threw some errors and one warning. The error started in your content.cs file under public static class Loo, and the warning was about some variable not being used at all. Otherwise I have to say you did a nice job, and I congratulate you! Keep up the good work!
~Carl J. Loucius
Thanks a lot for checking it out and commenting.
I actually had something settup to handle when a user tried to attack and there was nothing there to attack, but then I redid a lot of my code and apparently it didnt work anymore, i've got it fixed up again now.
The warning I have seen and i've left it there to implement in the future, if I ever do atleast.
The error however I dont see, when I compile no errors come up at all, but I guess thats a setting I would need to settup in C# express?
I agree with you on the combat part too. Today before I decided to consider the project finished I set it up to where after each single attack from both the player and the "monster" where the player would have the option to A) Attack again, B) use an inventory item, C) Attempt to Run, or D) Defend. But I wiped that out because due to my restricted knowledge at the time I dont know how to make it respond to a simple key press such as just pushing 'A' to attack or 'D' to defend. I had another string input = Console.ReadLine(); going and that involved pushing 'A' and then pushing -Enter-. Which would have still made it more interesting, but after trying a few combat fights i found it kind of annoying too.
My goal was to create a more fun project that I could practice a lot of what ive learned recently on. Making short little string, or class applications can be dull. I'm going to go back into the reading and learning phase too and probably continue to update after that.
Again thanks a lot for the input!
Hello,
I think you need to use Console.ReadKey() for the part you was describing. About A for attack and D for defend. Again I would have to say a good job on the game. I recommend a book called .NET Zero Book which is a free e-book that is used in the C# Workshop. It is a very good book. It teaches a lot of things and in my opinion it teaches it effectively. It covers a lot of topics, but the author provide enough information on the topics that you will be able to understand.
~Carl J. Loucius
I think you need to use Console.ReadKey() for the part you was describing. About A for attack and D for defend. Again I would have to say a good job on the game. I recommend a book called .NET Zero Book which is a free e-book that is used in the C# Workshop. It is a very good book. It teaches a lot of things and in my opinion it teaches it effectively. It covers a lot of topics, but the author provide enough information on the topics that you will be able to understand.
~Carl J. Loucius
At the moment, I do not have time to play through all of it, but I did go through a few minutes of the game. So far, it's very well put together. As for looking through the code, I wouldn't be able to understand it because I haven't learned C#.
So yea, excellent job on your first C# game! Keep going! ;)
EDIT*: By the way, I will play through all of it tomorrow if I get the time.
So yea, excellent job on your first C# game! Keep going! ;)
EDIT*: By the way, I will play through all of it tomorrow if I get the time.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement