![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Console Game Development
I am starting to work on a game for the console, there are currently three things that I need to figure out how to get done first before I work on it.
The first one is secured password input, where character inputs are replaced my either other characters or just a blank spot. The second one is updating just a single portion of the console output, like to change just the bottom right without having to update everything else. Finally is a clearing the console or clearing a portion of it. Does anyone have any help for this? |
|
|
|
|
|
#2 |
|
Highly Adaptive Penguin
Join Date: May 2005
Location: United States
Posts: 249
Rep Power: 4
![]() |
Re: Console Game Development
What operating system and compiler are you running?
here are some links I found on google.com www.gametutorials.com www.ultimategameprogramming.com www.gamedev.net www.cprogramming.com |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Re: Console Game Development
Windows and the Compiler for Visual Studio, the first two links are from 3D Games and the first one is for a book I have to purchase! The third one shows some nifty handiness of encryptions and stuff but was mostly meant for 3D games. And the fourth one shows me some nifty formatting of text, but none of them answered my questions.
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: UK
Posts: 213
Rep Power: 3
![]() |
Re: Console Game Development
check out the <windows.h> header. It pretty much has all you need. Check the MSDN for console reference . http://msdn2.microsoft.com/en-us/lib...87(VS.85).aspx
|
|
|
|
|
|
#5 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4
![]() |
Re: Console Game Development
I think pdcurses might be one way to solve your problem, and its free.
__________________
I Like Ike. Vote for Dwight Eisenhower this November. --This message brought to you by the the Procrastinators Club Of America. |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Mar 2008
Posts: 3
Rep Power: 0
![]() |
Re: Console Game Development
I programmed a console Tetris clone a while back, this is the function I used to set the cursor position to the location that needs changing, it should be what you're looking for:
c++ Syntax (Toggle Plain Text)
It will also allow you to overwrite any input, so you can replace critical inputs with asterisks or whatever you'd like. You can also use the if(kbhit()) and getch() statements to get sensitive inputs without them being printed onscreen. |
|
|
|
|
|
#7 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4
![]() |
Re: Console Game Development
You could only if you have a compiler that supports those two functions. They are non-standard and are not available to many (most) compilers. Which is a pitty because I like them too.
__________________
I Like Ike. Vote for Dwight Eisenhower this November. --This message brought to you by the the Procrastinators Club Of America. |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Mar 2008
Posts: 9
Rep Power: 0
![]() |
Re: Console Game Development
Stupid methodology by the previous posters, it is quite simple to just parse results from ReadConsoleInput and do all the raw handling from there.
|
|
|
|
|
|
#9 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Re: Console Game Development
I now have another question for this, How do I make Win32 Console GUI. If you take a look at the BIOS or even the Windows Installer for XP you will notice they have GUIs that are done in with ASCII. I tried to work this out by doing...
C++ Syntax (Toggle Plain Text)
|
|
|
|
|
|
#10 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
Re: Console Game Development
Did you look at the pdcurses link posted above? Its basically a console GUI library that works on Windows. It should have most if not all of what you need.
__________________
Robotics @ Maryland AUV Team - Software Lead |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Game Development | King | C++ | 26 | Mar 10th, 2007 8:44 PM |
| Video Game Console Course | lostcauz | Coder's Corner Lounge | 9 | Sep 29th, 2006 11:09 AM |
| The Black Art of Video Game Console Design | lostcauz | Book Reviews | 0 | Apr 26th, 2006 7:31 PM |
| Qesution: Program for casual game development | kazbadan | Other Programming Languages | 20 | Sep 28th, 2005 1:04 PM |
| Game Development question | n3o_X | Coder's Corner Lounge | 0 | Aug 5th, 2005 11:57 PM |