jmatosp / IHateBees

MiniGame experimenting JavaScript "OOP", HTML5 <canvas> and <audio>, and some design patterns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I HATE BEES

Mini game to kill bees, just move the mouse over a bee and click, this will decrease its strength

there are 3 kinds of bees: QueenBee; DroneBee; WorkerBee and a massive book...

A couple of hours experimenting with JS Prototypes, HTML5 elements and

Code

Bee is an "abstract object"

Each Bee type extends the Bee prototype: WorkerBee, DroneBee and QueenBee

Each Bee has its proprieties and behaviour

Game class is the game context: generates bees setup and as a state playing - should implement State Pattern here

GameView renders to HTML5 current Game context

You can change easily number of bees or add other types of bees

No jQuery, just plain old JS and HTML5

Rendering

Sprites: There is a Image that has all the bees beesprites.png, extraction is made with HTML5 DrawCanvas

Start

just open index.html on your favorite html5 browser.

physics are buggy but serves as a POC

About

MiniGame experimenting JavaScript "OOP", HTML5 <canvas> and <audio>, and some design patterns


Languages

Language:HTML 100.0%