Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderLayer Component #109

Open
sunjay opened this issue Apr 27, 2019 · 0 comments
Open

RenderLayer Component #109

sunjay opened this issue Apr 27, 2019 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Apr 27, 2019

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.

@sunjay sunjay changed the title RenderLayerComponent RenderLayer Component Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant