Git Product home page Git Product logo

gameofbees's Introduction

Game Of Bees - where you can kill bees safely, without the danger of getting stung!

Just a small little game where you can see different kind of bees, and hit one of them in each round.
Each type of bee has different hitpoints and takes different damage when hit.
The game is over when the queen bee dies.

Getting Started

Install Dependencies

We have two kinds of dependencies in this project: tools and angular framework code. The tools help us manage and test the application.

  • We get the tools we depend upon via npm, the [node package manager][npm].
  • We get the angular code via bower, a [client-side code package manager][bower].

We have preconfigured npm to automatically run bower so we can simply do:

npm install

Run the Application

We have preconfigured the project with a simple development web server. The simplest way to start this server is:

npm start

Now browse to the app at http://localhost:8000/app/index.html.

Testing

Unfortunately, I couldn't get karma to run on my local machine, so I wasn't able to write & verify tests.
I only created tests placeholders, where the actual tests would go...

##About this app This app was set up using angular-seed, and generally tries to follow the angularJS coding style.
Angular is used because this is the framework I'm most familiar with, and I wanted to try out the component feature in version 1.5.
Bootstrap is also used to make it more pretty(ish).

Generally, it consists of a couple of components - bee, which shows a single bee, and main, which shows the main screen (all the bees etc..), and controls the flow of the game.

###What could have been done better

  • Actual tests, obviously
  • More modularization - split main into bees-container and game-controller (which would include the hit and reset buttons)
  • use a build tool (gulp / webpack), which would allow us to:
    ** use a transpiler to allow us to use ES6 features
    ** use a linter to enforce a rigid coding style
    ** use SASS / LESS for better CSS
  • add a 'new game' button, and give the user the option to input the number of bees they want

gameofbees's People

Contributors

sjhonny-e avatar

Watchers

James Cloos 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.