Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PixiJS Version 5 Made Game Only Works In Full Screen Mode On Itch? (Full Source)

A topic by SLNTHERO created Jun 27, 2020 Views: 686 Replies: 8
Viewing posts 1 to 4
(4 edits)

Hi,

Our PixiJS version 5 made game only works in full screen mode on Itch website?
When we try to run game in window mode, there is no display(black screen) but input and audio still work normally?
No errors in browser console either, we are having great trouble in fixing this.

You can view the entire source code to the game on GitHub below:
https://github.com/SLNTHERO/PacDudeHero4110PercentTurbo

You can play the full screen version of the game on Itch below:
https://slnthero.itch.io/pacdude-hero-pacman-remix

Any help would be appreciated, thanks!

Also: when using full screen mode, how does the player exit the game back to the game's main page?


Jesse

Moderator (1 edit)

Your game doesn't work for me in full screen either, it just shows a black background and stays there. But I can exit just fine by clicking the browser's back button, just like with any other. Edit: no idea if it has anything to do with Itch or not.

Hi,

Thanks for the reply.
Which operating system and Internet browser are you using?

We tested the game on:
- Microsoft Windows 10 Pro 64Bit Edge/Firefox/Chrome/Opera
- openSUSE Tumbleweed KDE 64Bit Linux Firefox/Chrome
and it seems to work ok in full screen mode.

When we try windowed mode on Itch, we have black screen, but input and audio still work?
Frustrating trying to fix this...

Jesse

Moderator

Opera 68 on Debian 10, x86-64. Nothing works. It's just a black screen. And if it works in other setups, it's probably not from Itch.

Hi,

I installed Opera browser on my Linux and the game does work in full screen mode on Itch.
When you run the game on Itch, are there any errors or warnings in Opera browser console?

Jesse

Moderator

No, none. Never mind. It's not from Itch, that's what matters.

Moderator

When I press “Play Game” the game forces itself fullscreen on me, but its being displayed properly. I can guarantee it’s not an Itch issue, because I have a game made with PixiJS myself, and had no issue displaying it. My guess is there’s something wrong with how the game is configured?

In case it helps, my game is this one: https://darkdimension.itch.io/the-collector

It’s open-sourced here: https://notabug.org/tomtsagk/collector_game

It is using a PixiJS engine I’ve made, it’s also open-sourced here: https://notabug.org/tomtsagk/pixijs-game_engine

The only reason I’m linking these, is so that maybe it will help if you see how another project that works is configured. This is a very old project of mine, so I’m sure it’s not perfect, but maybe you can copy the needed parts to make it work.

Also please don’t make the game force itself full screen as it starts. Make a button to toggle fullscreen instead, it’s much better for users.

Hi,

Thanks, we will take a look at your source.
We tried to post the game on NewGrounds and it just shows a black screen with input and audio working,
so it's definitely an issue with our game's code and not an issue with Itch website.

We will hit the code with a big hammer, thanks!

Jesse

Hi,

So we installed a trial version of JetBrain's WebStorm IDE on Windows 10 Pro 64Bit.
Fixed some errors and warnings and we think the game is now working on Itch website.

Please try the game again by clicking on below URL link:
https://slnthero.itch.io/pacdude-hero-pacman-remix

Let us know if it works now, thanks!

Jesse

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.