Sign in to follow this  

split screen game with html5

Recommended Posts

davethecross    122

This seemed like the most relevant forum to post this:


I'm starting a game that will be two player split screen, and I want to know how to do it the most optimally.


My first thought was to use two canvas elements side by side, but it seems too sloppy; especially when dealing with things like a menu screen when there is no split screen showing.


I was wondering if there was maybe a built in way to deal with this, or if not what should the pseudo code roughly look like?


Thanks for reading

Share this post

Link to post
Share on other sites
bwhiting    1562

2 Canvas instances should be fine, I doubt there would be much of a performance gain just by having 1 and it will keep the logic/maths simpler with 2.


You can always overlay the other elements on top of the canvases can't you? 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this