I use many times the YEP_CoreEngine script.
I use it to edit the resolution of my games. But they are always "fixed" in this new "relative" web.
My question was: How can I set the width or the height: 100%?
EDIT:
I find a solution editing the css/html of the game.
You have to edit index.html.
In the <head> you can add this:
Then edit the style with:
BEFORE
AFTER
In this way, if you're adding your game on your website, it will be always responsive.
I'm still solving a bug linked with the cursor. Stay tuned.
I use it to edit the resolution of my games. But they are always "fixed" in this new "relative" web.
My question was: How can I set the width or the height: 100%?
EDIT:
I find a solution editing the css/html of the game.
You have to edit index.html.
In the <head> you can add this:
HTML:
<style>
#GameCanvas {
width: 100% !important;
max-width: 900px;
height: auto !important;
}
</style>
Then edit the style with:
HTML:
<body style="background-color: black; overflow:hidden;">
BEFORE
AFTER
In this way, if you're adding your game on your website, it will be always responsive.
I'm still solving a bug linked with the cursor. Stay tuned.