Giter Site home page Giter Site logo

spirou42 / marblegame Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 346.4 MB

A simple Game based on Cocos2d and Chipmunk

Objective-C 58.11% C++ 5.22% C 4.38% Objective-C++ 1.86% MATLAB 0.03% M 6.06% CSS 0.29% Shell 0.09% JavaScript 23.29% Python 0.44% Perl 0.22%

marblegame's Introduction

MarbleGame

A simple Game about marbles and gravity.

==========

Game description

The player has to clear a levels from all active Marbles by creating clusters of 3 or more marbles of the same "marble type" (ThreeInARow-Game ).
The player throws/releases marbles into the level. Afterwards gravity takes over and the marble plungs and rolls to its final destination. If three or more marbles of the same type collied or have colided in a short amount of time, these marbles are removed from the level.

Collisions

While the "real" collision of the physics engine are hasty, collisions are made more persistent by measuring the time between collisions. This makes it possible allow the play ball to hit a single marble and afterwards (while moving fast) another marble or a cluster of two marbles.

     *
         			 *				                         Multi
**____*			**___*			**__*_*		    ***___*      _______

The measured time is also used to comment on the style of the throws and can be used by the score unit to add multipliers.

Game modes

There will be different ways to play MarbleGame.

  • Normal

    • The higher the score the better. Each level has a three score limits [min; normal; master].
      1. Score < min
        Level not finished.
      2. min < Score < normal
        Level finished as Amateur
      3. normal < Score < master
        Level finished as Professional
      4. master < Score
        Level finished as Master
  • Time

    • Create as much points in a given amount of time by clearing the level as fast as possible.
      Each level has tree time limits [master; normal; max].
      1. LevelTime < master
        Level finished as Master
      2. normal > LevelTime > master Level finished as Professional
      3. max > LevelTime > normal
        Level finished as Amateur
      4. Leveltime > max
        Level not finished
  • Relaxed

    • Removing all marbles no matter how long it takes or how many points you create. All level limit (win/loos conditions) are turned off. The score and level time are recorded for statistical reason only :)

How to score.

  1. Each dropped Marble costs 1 point
  2. creating a simple (3-Marble) cluster without any modifier will add 3 points.
    --> dropping marbles and removing them without any finess will not increase the score.
  3. The time it took to create the a "hit" will add a multiplyer to the score.
  4. Creating a

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.