Code Monkey home page Code Monkey logo

rehanumar / p3-classic-arcade-game Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 194 KB

A clone of the classic arcade game Frogger using the canvas APIs and Object Oriented JavaScript.

Home Page: https://rehanumar.github.io/p3-classic-arcade-game/index.html

License: MIT License

CSS 0.76% HTML 5.55% JavaScript 93.69%
arcade-game object-oriented-javascript html5-canvas canvas-game canvas-2d-context html5-game-development canvas-api frogger-game javascript-game

p3-classic-arcade-game's Introduction

p3-classic-arcade-game

This is a clone of the classic arcade game Frogger observing the feasibility of game engines in JavaScript! This project is using the HTML5 canvas element and JavaScript canvas APIs. The live demo of this project is available here.

Explanation of project structure:

  • index.html is pretty much empty! it only contains the canvas element and instructions to play the game
  • js/app.js contains the game characters and do the event handling
  • js/engine.js have the actual game loop which sets the canvas and redraw the game each time based on the game characters data. It is doing a little more then that so dig through the code to fully understand it.
  • js/resources.js is just a resource caching utility

How to run the application

  • clone it.
  • Open the index.html file in your browser.

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.