•
•
•
•
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
![]() |
•
•
Join Date: Feb 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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
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.
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
•
•
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation:
Rep Power: 30
Solved Threads: 264
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
james.bennet1@ntlworld.com
•
•
•
•
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Game Development Marketplace
•
•
•
•
activex advertising agplv3 ajax asp blogging browser business code console development exploit firefox game games gnu google hardware intel internet linux marketing microsoft mozilla msdn news nintendo playstation programming ps3 revenue rss search security software sony sql stocks video video game vista w3c web web development wii wiki windows xbox 360 xml yahoo
- Quick question about "getLocation()" (Java)
- [ Puzzle Game ] (VB.NET)
Other Threads in the Game Development Forum
- Previous Thread: Flash Actionscript + Frantic Student = The End of it all!
- Next Thread: Need a college!



Linear Mode