RSS Forums RSS
Please support our Game Development advertiser: Programming Forums
Views: 2447 | 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,555
Reputation: John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all 
Rep Power: 17
Solved Threads: 284
Moderator
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: Dundee, Scotland
Posts: 13,423
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 33
Solved Threads: 330
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

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

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
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,555
Reputation: John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all 
Rep Power: 17
Solved Threads: 284
Moderator
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)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:39 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC