_escaron

u/_escaron


r/godot•

Hello,

so, say I have a strategy game where multiple resources are defined. Stone and gold.

I have a single scene that covers both that has an enum exported where you can choose if the resource is stone or gold. Based on what I select in editor I want to change a sprite and label IN THE EDITOR, not in game. Is something like that possible in godot?

Example script attached to the Resource scene:

extends StaticBody2D

enum TYPE {stone, gold}

export (TYPE) var type = TYPE.stone

func _process(_delta):
    if stone:
        # Show stone
    if gold:
        # Show gold
53


r/roguelikedev•

Hello awesome gamedev community,

do you know of any open-source or source available roguelikes or similar games written in a lisp dialect. It can be anything Common Lisp, Scheme, Emacs lisp, Racket or even Hy, anything generally regarded as Lisp language.

I'm writing one on my own and I would like to see how others fare, what code style they use, what might be the best way to approach common roguelike features, etc.

One thank and upvote for any suggestion. :-)

(I already know about City of the Damned, but feel free to discuss anyway)

4616

r/roguelikedev•

Hello,

I've finished the python3 + libtcod tutorial, however as I continue developing the game I'm not sure about the way entities and components are handled. Each component is passed as parameter during entity creation and the entity keeps a hardcoded set of attributes for the components.

class Entity:
    def __init__(self, x, y, char, color, name, blocks=False, render_order=RenderOrder.CORPSE,
                 fighter=None, ai=None, item=None, inventory=None, stairs=None,               
                 equipment=None, equippable=None):
        self.x = x
        self.y = y
        self.char = char
        self.color = color
        self.name = name
68

r/roguelikedev•

Yay, a discussion about what defines a roguelike, everyone's favourite topic.

In a video from roguelike celebration (a conference about roguelikes) the 3 developers of Rogue mention quite early, that they wanted to enjoy the game themselves, and that the randomness, procedural generation and need for item identification are decisions that were made because of this. Since I started thinking about developing a roguelike (long time ago without action :-D), this has been one of the main factors in how I though about the game and it seems to me that the same can be said about most of the roguelike ideas.

I understand it's quite vague definition bui

6725

You've reached the end of this feed.