3 ms·
Have you tried reading other people's code? There's Knuth Literate Programming version of the classic Adventure [0] which you can read almost like a novel, and
by eru 16y ago
Have you tried reading other people's code?
There's Knuth Literate Programming version of the classic Adventure [0] which you can read almost like a novel, and the source code for Spelunky [1] has also been released [2]. (I don't know whether Spelunky has good code, but it's a good game.)
Good luck!
[0] http://www.literateprogramming.com/adventure.pdf http://www.literateprogramming.com/adventure.pdf
[1] http://www.spelunkyworld.com/ http://www.spelunkyworld.com/
[2] http://spelunky.wikia.com/wiki/Source_code http://spelunky.wikia.com/wiki/Source_code
- chipsy 16y agoSpelunky is made in Game Maker, which lets you script on top of a pre-existing engine and IDE. It's hard to apply to "bare-metal" coding. I would point to open source games such as Nethack, Stepmania or Battle for Wesnoth for some ideas.
- eru 16y agoNethack is probably a mess. Battle for Wesnoth sounds like a good idea.