• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
lotlat

What do I need to learn for a zork clone in C#

5 posts in this topic

Hello, this is my first post ever on the forum. I'd like to know what I'd first need to know to create a zork-like game in C#. I am an absolute beginner at C# programming but I do know some commands here and there. What kinds of commands would I need to learn to make a game like that, preferably in a book? I already know how to make those simple 1 2 3 option text adventures since it only uses the case break etc. commands. I don't feel like going into graphical gaming just yet, and if I do, I only want to stay 2D.
0

Share this post


Link to post
Share on other sites
I don't want to disuade you (and perhaps I'm misunderstanding your goal), but Zork-like games (traditionally called interactive fiction, or text adventures) can get very complex. This is due to the rather complex world models involved, and the parser itself.

That said, you can throw together a very simplified type of IF parser by limiting commands to Verb + Noun (or just Verb). If doing this, I doubt you would need a "real" parser, just a series of switch cases. Adding a large number of verbs, or allowing more flexible input, will quickly render this approach infeasible, however.

If you are just beginning (which it sounds like), try putting together a simple three room adventure, where each room has a description, and allow movement between them by checking for cardinal direction commands. Later you can add items and inventory.

If you are past that point (which is doesn't sound like), then I can provide some links I found helpful when I was dabbling with IF parsers a while back - be warned, however, if you do not have any background in parsing theory it will be a large bite to take at once.
0

Share this post


Link to post
Share on other sites
Hmm... I didn't know that games like that would be so complex. Okay, I guess I can start by making a simple maze game with the wasd keys and I'll come back when I become familiar with it. I heard that I could use booleans as a way of storing inventory but I don't know if it's reliable. Also, I've never learned about parsing, so do you have a link I could follow that could teach me more about parsing?
0

Share this post


Link to post
Share on other sites
There is just simple "parsing" which, in the above case, would just be getting input into a string, splitting it at the space character into 2 strings (verb and noun), then comparing them to known values (commands and nouns, the latter usually being items or objects the player can interact with).

Then there is the more technical definition, which is a whole different beast - I wouldn't worry about that now. If you are curious, Wikipedia can give you a rundown.

At this point it sounds like you need to concentrate on honing your programming skills. Incrementally add more complexity to something you have already written, or start the small maze project you mentioned. Make sure you understand string handling (which is amazingly great in C#), and reading and writing to the Console. Learn collections, especially List and maybe Dictionary. Become comfortable with using the standard library and classes - you don't need them memorized, but you should find them predictable enough that a quick glance at MSDN is all you might need to use something you haven't before.

Understanding Classes and object oriented programming will come in handy when your projects get to be larger and more complex.

I don't have any useful links to learning resources or books, but I bet if you search this site for "C# tutorials" or "C# learning" you will likely find some useful posts.
0

Share this post


Link to post
Share on other sites
The only game I've never found complex is Guess My Number...Everything takes longer and is harder than you think, as a general rule. Edited by Narf the Mouse
0

Share this post


Link to post
Share on other sites
[quote name='laztrezort' timestamp='1339208898' post='4947553']
There is just simple "parsing" which, in the above case, would just be getting input into a string, splitting it at the space character into 2 strings (verb and noun), then comparing them to known values (commands and nouns, the latter usually being items or objects the player can interact with).

Then there is the more technical definition, which is a whole different beast - I wouldn't worry about that now. If you are curious, Wikipedia can give you a rundown.

At this point it sounds like you need to concentrate on honing your programming skills. Incrementally add more complexity to something you have already written, or start the small maze project you mentioned. Make sure you understand string handling (which is amazingly great in C#), and reading and writing to the Console. Learn collections, especially List and maybe Dictionary. Become comfortable with using the standard library and classes - you don't need them memorized, but you should find them predictable enough that a quick glance at MSDN is all you might need to use something you haven't before.

Understanding Classes and object oriented programming will come in handy when your projects get to be larger and more complex.

I don't have any useful links to learning resources or books, but I bet if you search this site for "C# tutorials" or "C# learning" you will likely find some useful posts.
[/quote]
Okay, thanks for the information >.< I'll come back in a couple months once I get the hang of it.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0