Skip to content

logreg-n-coffee/eternal-running-dog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eternal Running Dog

This is a simple JavaScript Game based on Frank's Laboratory's online tutorial. It uses vanilla JavaScript with no other external libraries or frameworks.

Player Properties

  • Score: The player has to attain certain score to win the Game.
  • Time: The maximum time length of the Game. Default value is 100 seconds.
  • Energy: The energy needed to exert rolling skill.
  • Life (displayed as heart icon): When life runs out, the game will end.

Keyboard Controls

Arrows: Control the dog to

  • jump up (ArrowUp),
  • dive down (ArrowDown),
  • move left (ArrowLeft), or
  • move right (ArrowRight).

Space Bar: While the dog has Energy, it can turn into a rolling ball and become invulnerable.

Background Music: Press A to toggle background music.

Pause: Press P to pause and unpause the Game.

Restart: Press R to restart/reload the game.

Touch Controls

  • jump up (Move Up),

  • dive down (Move Down),

  • move left (Move Left), or

  • move right (Move Right)

  • superpower fireball: under development

Acknowledgements

Author

License

MIT Copyright (c) [2022] [Rui Hu]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No releases published

Packages

No packages published