Skip to content

Games have a lot of objects, which do a lot of things, but sometimes these objects do some very similar things as well. This creates a great opportunity to practice object-oriented programming, an important programming paradigm that influences the application architecture and provides performance optimizations.

Notifications You must be signed in to change notification settings

friendly-developer/frogger-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frogger Game:

In this game you have a Player and Enemies (Bugs). The goal of the player is to reach the water, without colliding into any one of the enemies. The player can move left, right, up and down. The enemies move in varying speeds on the paved block portion of the scene. Once a the player collides with an enemy, the game is reset and the player moves back to the start square. Once the player reaches the water the game is won.

Concepts Implemented:

  • HTML Canvas
  • Object Oriented Javascript
  • Closures
  • Scopes
  • Prototypal Classes
  • Object Decorator patterns
  • Pseudoclassical Subclasses
  • Pseudo Classical Patterns

Steps to run

  • Run the index.html in the above location or just navigate to this link
  • The bugs are supposed to be avoided at all cost
  • The character you see is our hero.
  • We need to navigate him from our current location to the top by avoiding the bugs
  • Every time you reach the top the current level (shown at the top)wil be incremented
  • The higher the level the tougher the challenge
  • All The Best

How to play

  • Navigate using ⬆️ , ➡️, ⬇️ and ⬅️
  • Try to cross the pavement to increase your level
  • Avoid hitting bugs at all costs

MIT License

Copyright (c) 2016 Varun G

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.

About

Games have a lot of objects, which do a lot of things, but sometimes these objects do some very similar things as well. This creates a great opportunity to practice object-oriented programming, an important programming paradigm that influences the application architecture and provides performance optimizations.

Topics

Resources

Stars

Watchers

Forks