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…)
Nice game. I have a question. How can I change the power up pills by using a different image for each of them?
Hi,Thank you! If I’ve understood what you mean, well, it’s not that easy, you have to modify the game code to support that feature. For example, you could add a property to the pill class where the property sets the image of each power-up then from the Tiled editor you can fill the property field with the desired value.Lamberto
how can i adjust the game in the landscape?
game.data.device_portrait_orientated = null; // true = portrait false = landscape
inside data/prefs.json file there are GAME_WIDTH and GAME_HEIGHT parameters. With those first two parameters, you can set the game resolution. If you set a width greater than the height, the engine will switch to landscape mode, otherwise, if the width is smaller than height, it will switch to the portrait mode. Naturally, you need game levels supporting this new game size. Inside data/map you can fin an example level named landscape_level_1
thank you it worked,
but we can make the game field bigger?
the intro is ok but the game is small
I’m not really sure if I got the meaning of your question. You can get a bigger level by designing your own level using Tiled editor. You can have bigger sprites by setting TILES_WIDTH and TILES_HEIGHT to 64 in prefs.json file, you have anyway to design up dedicated new levels. A demo level with 64 pixel sprites is available in map folder ad is named scroll_level_big.
I would like to customize the Pac Maker,
Can you contact me?
hello, we can’t see your email so we can’t contact you. Can you contact us directly by using the form in on our profile? https://codecanyon.net/user/officinepixel
John Walter garcia
I will get in touch with you by email
Can we have
1 – different illustrations for each enemy along with different power settings? or at least different illustration of enemy per level?
2 – Can we have different powerups with different power values?
sorry, what you ask is not included into the game at the moment.
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
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
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