GithubHelp home page GithubHelp logo

thejsj / clickonjorge Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.82 MB

An HTML5/Canvas game where you click on my face to win. Tons of JS.

Home Page: clickonjorge.com

PHP 4.33% JavaScript 92.07% CSS 3.60%

clickonjorge's Introduction

Click On Jorge

ScreenShot

Perhaps the best game ever invented, 'Click On Jorge' is the opportunity to continually click on the most handsome man in the world. In 20 seconds, try to click on my face as many times as possible and get a your name in the high scores. It hurts my face, but it's worth it.

Setup

First, install all node modules:

npm install 

To build all less, js, and copy assets:

grunt build

Depdencies

  • Timbre.js
  • jQuery.js
  • jQuery-touchpunch.min.js
  • less.js

Class Structure

  • Game Class - Controls score, game timing, etc.
  • Canvas Class(game_instance, sound_instance) - Controls user interaction with the canvas element
  • Interface Class(game_instance) - Controls top menu, including all stats
  • Sound Class - Controls all sounds through a timbre.js instance

footer.js orchestrates the interactions between these instances through event listeners, triggered on the document object. Every time I do this, it sounds a bit hacky, but it has always served me well.

clickonjorge's People

Contributors

thejsj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.