Rendering to parts of the html

All things HTML5 or text based engines, or really any web based engines.
Post Reply
Odalrick
Posts: 2
Joined: Wed Oct 23, 2013 7:22 pm

Rendering to parts of the html

Post by Odalrick »

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.
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Rendering to parts of the html

Post by coolbloke1324 »

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.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Odalrick
Posts: 2
Joined: Wed Oct 23, 2013 7:22 pm

Re: Rendering to parts of the html

Post by Odalrick »

Impressive response time. Now we have somewhere to start on Sunday.
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Rendering to parts of the html

Post by coolbloke1324 »

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 :))
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Post Reply

Return to “HTML5/Web Engines”