Skip to content

RenderLayer Component #109

@sunjay

Description

@sunjay

Right now the ghost component plays two roles: 1. collision detection, 2. rendering.

We should really have something like:

#[derive(PartialOrd, Ord)]
enum RenderLayer {
    Floor,
    Item,
    Player,
    Above,
}

(Feel free to think of better names)

These names are not restrictions on what can go on that layer. It's just a conceptual picture of the hierarchy we're trying to create.

Floor could be the default layer since it's the very bottom.

So stairs could be ghost and also have Item as their layer. Players and enemies all have Player as their layer. Decorations like torches have Item as their layer. If we add an arch over a doorway it would have Above as its layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions