RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic Goto page 1, 2  Next 
View previous topic - View next topic  
Author Message
MisterMark
Lowly Slime


Joined: 27 May 2003
Posts: 1

PostPosted: Tue May 27, 2003 9:51 pm    Post subject: Prgramming in C [quote]

I been programming in qbasic but want to start using C. Does anyone have a simple tile-based RPG engine built with C that I could study? Or a good resource to help me learn to program RPGs in C?
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Tue May 27, 2003 10:49 pm    Post subject: [quote]

I don't have anything on RPGs, but if you know how in QB, then you should be able to adapt what you know to C. I have some ebooks on C++ if you wanna check 'em out. http://www.geocities.com/ninkazu
Back to top  
twinsen
Stephen Hawking


Joined: 21 May 2003
Posts: 242
Location: Melbourne, Australia

PostPosted: Wed May 28, 2003 12:12 am    Post subject: [quote]

I think before you leap into studying the code from a premade RPG engine you should at least go over some of the basics of C. Memory management with C can be a bit more complicated than in BASIC, and when you hit pointers for the first time, chances are they'll probably do you head in. Theres an old C tutorial I used back when I was first studying the language by Coronado, do a search on Google for "coronado c tutorial" and it should be the first link. It may be dated, and it doesn't touch on graphics of anything- but it could be useful.
_________________
Lovely girls & great prices always available at CLUB 859, 859 Glenhunly Road, Caulfield, Open 10am till late 7 days. +61-3-9523-8555. (Sorry, it was in front of me in the newspaper, I just had to use it as a signature!)
Back to top  
akOOma
Wandering Minstrel


Joined: 20 Jun 2002
Posts: 113
Location: Germany

PostPosted: Wed May 28, 2003 11:31 am    Post subject: [quote]

twinsen wrote:
I think before you leap into studying the code from a premade RPG engine you should at least go over some of the basics of C. Memory management with C can be a bit more complicated than in BASIC, and when you hit pointers for the first time, chances are they'll probably do you head in. Theres an old C tutorial I used back when I was first studying the language by Coronado, do a search on Google for "coronado c tutorial" and it should be the first link. It may be dated, and it doesn't touch on graphics of anything- but it could be useful.


Yeah, twinsen's right.... have a look at the C/C++ section of www.qb45.org...there's a board, too, where you can ask every question about C being in your mind...
_________________
Keep on codin'
-----------------

-----------------
Just another post to increase my rank...
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Wed May 28, 2003 12:21 pm    Post subject: [quote]

oh and just remember
"when you hold a bash shell to your ear, you can hear the C"
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
twinsen
Stephen Hawking


Joined: 21 May 2003
Posts: 242
Location: Melbourne, Australia

PostPosted: Wed May 28, 2003 10:33 pm    Post subject: [quote]

Quote:
"when you hold a bash shell to your ear, you can hear the C"


LOL.. thats some funny crap :)
_________________
Lovely girls & great prices always available at CLUB 859, 859 Glenhunly Road, Caulfield, Open 10am till late 7 days. +61-3-9523-8555. (Sorry, it was in front of me in the newspaper, I just had to use it as a signature!)
Back to top  
DrV
Wandering Minstrel


Joined: 15 Apr 2003
Posts: 148
Location: Midwest US

PostPosted: Thu May 29, 2003 1:32 am    Post subject: [quote]

Shouldn't it be, "when you hold a csh to your ear, you can hear the C"?

lol
_________________
Don't ask no stupid questions and I won't send you away.
If you want to talk fishing, well, I guess that'll be okay.
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Thu May 29, 2003 12:15 pm    Post subject: [quote]

DrV wrote:
Shouldn't it be, "when you hold a csh to your ear, you can hear the C"?


actually the jokes a bit more involved than that,
early versions of bash was coded in something that looked liked
Algol quite much tasted like Algol but really wasn't Algol,
it was C plasstred with preprocessor macros to make it look
that way because the author liked it better that way,
overtime it all became a maintnance nightmare so I think
that nowadays they're mostly gone, but that's where
the joke comes from.
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
Y treefingers Y
I wanna be a ballerina!


Joined: 21 Apr 2003
Posts: 29

PostPosted: Thu May 29, 2003 2:45 pm    Post subject: [quote]

if i were you, i would take a summer college class, or take a class in school....i was just like you...i moved from QBASIC to C/C++, and it was kind of hard. Teachers are the best way to learn for C/C++ and teaching yourself would be a little hard since you cant ask authors of books questions right off the book. Just a thought.
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Thu May 29, 2003 2:50 pm    Post subject: [quote]

I would say read a book try to actually do some small things
and then ask people on boards or in chatrooms for help
sure you'll bump in to some real ass-hats but you'll also
find quite a lot of nice people more than willing to help
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
DrV
Wandering Minstrel


Joined: 15 Apr 2003
Posts: 148
Location: Midwest US

PostPosted: Fri May 30, 2003 12:13 am    Post subject: [quote]

Yeah, I've read a few books (that mostly sucked... they were of the "teach yourself C++ in x hours/days/weeks/milennia" variety) and I'm coding up little thingys now and then just to figure out how to do things. I also am in a project where I am coding a P*P engine right now alongside a very much more experienced C++ coder, and he is very helpful. I learn quite quickly now. :) I can't really take any summer courses unless they're in the evenings, though, because I work 40 hrs/week in the summer. :(
_________________
Don't ask no stupid questions and I won't send you away.
If you want to talk fishing, well, I guess that'll be okay.
Back to top  
DarkDread
Wraith Lord


Joined: 28 May 2002
Posts: 422
Location: behind your bushes

PostPosted: Fri May 30, 2003 7:11 am    Post subject: [quote]

imo, the worst part of it is deciding which graphics lib you want to become most proficient with. Hell, I still haven't decided which one I want to dive into the most... I like all the features of Direct3D... and DirectDraw... but, I'll be damned if I'm stuck coding for a win32 platform only.

Oh well... SDL seems to be the best for 2D, cross platform stuff. Anyone have any cool tales to share?
_________________
"Goth is a way for ugly people to be interesting."
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Fri May 30, 2003 8:42 am    Post subject: [quote]

DarkDread wrote:

Oh well... SDL seems to be the best for 2D, cross platform stuff. Anyone have any cool tales to share?


Haven't really looked into SDL but it seems nice
Allegro is also quite good but have som really annoying inconistencies
that just bothers me also it seem to have quite a problem
coexisting with STL when using mingw32 :/

ClanLib is supposed to be good to OO crossplatform.

But really just pick one, after you've mastred one if you decide you
made the right choice it really won't be that hard to change.
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
DrV
Wandering Minstrel


Joined: 15 Apr 2003
Posts: 148
Location: Midwest US

PostPosted: Fri May 30, 2003 11:53 pm    Post subject: [quote]

dandelion wrote:

Allegro is also quite good but have som really annoying inconistencies
that just bothers me also it seem to have quite a problem
coexisting with STL when using mingw32 :/


Uhoh... what would that problem be? I'm in a project that could be described as exactly that. I haven't had any problems yet, but then again, I haven't really done much STL stuff yet, either...
_________________
Don't ask no stupid questions and I won't send you away.
If you want to talk fishing, well, I guess that'll be okay.
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Sat May 31, 2003 7:41 am    Post subject: [quote]

check the "STL and Allegro" thread
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
Post new topic Reply to topic Page 1 of 2 All times are GMT
Goto page 1, 2  Next 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum