Simple Phaser 3 game for the Hackerspace Trójmiasto's little game jam
Find a file
2023-03-01 03:36:09 +01:00
game Set API path as env var 2023-03-01 03:36:09 +01:00
server Readme update 2021-10-18 04:40:07 +02:00
README.md Readme update 2021-10-18 04:40:07 +02:00
ss.jpg Readme update 2021-10-18 04:40:07 +02:00

SPACE SMASHER 9001!

Tested on node v14.17.3

You can play the game here (unfortunelly I can not setup server, so this instance do not provides ranking 😥). Please be patient. The game will load, but slower on the crappy, free hosting, than on localhost.

The game was created for the first edition of Hackerspace Trójmiasto's Community Jam.

Screenshot

How to start a game

You need the NodeJS installed.

The game's server do not serve game client's files. They are separately apps. The server is responsible for authentication and storing records. Data is stored as plain JSON files in server/storage directory. You do not have to setup any external database :)

The game should work without server, with some limitations. Game works fine on desktop

Steering: WSAD + Mouse

Setup and run server

🐧 cd server
🐧 npm install # install dependencies
🐧 cp .env.example .env
🐧 # edit .env file - UPDATE THE SECRET!
🐧 npm start # the server listening on port 3000. 

Setup and run client

🐧 cd .. # only if your cwd is server directory
🐧 cd game
🐧 npm install # install dependencies
🐧 # edit first line of src/api.ts to match your server
🐧 npm start # to run in Dev mode (hot reloading and recompilling)
🐧 npm run build
🐧 # your app is in dist directory, you need to serve it via www server

Enjoy!