A two-player, offline, chess site that's also a PWA. Made for the NITK Web Enthusiast's Club GDG SIG
- Download and install the Unity game engine (make sure that the version is greater than 2022.3.5f1 as only then the PWA template will be supported).
- Make sure you have the WebGL build functionality for the unity version you are using.
- On Unity Hub, click Add and open this repo as a project.
- Open 'SampleScene' and click Play to start.
To delete the saved game state- a. Open the Unity editor b. Click Edit > Clear All PlayerPrefs
- Follow all steps from the 'How to test' section.
- Create a new folder anywhere on your computer.
- File > Build Settings. And then click on Build.
- Once its done, start a local http server to run the build. The build folder will contain an index.html file once the build process is over.
- Alternatively, you can upload this folder to hosting sites like github pages or even itch.io.
- When you are runnning the build locally, make sure that all compressions are disabled in Player Settings and in Build Settings. This is because to decompmress your game is a task for the server thats serving the website. And unless you have added that functionality to your server, don't compress your build. If you do want to test compression/build for production with compression, make sure to do it on sites like itch.io which support it.
- Make sure to also select the PWA template. This brings ServiceWorker.js and manifest.webmanifest files to your build that defines its PWA behaviour.
https://drive.google.com/file/d/1MwlN2XdAWpmQCB7I1LDLl-duTw0p4y7w/view?usp=sharing
(couldn't upload directly cuz the video is greater than 100MB)