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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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

    - 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...
    - Creating and Drawing a Game Map in VB.NET (F...
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




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