• Resolved RickAero

    (@rickaero)


    First, i love this game. it looks great on my homepage. I noticed i do not get any sound on the mobile version. is this normal?

    Also, for the desktop mode, I’ve added the shortcode to a TEXT area in a side tab. This makes it boxed-in, or square. Any idea how i can increase width in this situation?

    thanks

    • This topic was modified 1 year, 5 months ago by RickAero.
    • This topic was modified 1 year, 5 months ago by RickAero.
    • This topic was modified 1 year, 5 months ago by RickAero.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chris David Miles

    (@chrisdavidmiles)

    Yes, unfortunately that’s unfortunately built into the original game. The game itself is JavaScript forked from the ‘T-Rex runner’ game in the open source Chromium project. I haven’t made any modifications to the original game code other than a few small changes to make it run without jQuery.

    The lack of audio for iOS is one of the things built into the game. Looking through the code history on chromium it appears audio is specifically not played on iOS devices to solve a bug that is specific to iOS browsers. Based on what I’m seeing, it appears not having audio on iOS is intentional by the original creators of the game.

    More technical details on the change in the original game code: The bug report the change is tied to, and the change itself.

    Or in other words, the original creators of this game saw a compatibility issue with iOS in including audio in the game. So unfortunately the game itself just doesn’t use audio on iOS, or at least that’s what appears to be the case based on my reading the change notes from the original creators.

    Plugin Author Chris David Miles

    (@chrisdavidmiles)

    And for your other question about the spacing, styling of the game, the HTML markup of the game has classes that make it easy to apply CSS to them. So if you want more or less padding or change the size of the container, you should be able to just add CSS to the page and either increase the size of the container, or remove padding and margins from the game itself.

    If you’re not sure how to get started with changing CSS, the tutorial I usually suggest is https://developer.chrome.com/docs/devtools/css/ which shows you how to use the Chrome browser dev tools to experiment with css changes in real time. Then once you’re happy with the changes you make, add that same CSS to the actual page.

    Thread Starter RickAero

    (@rickaero)

    beautiful! thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No sound on mobile + other’ is closed to new replies.