User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Game Development section within the Software Development category of DaniWeb, a massive community of 391,552 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,581 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Game Development advertiser:
Views: 2210 | Replies: 5
Reply
Join Date: Feb 2007
Posts: 3
Reputation: manciini18 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
manciini18 manciini18 is offline Offline
Newbie Poster

Question Puzzle game

  #1  
Feb 11th, 2007
hi. Is it possible to get some information about making a puzzle game. The object of the game is to move a man through a maze with objects and put a key in a keyhole to get out. I've figured out how to get the person trying to catch him to move towards him after he moves, but how would you represent a book or wall in the language. Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,445
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 15
Solved Threads: 265
Moderator
Staff Writer
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: Puzzle game

  #2  
Feb 11th, 2007
C or C++?

This type of game would be suited to C++, in my opinion. I would create a base class, CObject, which would represent an object in the game. It could contain variables such as position, veloctiy, state and dimensions (size). Then for a book, I would derive a class from CObject named CBook which would contain attributes specific to a book. And derive another one for a wall.

As for the actual drawing to the screen, I'm entirely sure what you want to do. If you're actually planning on making an interactive console game, you'd be best off using a console library like NCurses. If this is purely a word game where the person simply types input at a prompt (not real time), then you could just use the default I/O functions that are available with the Standard Template Library.
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 264
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Puzzle game

  #3  
Feb 11th, 2007
I did a nethack type game lin VB using an array and pictureboxes but thats not a particualy good idea for a serious game
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Feb 2007
Posts: 3
Reputation: manciini18 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
manciini18 manciini18 is offline Offline
Newbie Poster

Re: Puzzle game

  #4  
Feb 11th, 2007
this is to be a real time game where the user presses up, down, left, right and the character on screen moves. There should also be a man who moves towards the character after every move
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,445
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 15
Solved Threads: 265
Moderator
Staff Writer
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: Puzzle game

  #5  
Feb 11th, 2007
Originally Posted by manciini18 View Post
this is to be a real time game where the user presses up, down, left, right and the character on screen moves. There should also be a man who moves towards the character after every move

Then spend some time learning NCurses or the WinAPI console functions before even attempting to start the game. You should have the knowledge of how to draw and color pixels onscreen.
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Join Date: Feb 2007
Posts: 3
Reputation: manciini18 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
manciini18 manciini18 is offline Offline
Newbie Poster

Re: Puzzle game

  #6  
Feb 11th, 2007
thanks
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Game Development Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Game Development Forum

All times are GMT -4. The time now is 9:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC