Skip to content

sfiquet/frontend-nanodegree-arcade-game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Udacity Arcade Game Project

This is the Arcade Game Project I made in 2015 for Udacity's Object-Oriented JavaScript course from the Front-End Developer nanodegree (Udacity has since moved on and retired the project). It's inspired by the classic game Frogger.

The point of it was to use object-oriented JavaScript with prototype functions. I haven't developed it beyond the basic requirements so it's not the most interesting game ever. Still it works fine (but on desktop only, since it only handles keyboard events).

Try the game

How To Play

Your character needs to cross a busy road to get to the safety of the water (don't ask, maybe it was a frog in a previous life).

Move the character with the arrow keys (not WASD).

Every time you reach the top row you score 1 point and your character is teleported back to the beginning.

You have 5 lives. You lose 1 life every time you hit one of the giant bugs running on the road.

When you lose all lives, the game ends. You can play again by hitting the space key.

Project Specification

Make sure the functions you write are object-oriented - either class functions (like Player and Enemy) or class prototype functions such as Enemy.prototype.checkCollisions. Also make sure that the keyword this is used appropriately within your class and class prototype functions to refer to the object the function is called upon.

Your README.md file should be updated with instructions on both how to 1. Run and 2. Play your arcade game.

For detailed instructions on how to get started, check out this guide.

About

Frogger-inspired game, made with object-oriented JavaScript using prototypal inheritance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.8%
  • HTML 2.0%
  • CSS 0.2%