The goal of this project is to create a sandbox of game development ideas, methodologies, implementations for quick reference when doing things like game jams.
Initial codebase pulled from distantcam/phaser-electron-typescript-parcel
A minimal Phaser 3 sandbox with the following things.
- Phaser ๐น๏ธ Desktop and Mobile HTML5 game framework
- Electron โ๏ธ Build cross platform desktop apps with JavaScript, HTML, and CSS
- Parcel ๐ฆ Blazing fast, zero configuration web application bundler
- TypeScript โจ๏ธ is a typed superset of JavaScript that compiles to plain JavaScript.
Run these commands to clean up the directory
# Cleans up the build and dist folders
yarn clean
# Cleans up the builds, build cache, and node modules
yarn superclean
Run these commands to build and run the Electron app
# Parcel bundles the code
$ yarn build
# Parcel bundles the code and watches for changes
$ yarn watch
# Run the electron app
$ yarn app
# Run the electron app with options for a debugger to attach to the render process
$ yarn debug
# To debug the app in VS Code you can
# - use yarn debug and run 'Electron: Renderer' in the debugger
# or
# - run 'Electron: All' in the debugger
Run this command to bundle code in production mode
# Create executables
$ yarn dist