J
Jacob Oost
Chris said:A numboer of them use a "game engine", which is an interpreter. Do a
Google search for "infocom" and "frotz", I know there is C source for
that (for Linux and DJGPP among others). But the code is not very
readable as I recall. Somewhere there is code for the original
"Colossal Cave" adventure as well...
If it's not readable then screw it. If there's one thing I intend to do
as a programmer it is to make my code readable and easy to upgrade.
(I note your email address, Infocom were the people who did Zork among
others.)
Believe it or not, I only ever got into the graphical Zork games. I
liked the text adventures when I was younger, but now that I've played
so many LucasArts adventure games, it's frustrating to play an adventure
where you can die or make irreparable mistakes.
If you want to do 3D (or even 2D) "real world" type programs then
calculus is rather useful. In fact if you're interested in any
mathematical modelling of "real world" stuff I'd advise it, if only so
you know what other people are talking about!
My problem with math is I tend to quickly forget it after learning. I
took two calculus classes and now I can't do a simple derivative by hand
(though I remember some of the rules for doing it in your head).
Writing a raytracer (or interactive games for that matter) is more about
knowing 'tricks' or shortcuts and algorithms than about raw mathematics,
bacause the 'obvious' (to a mathematician) route generally takes ages.
At the very least, you'll need to know about things like Fast Fourier
Transforms and other numerical methods, which aren't likely to be
covered in normal math classes (below degree course level, anyway).
As computers get faster though, real-time ray-tracing and radiosity
(instead of gimmicks to imitate them) will be standard.
Which is all off topic here, because it's about algorithms rather than
which language they are written in. Some newsgroups which may be more
helpful:
comp.games.development.programming.{misc,algorithms}
comp.sources.games
Chris C
Hold on, I just finished learning the preprocessor macros! I still
don't know anything about writing "real" programs. Unfortunately my
library is pretty slim on what they offer for programmers, and most of
the books I've seen in stores or have at home are just "this function
does this, and that function does that," with few source examples.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----