Hello
We're trying to use isogenic to render a map in our game. Adding tiles works, and so on; but we haven't figured out how to get it to stay in it's place, so to speak. It seems like the engine makes the assumption that the entire window is available to it.
Ideally we want to tell the canvas to render in a div controlled by css, and then automatically handle the rest. That way we render the UI with real html, css, knockout all that jazz.
Rendering to parts of the html
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: Rendering to parts of the html
Hey ya,
There is an example in the repo for that 1.1.2-startup-offset-canvas.
Let me know how you get on with it! Specifically, look at the index.html file to see how the canvas is created and then in client.js to see how it is referenced.
There is an example in the repo for that 1.1.2-startup-offset-canvas.
Let me know how you get on with it! Specifically, look at the index.html file to see how the canvas is created and then in client.js to see how it is referenced.
Re: Rendering to parts of the html
Impressive response time. Now we have somewhere to start on Sunday.
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: Rendering to parts of the html
No problem!
Don't forget that the new official forum is now available at http://www.isogenicengine.com/forum
Thanks!
(Link on our homepage is changing very soon - couple of minutes away )
Don't forget that the new official forum is now available at http://www.isogenicengine.com/forum
Thanks!
(Link on our homepage is changing very soon - couple of minutes away )