OfficinePixel

OfficinePixel supports this item

Supported

26 comments found.

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 ?

joe

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 ?

thanks again

joe

hello joe,

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

if(1!=1)

that means ‘if one is not equal one’, you will disable gamepad support for both browser because the condition will be never true

Lamberto

also, sorry – can i set the game config so it allows just 1 life per game – not 3 ?

joe

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

Hi!

Presales doubt:

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…)

Hi,

Nice game. I have a question. How can I change the power up pills by using a different image for each of them?

Thanks, Alex

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

Hi how can i adjust the game in the landscape? game.data.device_portrait_orientated = null; // true = portrait false = landscape Thank you

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 Thanks

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.

by
by
by
by
by
by