GithubHelp home page GithubHelp logo

snorlaxcatch's Introduction

Snorlax Munch
By:
Tanay Gavankar (tgavanka)
Jocelyn Kong (jocelynk)
Sid Soundararajan (ssoundar)


How to Play:
You're Snorlax and a trainer is trying to catch you. You've been disturbed
from your sleep and you're angry! 

Use WASD to move, and use your cursor's position to rotate your head.
Remember that your head will face in the opposite direction of your cursor.
Click anywhere ingame to open your mouth and devour the pesky Pokeballs 
that are flying around. Being Snorlax, you can only stay awake and keep 
your mouth open as long as your PP bar isn't empty. Don't get hit when 
you're asleep! Getting hit by Pokeballs while asleep will take some HP
until you faint and get captured, and you must avoid that at all costs.
The trainer intends on making you lose 800 lbs after capturing you,
and you definitely don't want that to happen.

Ideas from Week 1:
* Canvas drawing
    - All sprites are custom-drawn via Canvas commands
    - Transformations are used to manipulated drawings
* First-class functions
    - Many code snippets are pulled into first-class functions
      for reusability.
* Object-oriented Design / Inheritance
    - The Pokeballs are individual objects, and the GreatBalls
      inherit from the pokeballs.
* Event Listeners
    - Uses keydown/keyup events for smooth keyboard movements
    - Uses mousemove event for cursor positioning
    - Uses mousedown event for clicks
* Minimal clobbering of global scope
    - The game itself is encapsulated in a SnorlaxMunch object,
      so as to avoid binding/clobbering in the global scope.

snorlaxcatch's People

Contributors

tgavankar avatar jocelynk avatar

Watchers

 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.