Gemini Slots
I wanted to write a game with a unique spin (pun intended). The rules are simple.
- You start with ten credits. Gamble until you bust or cash out.
- To get on the daily leaderboard, cash out with a gain before the casino closes.
- The casino closes for one hour at 12:00 am CST (Casino Standard Time).
- When the casino reopens at 1:00 am CST, you can continue gambling.
And no, taking the game offline for one hour isn't the unique spin. Gemini Slots works best in a client that supports page streaming. In other words, the client doesn't wait for the whole document to download before updating the page.
Alhena and Lagrange are the two clients I know that support streaming. There are probably others. Alhena 5.5.9 works particularly well as it can smoothly stream partial lines and single characters. Lagrange does this too but some single character effects appear buffered.
The landing page has an option to turn off streaming. This deactivates the effects but some line streaming remains. This means non-streaming clients will wait before the page appears. It works but doesn't offer the best experience.
Gemini Slots
This is the first pass so there are probably some bugs. The streaming nature may or may not wreak havoc on my server. In a lot of ways, this is an experiment. Let me know if you have any thoughts. I've attached a screenshot.
slots.png
Posted in: s/smolgaming
🛸 bluesman
May 14 · 8 days ago · 👍 loopdreams, magnusmww
🗿 argenkiwi · May 17 at 20:42:
Nice, I had just started a `walk/slots` branch in my project on GitHub (argenkiwi/ambler-ts), and it looks a lot like that, although it runs on the terminal.
🛸 bluesman [OP] · May 18 at 13:33:
@argenkiwi Thanks! I think I need to do two things. Make it easier to win (although I see someone managed 50 credits) and change the logic so the reels aren't selected based on elapsed time. The later would mean no delay for users without a streaming client (Amfora, etc) or users that don't appreciate the streaming reel effect.