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 main loop, generalise render #32

Open
jmickle66666666 opened this issue Aug 23, 2019 · 0 comments
Open

Refactor main loop, generalise render #32

jmickle66666666 opened this issue Aug 23, 2019 · 0 comments
Labels
code cleanup not a user-end improvement, but development improvement

Comments

@jmickle66666666
Copy link
Owner

https://github.com/jmickle66666666/jzbuilder/blob/master/src/main.ts

Rendering is kind of a mess currently! the current 2d and 3d modes are really hardcoded, and could be generalised much better to support different viewing modes (such as an isometric view, software renderer etc)

Need to make sure everything is decoupled in the BuilderCanvas, and create a simple base class for rendering/inputs.

Maybe each "mode" defines it's own set of tools and inputs, as well as it's own renderer, which means tools could potentially be shared if necessary (need to see if this is possible though. maybe each mode needs its own bespoke set of tools)

@jmickle66666666 jmickle66666666 added the code cleanup not a user-end improvement, but development improvement label Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup not a user-end improvement, but development improvement
Projects
None yet
Development

No branches or pull requests

1 participant