Git Product home page Git Product logo

microbit-game's Introduction

Microbit-game

Dodge the obstacles, a game made for the Micro:Bit.

The display is failing and all the pixels are falling down. Only you, a pixel on the bottom, have survived your fall. Sadly the other pixels are still falling and you need to dodge them to stay alive. Go left or right and try to stay alive until the last pixels has fallen!

Rescue is on the way! Good luck!

How to use

  • Press 0 + GND to start the game.
  • The pixel on the bottom row is the player.
  • Use A en B to move the player en to dodge the pixels that are comming down.
  • Press 2 + GND to stop the game or just hit a falling pixel.

Levels

There are 5 levels.

  • Level 1
    • Speed: 1000ms
    • Empty row between falling pixels
  • Level 2
    • Speed: 800ms
    • Empty row between falling pixels
  • Level 3
    • Speed: 600ms
    • Empty row between falling pixels
  • Level 4
    • Speed: 400ms
    • Empty row between falling pixels
  • Level 5
    • Speed: 200ms
    • Empty row between falling pixels

The maximum score is 100 points. When you reached this score you have survived failure of the display!

The empty row between the falling pixels can be removed, but it makes it very unlikely that you survive the level. Every row is randomly generated, but there is always 1 escape hole. When there is no empty row between 2 falling pixels, it could happen that there is no way to get to the escape hole of the next row.

Next step

Whats next:

  • The code is a bit messy and could use a rewrite.
  • Code could be written in less code.

View dev branch if your curious for the next step.

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.