Coder Social home page Coder Social logo

lasergame's Introduction

LaserGame

A SMEAGOL project.


  • Game mode:
    • Default mode: if we skip the init step 3, start with default mode: all targetMote will close when there is a hit.
    • Timing mode: all motes open and close periodically and the hit counter will be sent to centralMote. all targetMotes will be closed when time is up.

  • Initialization:
    1. send msg with identifier == 0 (stop all)
    2. send msg with identifier == 2, ID == 1/2/3,
    3. send msg with identifier == 1, mote_id == 0 payload == number of bullets (init the gunMote)
    4. send msg with identifier == 1, mote_id == [1|2|3]] payload1 == opentimeslot payload2 == closeslot (init the target_mote, payloads set to 0 is default mode)

identifier: 0:stop, 1:start(with the number of bullets and movement pattern), 2: set target ID , 3:shooting, 4:hitting


  • Leds behavier:
    • led0: ON when booted, OFF when first shot/hit accomplished.
    • led1: ON when start to send msg, OFF when sending is done.
    • led3: ON when press the button on targetMote(assign ID), OFF when ID is assigned.

int targetOpenTime = 1000; int targetClosedTime = 5000;

lasergame's People

Contributors

alexandernaehring avatar naiqus avatar

Stargazers

 avatar

Watchers

 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.