Jump to content

Rolf

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Rolf

  1. Hi, Currently I'm working on a game that uses music loops. I need to pause the music when the user opens a new tab or minimizes the browser. I use this code: var eventName = 'visibilitychange';if ( document.webkitHidden != undefined ){ eventName = 'webkitvisibilitychange';}function handleVisibilityChange() { if (document.webkitHidden||document.hidden) { currentLoop.pause(); } else { currentLoop.play(); }}document.addEventListener(eventName, handleVisibilityChange, false);On Android works very well, but on iOS only works when the user opens a new tab or navigates to another tab, not when the user minimizes the browser or switches to another app. window.blur nor window.focus work either. Any workaround? Thank you!
  2. Thank you! I'll be adding some music and scores (scoreoid) as well. Currently I'm using some patterns and randomize them. But probably I'm going to change it for a fixed pattern, in order to be able to ad 'shadows' from other players. The art was taken from our iOS/Android game, maybe we can include these mini-games in the main game.
  3. Hi everybody, This is my first attempt to make an HTML5 game for mobile (portrait). http://thetappingdead.com/alice/ The game play is very simple: avoid zombies. Tap on the screen to make Alice jump, Tap twice for a double jump. I would like to know if it is running ok on your devices and overall feedback about the mechanics. Thank you!
×
×
  • Create New...