Game Entry for Ludum Dare 38, by Giuliano Conte.
Theme: "A Small World"
Play it at https://giulianoconte.github.io/Restore/.
- Create a GitHub repository.
- Create skeleton index.html file.
- Setup clone of your repository on your machine. (Simple guide) (Thorough guide)
- Create a GitHub Page for your repository. GitHub will host your project for free, with barely any setup required. Follow the tutorial on the link and choose "Project Site" and "Start from Scratch".
- Choose an editor. I am using VSCode.
- Setup your index.html file and create your sketch.js file.
- Setup your libraries. You may have already set this up if you followed the above tutorial. There are many ways to do this. I just downloaded the libraries and put them in my project directory. Look at my
index.htmlstructure and libraries folder for how to include them in your project. You can download the p5.js and p5.play libraries from this repository. - Create a local server to host and work on during development. Install latest version of Python 3. Start the python server manually: in your command line go to the project directory and enter
python -m http.serverfor Python 3. You can access it by navigating tolocalhost:8000in your browser. If you get the error "'python' is not recognized as an internal or external command, operable program or batch file" you probably need to make sure Python is added to the PATH vairable. - Disable browser caching. Browser caching can really mess with development if you're not custom handling it. Disable caching for Chrome or load the page in incognito mode (ctrl+shift+n).
- Run the sketch. While your local server is running, you run the p5 sketch at
http://localhost:8000/in your browser. You don't need to restart the server if you update files. You can also run the latest pushed version athttps://giulianoconte.github.io/Juke/. - Run your sketch. While your local server is running, you run the p5 sketch at
http://localhost:8000/in your browser. You don't need to restart the server if you update files. You can also run the latest pushed version at\<YourGitHubPageWebAddress\>. - You're done! The boiler plate code should be all setup and you should now be able to code your JavaScript game!
