https://github.com/adammcodes/lockdown2
A rebuild of the browser game lockdown. Built on Phaser 3 and React.
https://github.com/adammcodes/lockdown2
express html-css-javascript node phaser3 react
Last synced: 2 months ago
JSON representation
A rebuild of the browser game lockdown. Built on Phaser 3 and React.
- Host: GitHub
- URL: https://github.com/adammcodes/lockdown2
- Owner: adammcodes
- Created: 2021-06-01T17:21:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T05:01:38.000Z (almost 5 years ago)
- Last Synced: 2025-04-10T20:18:40.509Z (about 1 year ago)
- Topics: express, html-css-javascript, node, phaser3, react
- Language: JavaScript
- Homepage: https://lockdown-v2.herokuapp.com/
- Size: 15.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lockdown (version 2.0.0)
# Play the game
* [Here](https://lockdown-v2.herokuapp.com/)
## Develop the game
#### Run Front-End Application for Development (No server connection)
Run `npm start` in the `client` folder from your command line.
This starts webpack-dev-server. Your browser will open and go to `http://localhost:8080`. The server will restart when any files in the src folder are changed and saved. Note that this is only for the purposes of developing the front-end. The app will not have access to any back-end routes or the database. But you can still play-through the game!
#### Serve the full production application (Node/Express back-end & Phaser Front-End)
1) Run `npm run build` while in the `client` folder from the command line.
* This will bundle the minified client code into a newly created `build` directory.
2) Run `npm start` while in the root directory from your command line.
* This run will run the back-end Node-Express app and serve the client/build directory at `http://localhost:3001` in your browser.
3) Go to `http://localhost:3001` to play the game on the server! (Note: Currently the highscores API is unavailable)
##### Notes
* This game was developed by a small team of contributors from [this](https://github.com/adamm13/lockdown) repository. The game was given a new repository to migrate the game away from a template and configure a webpack build process for hosting the game and adding new features (Additional React components, Highscores API, Options to play with a different Avatar, and more features continue to develop!). Thus, version 2.0.0 is born.
* The game is currently only playable on a desktop/laptop/tablet with a keyboard. Mobile support for game controls is still in development.