Jump to content
Sign in to follow this  
superbrew

RGB Matrix slot machine game

Recommended Posts

I have started to develop a slot machine based an 8x8 RGB matrix. I intend this to be a learning experience, and I am going to focus on the logic and control of the game.

Hardware:

Tiva C Launchpad

TLC5947 breakout from Adafruit

8 PNP transistors

8 1k resistors

 

As of right now, I have 2x2 sprites in 6 colors representing the symbols on the reels. Each 'spin', I populate an array representing the matrix with randomly chosen colors of sprites and place them in the matrix. Then I set a random number of rotations where the symbols spin and then slow down and come a stop. As of right now, all three reels spin and stop at the same rate, but I plan to update that to be more slot machine like. I also have not implemented any sort of win detection mechanism.

Here is a short video, but it looks much better in person. The scrolling effect is much smoother and realistic.

Share this post


Link to post
Share on other sites

Looks good!

 

BTW, I have TLC5947 based 8x8 RGB Matrix BoosterPack (Tindie, 43oh)

 

Thanks,

I saw your Matrix BP, but it is PCB only. I am not good enough yet to solder SMT components.

I am waiting for you LCD touchscreen backpack. :)

Share this post


Link to post
Share on other sites

I have made some updates to this project. I have limited the colors to 3, so that I can 'win' once in a while. Once I figure out to calculate odds and probabilities a little better, I will add some more colors. I also used one of the on board switches to initiate a spin. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×