Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/pixi-basics
Following pixijs examples at https://pixijs.io/examples.
https://github.com/thlorenz/pixi-basics
Last synced: 13 days ago
JSON representation
Following pixijs examples at https://pixijs.io/examples.
- Host: GitHub
- URL: https://github.com/thlorenz/pixi-basics
- Owner: thlorenz
- License: mit
- Created: 2018-11-24T21:08:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-24T23:41:09.000Z (about 6 years ago)
- Last Synced: 2024-12-10T08:25:24.526Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 1.1 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pixi-basics
Following pixijs examples at https://pixijs.io/examples.
## Installation
Clone this repo + run `npm install`.
## Usage
Run `npm start` to start watching and serving your game page.
For examples that need to load resources run the server that serves the required assets via
`npm run start:server`.Run `npm run build` to create a distributable version of your game inside `./dist`.
## Setup
[parceljs](https://parceljs.org/) is used to bundle and serve JavaScript.
Settings inside `tsconfig.json` and the below inside `package.json` keeps
transpilation/compilation to a mimimum during development.```js
"browserslist": {
"development": [
"last 1 chrome version"
]
}
```[hot module replacement](https://parceljs.org/hmr.html) is also enabled (see `./main.js`).
Basically the game is recreated with a new Canvas after the old Canvas was removed from the
page. This means that when serving your game via `npm start` you can simply make edits and save
and see the browser page update itself.## License
MIT