Author Topic: Beginner's Guide to Roguelike Development Updated!  (Read 7893 times)

cstickel

  • Newcomer
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Beginner's Guide to Roguelike Development Updated!
« on: January 14, 2013, 08:11:07 AM »
Hi all,

An ongoing project of mine is the "Beginner's Guide to Roguelike Development in C/C++". It's been approximately 8 months and four rewrites in the making, but a new wave of articles has been posted for the guide, located at:

http://www.kathekonta.com/rlguide/index.html

Feel free to check it out if you're so inclined.

New Additions:
- Two (2) entirely articles covering the creation and storage of NPCs
- An article introducing projects with multiple source files
- Console library expanded to include keyboard input
- All examples rewritten to support arrow keys and cleaner code

TheCreator

  • Rogueliker
  • ***
  • Posts: 370
  • Karma: +0/-0
    • View Profile
    • Fame
    • Email
Re: Beginner's Guide to Roguelike Development Updated!
« Reply #1 on: January 14, 2013, 10:19:49 AM »
Very nice tutorial. Beginners should love it. Few things should be noted, though.

I see that you use the 'rand' function in the code. It's perfectly okay for the first few lessons, but I expect that you'll eventually introduce a more elaborate random number generation system, possibly as a separate chapter. That's a crucial element of roguelike games, so don't ignore it.

It would be nice to see the FoV/LoS stuff explained. That's another basic element and I can't see it anywhere in your guide.

Now some may reject this advice as a less important one, but you definitively should review your code once again and remove horrible stuff like #define's used as constants or the pseudo-Hungarian notation in variable names. Here's a nice article defending the Hungarian notation and explaining why the thing you do in your code (bool bSomething) is NOT the Hungarian:

http://www.joelonsoftware.com/articles/Wrong.html
Fame (Untitled) - my game. Everything is a roguelike.

Ulfen

  • Newcomer
  • Posts: 5
  • Karma: +0/-0
    • View Profile
    • Email
Re: Beginner's Guide to Roguelike Development Updated!
« Reply #2 on: January 24, 2013, 02:48:50 PM »
I'll add this to my reading list!  Thanks!

I've also been going through Trystan's roguelike tutorial (Java) and Steve Losh's "Caves of Clojure" (clojure, obviously.)  If anyone's interested, here are he links to those:
http://trystans.blogspot.com/2011/08/roguelike-tutorial-01-java-eclipse.html
http://stevelosh.com/blog/2012/07/caves-of-clojure-01/

Gmontford

  • Newcomer
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • Email
Re: Beginner's Guide to Roguelike Development Updated!
« Reply #3 on: February 17, 2013, 05:31:30 AM »
This must be pinned in the messages for newbies. Great help for us. Thanks!