• Advertisement
Sign in to follow this  

Freespace Source

This topic is 4869 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Anybody read through this? In the past delving into successful, older games has proved useful, and it's a "fun" way to cure boredom, I guess. I don't really know why I posted this. Please rate me up.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Boku San
In the past delving into successful, older games has proved useful, and it's a "fun" way to cure boredom, I guess.


well, it's one of the best ways to learn (from others) and a very good training [smile]
unfortunately most programmers hate reading sources from other partys... poor bastards...

"Talk to other programmers; read other programs. This is more important than any book or training course."
taken from Teach Yourself Programming in Ten Years by Peter Norvig

Quote:
Original post by Boku San
I don't really know why I posted this. Please rate me up.


well, i didnt know the freespace source yet. so... thanks [smile]

Share this post


Link to post
Share on other sites
Thanks for informing me too! :)

The code looks a lil bit ugly... I mean I would never code like this.. Hmm!

Is that C or C++?

Share this post


Link to post
Share on other sites
Quote:
Original post by Boku San
Anybody read through this? In the past delving into successful, older games has proved useful, and it's a "fun" way to cure boredom, I guess.

I don't really know why I posted this. Please rate me up.
Am I missing something - I was expecting a link to the source of the space game Freespace...?

Share this post


Link to post
Share on other sites
http://www.gamedev.net/reference/articles/article1809.asp

linkie to source, thought this was common knowledge...my bad.

EDIT: WHOOPS, my bad...this (http://download.descent-network.com/ddn/sources/freespace2/original/fs2source.exe) is the linkie to a good download. Looks like gamedev's source went doon.

Share this post


Link to post
Share on other sites
I was actually able to compile it and set breakpoints and run through the game. That is...if you have the game data files.

Share this post


Link to post
Share on other sites
You can also make it run with the data files from the demo. I got the SDL port and amazingly enough I got it to compile and run on my FreeBSD system with only a little hassle (some errors in the code). Most of the code seemed UGLY though, filled with functions that are no longer used, commented out parts, and just plain weird stuff. If you were to apply the principle of least astonishment to it ... well I was astonished all the time while reading through it! ("They do what!? Call a timer function from inside a square root function!? Hey, why are vectors of three floats and vectors of 3 ints stored in the same data type? Hey, these two functions and that macro do the same thing, I wonder which one is actually used ... (check) oh they are all used at different places, how convenient." etc)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement