Author Topic: RougeLike Step by Step Tutorial?  (Read 25425 times)

ElanMorin

  • Newcomer
  • Posts: 2
  • Karma: +0/-0
    • View Profile
RougeLike Step by Step Tutorial?
« on: October 01, 2009, 09:59:24 AM »
 Hey Mates,

 I hope i will find friendly ppl around who can advice me and help me finding Step by Step RLRPG tutorial. I get C++ like my lang ( study it right now) and i wana start making something small. Is there any good Tutorials how to make RougeLike game? If someone know please share. Or ofc if there is some good open source project i will be more than happy to take a deep look in the the code. I rly enjoy such a games and hope one day i will be able to make my on. Thank you in advance for all the help and advices you can give to one Noob in Development like me  ;D

P.S - If you thing this Post is for Development forum move it, i'm sorry if i posted on the wrong place.
« Last Edit: October 01, 2009, 10:02:13 AM by ElanMorin »

Etinarg

  • Rogueliker
  • ***
  • Posts: 424
  • Karma: +1/-1
  • Idea archivist and game tinkerer.
    • View Profile
    • Gedankenweber Blog (German)
Re: RougeLike Step by Step Tutorial?
« Reply #1 on: October 01, 2009, 02:06:10 PM »
I'm afraid there is nothing like a step-by-step tutorial for roguelike development. Although I heard that some beginner frameworks exist. Basically skeletons of games, that you can flesh out for your needs, but I don't remember where I saw such last.

Often the start looks like this:

- Get characters (or graphical tiles) displayed on screen
- Learn how to read keyboard input
- Link input to the player character, to move it around
- Define terrain, walls, floors, doors ...
- Define monsters.
- Work on monster AI, combat code and all the other details.
- Find out how to save the game state, and load again.

From there, you're in the game :)

AgingMinotaur

  • Rogueliker
  • ***
  • Posts: 805
  • Karma: +2/-0
  • Original Discriminating Buffalo Man
    • View Profile
    • Land of Strangers
Re: RougeLike Step by Step Tutorial?
« Reply #2 on: October 02, 2009, 01:26:24 PM »
There's this, of course. For more in-depth articles, take a look at this list. But when push comes to shove, you just have to rely on your own intuition.

As always,
Minotauros
This matir, as laborintus, Dedalus hous, hath many halkes and hurnes ... wyndynges and wrynkelynges.

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: RougeLike Step by Step Tutorial?
« Reply #3 on: October 02, 2009, 01:33:52 PM »
Read the faq.

You can also start out from my old tutorial for c.

Anyway, tutorials will only get you so far.  The nice thing about roguelikes is (at least if you are using an ascii interface) that you need to worry very little about technical issues like graphical interfaces, almost all of it is either algorithmical (dungeon gen, FOV/LOS, AI, etc) or game logic/content.

Really, other than knowing how to read an input from the keyboard and put a char on the screen with curses there is basically nothing you need to know other than how to use your programming language of choice.

justinhoffman

  • Newcomer
  • Posts: 33
  • Karma: +0/-0
    • View Profile
    • Email
Re: RougeLike Step by Step Tutorial?
« Reply #4 on: October 02, 2009, 06:19:27 PM »
There are two things you might want to do before a serious attempt.  Keep in mind there are a variety of approaches to software development.  This is just the way I would handle it.

1) Understanding all of the mechanics of what you are trying to do.

  a) User input, reading key strokes.
  b) Output (display), how you will display characters to a screen.  
  c)  Basic computer science principles.
  d) Saving and loading a file.

Here you need an understanding of what sort of libraries you need, what you can and cannot do with the language.   If you allow characters to save their game, you don't want 100 megabyte save files.  There isn't really any excuse for slow code with a roguelike either.  You might want to view some of the procedural content generation articles and some of the AI articles.

2) High level view of what your code will eventually look like

  a)  Data Structures
  b)  Classes
  c)  Methods

Here you might make a mock up of how your code might end up working from a high level view.  You might think about how you will handle spells/items/monsters/time/players/maps.  What sort of prorperties will each of these objects have and how will they relate to the game state.   You will probably have a main class, that contains instances of each of the objects.

Here is an example for a monster object.

Object:  Monster
Variables:  String name;
                  int px, py;
                  char c;
Methods:   Act(int time, player p, map char[][]){}


Granted your code will eventually grow, you want to have some idea on how everything will work.  Anyway, content is probably much harder to deal with than the actually programming.  So mess around, and start doing lots of designing.

Get out a sketch pad and start making diagrams, skill lists, level outlines, and interface display.  Think of what the plot will be and what the game play will be like.
« Last Edit: October 02, 2009, 06:23:13 PM by justinhoffman »

ElanMorin

  • Newcomer
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: RougeLike Step by Step Tutorial?
« Reply #5 on: October 05, 2009, 03:30:42 PM »
Thanks for help mates, and btw do you thing C++ is the best choice for start righting my own RLRPG ( i have some skills in basic also ). For example is it possible to make Rouge like game using something like BlitzBasic or your advice is to go deep and deep in C++?

Slash

  • Creator of Roguetemple
  • Administrator
  • Rogueliker
  • *****
  • Posts: 1203
  • Karma: +4/-1
    • View Profile
    • Slashie.net
    • Email
Re: RougeLike Step by Step Tutorial?
« Reply #6 on: October 05, 2009, 06:27:53 PM »
It is possible to make a rougelike in BlitzBasic or FreeBasic; those are good, modern languages, and there are rougellikes using it already.  (IRLDB points to Lost Labyrinth and Roguetower)

Even QB would be doable if you are up to the challenge (I once was, never finished)

Perdurabo

  • Rogueliker
  • ***
  • Posts: 99
  • Karma: +0/-0
    • View Profile
    • Email
Re: RougeLike Step by Step Tutorial?
« Reply #7 on: October 05, 2009, 10:54:02 PM »
Thanks for help mates, and btw do you thing C++ is the best choice for start righting my own RLRPG ( i have some skills in basic also ). For example is it possible to make Rouge like game using something like BlitzBasic or your advice is to go deep and deep in C++?


No, start with the language you know best. Which seems to be BASIC in your case.

Best,
P.