Skip to content

PhilipEnchin/phrogger

Repository files navigation

Phrogger

To play online

Click here!

To play (or play with) locally

You'll need Node.js installed. Then:

  1. Fork and/or clone this repository and cd into the project's directory
  2. Run npm install to install the project's dependencies
  3. Run npm run start-dev to build and serve the game

Deploying

The project is configured to deploy (and is deployed) to Firebase:

  1. Run npm run deploy-init and...
    1. Provide login credentials
    2. Select Hosting
    3. Create a new project or, if you've set one up already, Use an existing project, then follow the prompts until...
    4. Use dist as your public directory
    5. The remainder of the configuration choices are unimportant, so feel free to use defaults
  2. Run npm run deploy to build and deploy to Firebase

Technical details

Phrogger is built using only the Canvas API without any frameworks. The only module bundled in with the app is Web Font Loader to handle loading a Google Fonts typeface before the game runs.

Dev dependencies also include:

  • ESLint
    • Responsible for yelling at you when your code is problematic. I highly recommend using it when working in JavaScript. I use Visual Studio Code with ESLint and Error Lens extensions.
  • Firebase CLI
    • For deployment in this project
  • Live Server
    • To serve the game and automatically reload upon saving when in development
  • webpack
    • To bundle, minify and inline the JavaScript and CSS code into index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors