Skip to content

datagod/LEDarcade

Repository files navigation

LEDarcade

A collection of classes and functions for animated text and graphics on an Adafruit LED Matrix.

Follow us on Facebook: https://www.facebook.com/ArcadeRetroClock

See Defender / Offender in action: https://www.youtube.com/watch?v=j_cFfgmmj1c

ArcadeRetroClockTitleSmall

Watch the Video: https://youtu.be/Z9uW0MQYcrE?t=10

NEW! Dot Invaders https://www.youtube.com/watch?v=3ekUMhRTu3E

The Running Man Running Man](https://www.youtube.com/watch?v=duzgGnZsffI)

Background

Arcade Retro Clock started out as a project on an 8x8 matrix. Over the years it has been converted to 16x16 and now 64x32. Each conversion process involved solving many bugs and enhancing the game play especially with respects to the computer's ability to play against itself.

For LEDarcade, I decided to isolate classes, functions, sprites, etc. that are used specifically for displaying messages and animations and to exclude any functions used to control the specific games.

What it can do

LEDArcade has many classes, functions, pre-defined sprites that are used to do the following:

  • draw a sprite
  • move a sprite
  • make a sprite float across the screen
  • raw animated sprites floating across the screen
  • draw text of multiple sizes
  • scroll text left or right at various speeds
  • multiple ways to clear the screen (zooming in / zooming out / fading)
  • scroll the screen around a large map, displaying only a section of the map in a window

There are many more functions available but they are fairly complex. As this project moves forward I will create more examples and document each function.

Example title screens



PacDotTitleSmall



TronTitleSmall



AstroSmashTitleSmall

Requirements


Raspberry Pi 3 and up
Adafruit LED Matrix (64x32)
Adafruit RGB Hat
hzeller's RBG LED Matrix code: https://github.com/hzeller/rpi-rgb-led-matrix

Usage

Modify the test.py script to contain the messages you want to display. Then execute by issuing the comand:

sudo python3 test.py

Usage

Discord

Join us on discord: https://discord.gg/fUzbh48vRm

Blog

I blog about my Raspberry Pi projects. https://datagod.hashnode.dev/ledarcade-upping-your-led-game

Retro Arcade Games

I have programmed 9 games on several sizes of LED matrixes using this library (in various forms). As I convert the games to this final library I'll add them here.

Dot Invaders

Dot Invaders is my take on the classic arcade game Space Invaders.

sudo python3 DotInvaders.py
sudo python3 Defender.py
sudo python3 Outbreak.py
sudo python3 SpaceDot.py
sudo python3 Tron.py

DotInvaders

DotInvaders

DotInvaders

DotInvaders

Rotating Arcade Games

Run the following to put your clock into a mode that will cycle through all the available games.

sudo python3 arcade.py

Twitch / Patreon Support

You can connect your clock to Twitch and Patreon for interacting with your audience.


https://clips.twitch.tv/FuriousFuriousGrouseStoneLightning-yDK0DVBijVEFhwLF

#Additional Dependencies Patreon
https://github.com/Patreon/patreon-python

sudo python3 -m pip install patreon

Flask
https://github.com/pallets/flask/

sudo python3 -m pip install flask

PageKite
Enables your Raspberry Pi to receive Webhook requests https://pagekite.net/support/quickstart/

sudo apt-get install pagekite
curl -s https://pagekite.net/pk/ |sudo bash

About

A collection of classes and functions to display animations on an LED matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages