Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 2 - Learning VB.NET Through Text Game Developm...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Learning VB.NET Through Text Game Development
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 6
    2008-05-28

    Table of Contents:
  • Learning VB.NET Through Text Game Development
  • The Concept
  • Getting Started
  • Getting Started continued

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Learning VB.NET Through Text Game Development - The Concept


    (Page 2 of 4 )

    Now let's take a look at what we'll be creating in this series of articles. We'll be creating a role playing game with a text interface, similar to Rogue or NetHack, but, of course, much simpler (sorry, but NetHack, for example, has had a few decades to develop into what it is today). Here's a screenshot of NetHack in action:





    The dungeon and its inhabitants, items, etc. are represented by various characters so that the game can be played in a standard terminal. The player is represented by the @ symbol and is in a room. The walls of the room can easily be made out, and each of the periods represents a regular floor tile. The “d” in the room represents a dog, and the “%” represents a corpse. Messages are displayed on a single line at the top of the screen, and information about the player can be found at the bottom.

    The player is shown in a single room, but there are multiple rooms linked by corridors. The player progresses by going down staircases (“<” and “>” represent staircases). When the player moves, he uses a turn, and then the various creatures in the dungeon take their turns.

    Fancy? No, but it does have its own special charm, and something similar to this is within reach. Besides, this is a language learning exercise. We'll be shooting for something similar to this, but with our own variations, and, as noted earlier, with significantly less features. In order to get a better idea of what we're creating here, you should go play a little bit of NetHack (which runs on multiple platforms) or something similar.

    So, we need to create a player with a few attributes, such as strength and agility, that can be used for combat. The player also needs to have an inventory. Next, we need to create a dungeon for the player. Then, we need to populate the dungeon with monsters for the player to fight with and items for the player to pick up. All of this needs to be wrapped in an attractive and functional interface.

    More Visual Basic.NET Articles
    More By Peyton McCullough


       · Don't know if I just wasn't able to locate the main content of this article as I'm...
       · There's definitely more steps involved. ;-)This article is part of a series of...
     

    VISUAL BASIC.NET ARTICLES

    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT