hi there. Me again. My game is working fine except in Chrome. In Chrome the event to start a game ‘Press arrow keys’ does nothing and you cannot start the game. any ideas ?
hì joe I believe last versions of Chrome changed something in gamepad API.
We will fix the bug in next update.
In the meanwhile you can disable gamepad support by doing so:
open the file js/game.js
findif(-1<navigator.userAgent.toLowerCase().indexOf("chrome")||-1<navigator.userAgent.toLowerCase().indexOf("firefox")) and substitute it with if(1!=1)
thanks – so does that disable game in Chrome ?
this only disable gamepad/joypad usage
thanks – so the keyboard arrows will work then ?
they should work
hi. I could not find that exact js syntax but found this
if( navigator.userAgent.toLowerCase().indexOf(‘chrome’) > -1 || navigator.userAgent.toLowerCase().indexOf(‘firefox’) > -1 )
how should I edit this to disable gamepad/joypad usage ?
yes, this statement checks if the browser in use is firefox or chrome, if so, it enables gamepad support
if you substitute the statement with something like
that means ‘if one is not equal one’, you will disable gamepad support for both browser because the condition will be never true
also, sorry – can i set the game config so it allows just 1 life per game – not 3 ?
it would be a nice idea having this parameter in prefs file. In the meanwhile open the file js/game.js and find game.data.lives=2 then change 2 to 0
Is the Chrome bug fixed?
Thanks in advance
just uploading the fix, it will be available tomorrow I believe
Perfect thanks! So I will purchase it
can we reskin it using eclipse !!!
hello, you can reskin it by using any text editor and any bitmap editor software (Photoshop, Krita, Gimp, etc…)
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $7
Unlimited graphic downloads & digital courses. Only $29/month
22,000+ templates & 1,000+ courses
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work