![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Re: Console Game Development
I can't find anything in it that I am looking for, having issues reading the documentation
|
|
|
|
|
|
#12 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Re: Console Game Development
Ok, scratch that post I was able to get through the documentation just took a bit. I not have decent lines going. But now I have to figure out how to use putwin() and getwin(). This is going to be a stupid question but what is a FILE *? How do I create one and such, I know it's a pointer to a file but is it the stream or something or just the location of the file?
|
|
|
|
|
|
#13 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 548
Rep Power: 4
![]() |
Re: Console Game Development
FILE is whats known as an opaque data type. Its actually a struct, but we don't really care whats in it. How files work below the C library level is OS dependent.
Using C, you can create a file using the fopen function.
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4 |
|
|
|
|
|
#14 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Re: Console Game Development
Ok, no that that works I am having issues tying to use color_set(), what the hell is a void *? I start the color and try to change it to COLOR_BLUE and it does not change the color at all, anyone know how to get it to work?
|
|
|
|
|
|
#15 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 548
Rep Power: 4
![]() |
Re: Console Game Development
void * is a pointer to anything. It needs to be casted to a datatype to be of any use. Notice that malloc() return void *, this is because all malloc does is allocate bytes, how those bytes are interpreted depends on the data type.
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4 |
|
|
|
|
|
#16 |
|
Newbie
Join Date: Mar 2008
Posts: 25
Rep Power: 0
![]() |
Re: Console Game Development
Well I passed it anything and it still has yet to make anything blue.
C++ Syntax (Toggle Plain Text)
Also here is the code for color_set... C++ Syntax (Toggle Plain Text)
|
|
|
|
|
|
#17 | |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 548
Rep Power: 4
![]() |
Re: Console Game Development
According to the color_set manual page,
Quote:
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4 |
|
|
|
|
|
|
#18 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 498
Rep Power: 4
![]() |
Re: Console Game Development
KuraKal: After reading your posts in this thread my impression is that you haven't the slightest notion of what the hell you are doing. You have absolutly zero training in either C or C++ so what the hell are you doing trying to write this program? Stop right now and buy an Intruduction to C language book at your local book store or online at amazon.com. Then begin reading and studying form page 1. You are just wasting your and everyone's time posting these questions that any 1st semester student should have learned. This is not the place to teach you c language -- that's what books are written for and the thousands of online tutorials attempt to do.
__________________
I Like Ike. Vote for Dwight Eisenhower this November. --This message brought to you by the the Procrastinators Club Of America. |
|
|
|
![]() |
| 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 |