The core of a slot-machine roguelike, ready to drop into your Godot 4 project.
PDSlotMachine - the whole machine in one node
- any size: 5x3, 3x3, 5x4, 6x5 ... the reels build themselves
- a bag of symbols: add copies to make a symbol more likely, remove them, read the counts (perfect for shops and rewards)
- spin() rolls from the bag, spin(grid) lands on a result you choose (tutorials, replays, scripted moments)
- seeds for daily runs and replays
- wins on rows, V shapes, diagonals, your own lines, full columns or touching clusters - wild symbols included
- every win comes back as data (kind, cells, symbol, count, score) so your items and relics can change it
- your own scoring with one function
Feel
- reels speed up with a blur, land exactly with a small overshoot and bounce, one after another
- the last reel slows down with a glowing frame when the first reels already match on a line
- each win: losing symbols dim, the winners glow and bump, the line draws itself, the score pops up
- change a landed symbol with a pop (a curse turning into gold, an upgrade)
PDSlotJuice - one call per moment
- count_up for your coin counter, coin_burst, pop_number, bump, shake, flash
- big_win: turning light rays, a banner, coin bursts and a shake
Included
- 15 symbols drawn for this kit (cherry, lemon, grape, bell, clover, diamond, seven, coin, skull, wild, star, heart, dagger, moon, ingot) as PNG + ready .tres
- a playable demo: spin, a shop that adds symbols to your reels, lines or clusters, a curse-to-gold effect
- README with copy-paste setup and FAQ, AGENTS.md for AI coding assistants
This is a game kit: no real money and no online part.
Every script, shader and symbol was made for this kit - safe to use in a game you sell.
Tested in Godot 4.7 (Compatibility renderer). 2D canvas_item shaders - works in Forward+, Mobile and Compatibility.
No AI-generated images. Code written with AI assistance.
License: use in personal and commercial projects. Do not resell or redistribute the files.
