Based on the work on the nwjs + phaser.io tutorial, a new project has risen…
GameShell-Phaser aka GSP
GSP consists of two parts:
GSPLauncher
GSPGames
GSPLauncher
GSPLauncher is a phaser.io application that does what’s its name implies. It launches other games (and applications). Basically it can launch any kind of HTML/JS application but currently it is restricted to phaser.io games. This is the main application of the GSP project.
GSPGames
GSPGames is the sibling of GSPLauncher. It contains phaser.io games suitably ported for GameShell. Currently I have “ported” just two small games, Breakout and Invaders as examples and I hope the community here to contribute and port many many phaser.io games for GameShell. A porting guide is published here: https://github.com/pleft/GSP/blob/master/GSPGames/README.md
Installation
Installation is pretty straightforward. Just ssh to your GameShell, git clone the main repository and execute the gsp-installer.sh script. This script will download nwjs, and create the GameShell menu item and icon. Reboot your GameShell and voila the new menu item should appear!
Hi thanks for trying out. It’s weird because I am following the instructions and it installs fine on my GameShell
Let’s try some troubleshooting. Are you sure the GSPLauncher.sh script points the correct directory? The instructions are valid provided you git clone from your home directory /home/cpi. So you should have a folder:
/home/cpi/GSP/
Does this folder exist on your GameShell? Can you list it’s contents?
I am posting all the procedure output run on my GameShell:
Nice to see you also here fellow Gryzor (Retromaniax )! If sound was working (I am having troubles to make Protracker.js work on my project, code works on nwjs on Windows and MacOS but not on GameShell) you would also hear some great amiga mod (elysium) playing in the background on GSPLauncher.
Infinite Mario Bros added! Game is playable although a bit choppy and sound doesn’t work at all. The port used is from https://github.com/robertkleffner/mariohtml5 and it is the first non-phaser game added to the GSPGames repo.
Debug Port: 9222
Exposed the port 9222 for debugging on GameShell itself from your PC. It needs ssh tunneling though to access it. Detailed instructions can be found here: https://github.com/pleft/GSP/blob/master/README.md
To update to the latest code, ssh to your GameShell and:
cd GSP
./gsp-updater.sh #warning: this will erase your local changes
gsp.updater.sh doesn’t exist. gap.installer.sh worked though. Infinite Mario Bros appears to only have one functional button; The ‘B’ button, identified as ‘A’ in the game…
Hi! Thanks for the feedback! ‘gsp-updater.sh’ was added in this update so if you had installed a previous version it wouldn’t exist. Sorry for giving wrong instructions above.
As for Mario’s buttons there are two. GameShell’s Button A which starts the game and also makes Mario jump and Button B which makes Mario run or shoot upon picking the flower powerup.
I have my GameShell “Buttons Layout” set to SNES layout. This apparently just changes the assignments for the Launcher and, optionally Retroarch to swap the A/B and X/Y buttons. So what was ‘A’ on my GS is now ‘B’ and visa-versa. Not a problem, I just have to keep that in mind.
Great icon! If you are familiar with Github you can contribute to the project by making a pull request to change the icon. If not I can put it in the next update.
hmmm, one other idea that I have just checked out and it behaves as you describe, is that probably the GSPLauncher.sh script has no execution rights (although it should have)
So please check:
cpi@clockworkpi:~/apps/launcher/Menu/GameShell$ ls -la ~/apps/launcher/Menu/GameShell/GSPLauncher.sh
-rw-rw-rw- 1 cpi cpi 178 Aug 17 22:30 /home/cpi/apps/launcher/Menu/GameShell/GSPLauncher.sh
if it appears like above : -rw-rw-rw- then the script is not executable and you should change it by giving:
cpi@clockworkpi:~/apps/launcher/Menu/GameShell$ chmod +x GSPLauncher.sh
cpi@clockworkpi:~/apps/launcher/Menu/GameShell$ ls -la ~/apps/launcher/Menu/GameShell/GSPLauncher.sh
-rwxrwxrwx 1 cpi cpi 178 Aug 17 22:30 /home/cpi/apps/launcher/Menu/GameShell/GSPLauncher.sh
Now the script is executable: -rwxrwxrwx and GameShell can execute it.
Fellow @Nielsvd contributed a new icon for GSPLauncher (btw looks great on GameShell)
html5 pacman game added to the list.
Enjoy both by running gsp-updater.sh script twice (the first time it will update also itself, the second time the updated gsp-updater.sh will also update the GS icon) and then reboot your GS. If you are having problems updating this way just delete the whole GSP folder and git clone the repo from start.