Skip to content

RenderLayer Component #109

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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