wohlhartcorelibrary v1.1.0
Prerequisites
You'll need Node.js, npm, and Parcel installed.
It is highly recommended to use Node Version Manager (nvm) to install Node.js and npm.
For Windows users there is Node Version Manager for Windows.
Install Node.js and npm with nvm:
nvm install node
nvm use nodeReplace 'node' with 'latest' for nvm-windows.
Then install Parcel:
npm install -g parcel-bundlerGetting Started
Clone this repository to your local machine:
git clone https://github.com/Wohlhart-Lernsoftware/LiloOneApp my-folder-nameGo into your new project folder and install dependencies:
cd # 'my-folder-name'
npm installStart development server:
npm run startTo create a production build:
npm run buildProduction files will be placed in the dist folder. Then upload those files to a web server. 🎉
Static Assets
Any static assets like images or audio files should be placed in the public folder. It'll then be served at http://localhost:8200/images/my-image.png
Example public structure:
public
├── images
│ ├── my-image.png
├── music
│ ├── ...
├── sfx
│ ├── ...They can then be loaded by Phaser with this.image.load('my-image', 'images/my-image.png').
TypeScript ESLint
This template uses a basic typescript-eslint set up for code linting.
It does not aim to be opinionated.
Dev Server Port
You can change the dev server's port number by modifying the start script in package.json. We use Parcel's -p option to specify the port number.
The script looks like this:
parcel src/index.html -p 8200Change 8200 to whatever you want.