Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remarkablegames/phaser-platformer
đšī¸ Phaser platformer game template
https://github.com/remarkablegames/phaser-platformer
game phaser platformer remarkablegames template
Last synced: 3 months ago
JSON representation
đšī¸ Phaser platformer game template
- Host: GitHub
- URL: https://github.com/remarkablegames/phaser-platformer
- Owner: remarkablegames
- License: mit
- Created: 2022-01-16T19:13:31.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T23:20:22.000Z (3 months ago)
- Last Synced: 2024-11-12T00:24:34.868Z (3 months ago)
- Topics: game, phaser, platformer, remarkablegames, template
- Language: TypeScript
- Homepage: https://remarkablegames.org/phaser-platformer
- Size: 3.27 MB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# phaser-platformer
phaser-platformer is a template for making [Phaser](https://phaser.io/) platformer games.
Inspired by [`phaser-3-tilemap-blog-posts`](https://github.com/mikewesthad/phaser-3-tilemap-blog-posts/tree/master/examples/post-2) (see [Medium story](https://itnext.io/3d68e73d494a)).
Demo:
- [remarkablegames](https://remarkablegames.org/phaser-platformer)
Stack:
- [Phaser](https://phaser.io/)
- [Vite](https://vitejs.dev/)
- [GitHub Pages](https://pages.github.com/)## Prerequisites
- [nvm](https://github.com/nvm-sh/nvm#readme)
## Install
Clone the repository:
```sh
git clone https://github.com/remarkablegames/phaser-platformer.git
cd phaser-platformer
```Install the dependencies:
```sh
npm install
```## Environment Variables
Set the environment variables:
```sh
less .env
```Update the **Secrets** in the repository **Settings**.
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the game in the development mode.
Open [http://localhost:5173](http://localhost:5173) to view it in the browser.
The page will reload if you make edits.
You will also see any errors in the console.
### `npm run build`
Builds the game for production to the `dist` folder.
It correctly bundles in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your game is ready to be deployed!
### `npm run bundle`
Builds the game and packages it into a Zip file in the `dist` folder.
Your game can be uploaded to your server, [Itch.io](https://itch.io/), [Newgrounds](https://www.newgrounds.com/), etc.
## License
[MIT](LICENSE)