HTML Display

GamingChefGamingChef Member, PRO Posts: 11

Sometimes my html game embed looks like this

when it should look like this?

my viewport reference is 'window'

and my fit is 'fill'

I have tried a variety of different combinations, but all end up in the screen display being odd in about 1 in 20 executions. Any thoughts?

Some of my Games: https://gamingchef.itch.io/

Comments

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    There's a bug in the engine we haven't figured out yet but if the view port is exactly 1/2 the game's display size, the font rendering goes out of wack. You can fix it by adjusting the size to be 1 off (like 961 instead of 960).

  • GamingChefGamingChef Member, PRO Posts: 11

    Tried it, but the game still sizes weird sometimes. Is there anything i can do that maybe has the game load twice or wait for a second to load? It seems that if i scroll around the page for a bit the game fixes itself so I do not know if there is some solution hint there?

    Some of my Games: https://gamingchef.itch.io/

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    @GamingChef if you PM me a link to the game, I'll see what I can think of.

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    In the index file try changing:

    gse.ready(function(engine) {
    

    to

    gse.ready(function(engine) {
     engine.relayout();
    
  • GamingChefGamingChef Member, PRO Posts: 11

    Tried this and I think it might be worse some how? Noticed that the frequency has increased... very strange

    Some of my Games: https://gamingchef.itch.io/

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,170

    huh, okay... i'll keep trying a few things.

Sign In or Register to comment.