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

Refactor entities in level_002 to move rendering to the renderer #29

Open
sfoster opened this issue Feb 23, 2012 · 0 comments
Open

Refactor entities in level_002 to move rendering to the renderer #29

sfoster opened this issue Feb 23, 2012 · 0 comments

Comments

@sfoster
Copy link
Contributor

sfoster commented Feb 23, 2012

With the new renderer, the level needs to implement a getRenderList method to return all the things (entities, particles, whatever) that need rendering, in the order they should be rendered.

The example method has a trivial example implementation. The level's render method will be called, again, in the example level you'll see it passes the return value of this.getRenderList() to rendererer.render( ).

The renderer currently only supports sprite-based rendering (ctx.drawImage).So this task is blocked by another which is to implement the box/line fills currently used for walls, doors, etc.

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