Git Product home page Git Product logo

solo-pong-game's Introduction

Solo Pong is a small arcade game for the Meadow F7 with Hack Kit Pro or similar hardware.

- It uses a rotary encoder for paddle movement.  Press the encoder knob for game start/restart.
- It uses the ST7789 LCD display
- A 3-position On/Off/On SPDT switch is used for setting the volume level (Mute, Soft, or Normal)
- The piezo speaker is used for sound effects

One point is scored each time the ball hits the paddle.

The game gets more difficult as it progresses.  The paddle shrinks each time the ball hits the
paddle until a minimum size is reached.  Subtle changes are made to the direction of the ball
following each surface hit. For paddle hits, the angle change is different depending on where
the ball strikes the paddle.

Enjoy!


Hardware: Meadow F7 board, Rotary Encoder, 3-position SPDT On/Off/On switch, ST7789 LDC display, 
             Piezo speaker, 0.1 microFarad capacitor, 2 10K resistors

All of the hardware is include in the Pro Hack Kit.

Wiring:

 SPDT 3-position On/Off/On switch (used for volume settings Mute/Soft/Normal):
     top - 10K resistor to ground, pin D03
     middle - Vcc
     bottom - 10K resistor to ground, pin D04

 Rotary Encoder:
     CLK - pin D10
     DT - pin D09
     SW - 0.1 microFarad capacitor to ground, pin D08
     + - Vcc
     GND - Ground

 Piezo Speaker:
     Red: Pin D07
     Black: Ground

 ST7789 Display:
     GND: Ground
     VCC: Vcc
     SCL: SCK
     SDA: MOSI
     RES: Pin D00
     DC: Pin D01
     
 ------------------------------------------
 NuGet Packages needed:
     Meadow.Foundation
     Meadow.Foundation.Displays.TftSpi

solo-pong-game's People

Contributors

lee-a-n avatar

Stargazers

 avatar

Watchers

 avatar

solo-pong-game's Issues

Remove AsyncGraphics lock count

Remove the AsyncGraphics lock count. It's harmless but it doesn't do anything because the lock already prevents loop iteration. Add comments about why the lock is there while you're at it.

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.