Giter Site home page Giter Site logo

game-time's Introduction

Toader

A Frogger remake on HTML5 Canvas.

Frogger (C) Atari 1981 Sprites provided by [email protected]

Project Info

We made Toader as an exercise in HTML5 and practice working with JavaScript object and OOP fundamentals. The game code was written by Jen Woodson and Rufus Welsh. We pair-coded most of the core functionality of the game, learning what style of working together worked best. Some of the later visual changes were solo coded with GitHub reviews prior to merging.

One of the more interesting problems we resolved was periodically refactoring to make our code more DRY and creating more objects to manage different parts of the game. Passing values between objects was challenging as the game grew more complex - creating object dependencies is tricky!

The sprite animations in the game are controlled using a frame-based timer. Each time requestAnimationFrame tells an object to draw itself, the timer increments. At different frame times, the game displays different sprite objects.

Initial Setup

Pre-installation

Toader requires Node.js v6.11.0 or a compatible version. Node is available for free at https://nodejs.org/en/download/ or using a CLI like brew. Installation requires Git installed on the local machine. Grab it here! https://git-scm.com/downloads

1. Clone the repository to the local machine

Using a shell of your choice, navigate to the desired parent directory and run

git clone https://github.com/rufusasterisk/game-time.git toader

2. Change into the toader directory

3. Install required modules

In the Toader directory run

npm install

This installs all required dependencies for Toader

4. Start the webserver

Toader is hosted via webpack. Starting the server is easy! Enter the following command in the Toader directory

npm start

5. Play Toader!

The webpack server might open a browser tab with Toader running. If it doesn't, navigate to

http://localhost:8080/

Click Start Game to begin, press Reset Game at any time to start over.

Use the arrow keys to move, Good Luck!

game-time's People

Contributors

jenplusplus avatar nfosterky avatar robbiejaeger avatar rufusasterisk avatar

Watchers

 avatar  avatar

Forkers

jenplusplus

game-time's Issues

Add platform class

for turtles, logs, and crocodiles - things the player can stand on

Will likely need to be drawn before frog

Add Row building function

Currently function is split into 9 different functions with 90%+ duplicate code.

Need one function with parameters to build rows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.