Code Monkey home page Code Monkey logo

fiveinarow's Introduction

Five In A Row

Set of two applications targetting Atmel/Microchip ATMega328P, implementing shooting game.

Using a gun, users tries to hit targets. The game is up to four players: yellow, green, red and blue. There are 5 targets.

Game mode

Biathlon like

Each player turn gives 5 shots. Player tries to hit each target. Total number of shoots is counted, as well as successfull hits.

Functional details

target

The target application manages player points and turns. It communicates with an Android application implemented on top of Bluetooth Electronics application. It manages the game logic and player points.

Gun

The Gun application manages the gun. Using two buttons, it allows:

Press Button 1 Button 2
short shoot Begin new round (give 5 shots)
long power off continuous laser (calibration)

Gun application manages following outputs:

  • Laser
  • vibrator
  • 128x32 I²C display

Architecture details

Some parts of the projet, implementing logic, can be used on both native and target platform. All that code is represented in the "domain" package below.

Both target and Gun application are run both native and cross environment. The current target hardware for both is the ATMega328p chip from Atmel/Microchip. To facilitate testing and extension, user interface (Gui) and hardware abstraction (HAL) are provided using interfaces. Implementation exists for native and cross (i.e. testing) environments.

Note: The BTEGui implementation can be used in native environment. Based on plain string exchange, if it may be difficult to interpret.

Architecture overview

fiveinarow's People

Contributors

arcadien avatar

Stargazers

 avatar

Watchers

 avatar  avatar

fiveinarow's Issues

Allow 'shoot until 5' game mode

Current game mode is:
Allocate 5 shots, when all shots are fired, player change.
When the targets are hard to hit, it would be great to have another mode with a timer and no shots limits.
e.g. 1min max to hit all the targets. The score is best with short time to succeed.

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.