Questions tagged [roguelike]

A roguelike is usually a turn-based computer game with a strong focus on intricate gameplay and replayability due to procedurally generated content.

There are several similar but distinct definitions of Roguelike in current use.

The newest defines "Classic Roguelike" strictly.

To be a Classic Roguelike, all of the following features must be present (summarized):

  • Turn Based: The player interacts in discrete turns.
  • Grid Based: There is an underlying orthogonal (rectangular) or hexagonal grid where the entities of the world are placed. Movement is in full cell-to-cell discrete steps.
  • Permanent Failure: Games can support save-and-quit, but not a reload function to retry any section of the game. Upon death the game must be restarted from the beginning.
  • Procedural Environments: Most of the game is generated by the game for every new play session.
  • Random Conflict Outcomes: The main conflict actions (attacks or spells usually) has a randomized outcome within a defined distribution.
  • Inventory: There are items the player can pick up and use and inventory space is limited.
  • Single Character: The player controls exactly one character in the game world.

Previously the most widely known definition of a Roguelike was the Berlin Interpretation:

The Berlin Interpretation defines Roguelikes as a genre with the following high and low value factors.

High value factors:

  • Random environment generation.
  • Permadeath.
  • Turn based.
  • Grid based.
  • Non-modal.
  • Complexity
  • Resource management.
  • Hack n' slash.
  • Exploration and discovery.

Low value factors:

  • Single player character.
  • Monsters are similar to players.
  • Tactical challenge.
  • Ascii display.
  • Dungeons.
  • Numbers.

Another old definition is available at the Roguebasin page.

112 questions
0
votes
1 answer

Initiating a derived class with specific variable values

For the below code snippet, how do I initialize instances of class Enemy with variables (such as x, y, type)? I have it working correctly, it triggers the instances no matter how many of them I insert... I just need to know the best way of creating…
0
votes
2 answers

Coding a Roguelike: Help with entity array logistics

I am currently in the process of coding a roguelike, and teaching myself what I need as I go. I am stuck on a problem which I found somewhat answered here: Best way to organize entities in a game? I need to have an entity tree, with classes as…
0
votes
1 answer

int() argument must be a string, a bytes-like object or a number, not 'list' Python python-tcod Roguelike

I am making a roguelike game using the python-tocd roguelike engine. My game is based off the python libtcod roguelike tutorial. I'm making a list of constants that I use to generate maps game_map.make_map(constants['max_rooms'],…
0
votes
2 answers

How to design an RPG class system with OOP in java?

I am making a roguelike based on Trystan's Tutorial and running into issues with implementing a class system. I'm pretty sure the solution is simple, but bear with me. class Creature { int HP; CharacterClass playerClass = new Wizard(); …
Ben
  • 3
  • 1
0
votes
2 answers

Cast multiple vectors to void *

I am currently working on a Roguelike where I have multiple different event queues(in the form of vectors), that handle multiple different event categories. Or rather, different game objects have their own private event queues. Within the map tile…
Druid
  • 133
  • 3
  • 12
0
votes
0 answers

Reading data from a file in Java for roguelike

I'm attempting to create a simple roguelike, and I would like to read my monster information in from a data file, but I'm running into a problem with reading in the symbol of the monster because the game is in ascii. The entire project is on github…
K. Kennedy
  • 21
  • 6
0
votes
1 answer

Cannot apply indexing with [] to an expression of type im using a nuget called RLNET

here is my code and it gives me this error and i don't understand the solutions people give on the internet explanations Ruutu is a class and maa is an instance of it. And Piirrä is an method of ruutu wich should draw the char of maa onto the…
0
votes
0 answers

I cannot get my player to move twice in a row

Sorry if the question seems vague but I am creating a turn based, 2D roguelike game for coding practice and want the player to be able to move twice while the enemy moves once when the user clicks a button. I have tried using multiple booleans but…
Damian
  • 19
  • 6
0
votes
1 answer

PDCurses in C (Keeps showing "Access violation read location")

I just started a new project (a roguelike) yesterday. It's my first, and I keep running into the same error. After trying to implement a scrolling map, I ran the program, but whenever I pressed a key Visual Studio would show a message box saying…
0
votes
0 answers

JavaFX console game map object

I want to create little game app with JavaFX like RogueLike game. My idea is to separate window on 3 parts like: - details/specifications on the right side (from up to down) - player console to execute commands, read responds etc. on the bottom -…
ssukienn
  • 558
  • 6
  • 22
0
votes
1 answer

How to get Player to interact with Monster using ncurses library?

I've been trying to create my roguelike type of game for C++ using the ncurses library. After following many different tutorials, I am able to create the Player character, the map, the code to prevent the Player from going through walls and the…
RyAaren
  • 1
  • 1
0
votes
1 answer

Array or list for RL in haskell

I'm making a little RL in haskell (with hscurses) and now, I write the code to make/print the dungeon. The first thing I do is making a list/array with 'walls' In python(v3) it would be like this: def mk_list(x, y): dungeon = [['#' for…
0
votes
1 answer

I don't know how to manage my classes sturctures with SDL2

I try to create some C++ "rogue-like" game with SDL-2. For this I followed the Lazy foo's tutorial to understand how work with SDL. I've studied C++/C# for 3 year but now I study project management and don't have no more IT courses... Here's the…
Paingouin
  • 11
  • 3
0
votes
0 answers

Trouble implementing BSP tree for roguelike dungeon generation

I am trying to make a dungeon generator for a roguelike, using a BSP like the one described here: Basic BSP I am a bit new to tree structures, and I have been working on this for a while now and really can't seem to figure out where I am going…
econsteve
  • 55
  • 1
  • 1
  • 4
0
votes
0 answers

Storing a function and it's arguments in a dictionary

I don't like how ugly long if/elif statements look. And switch/case statements aren't much better. I find dictionaries easier to read. Now I know how to handle it if each key binding goes to a different function, that's easy. But that would require…
Jonathanb
  • 1,224
  • 1
  • 11
  • 16