I was doing some tests last year at this time for a slot game I have planned (as part of a larger casino/gambling game). In a couple of days I came up with a little non-interactive sim that I could use to create an authentic slot machine and perform some extended testing. About a week ago I was thinking about doing a little programming again and I thought it'd be kinda neat to turn it into an interactive mini-game. So this is the result of a few days of hacking around with my test sim.
The sim uses authentic 19-stop reels taken from a 1940's Mills slot machine (I forget exactly which one at this point, without researching again). It also uses authentic payout multipliers keyed to these particular reels. The only thing that's estimated and adjusted to my own preference is the jackpot. I've set it to start at $150 and max at out at $2,000. It gets fed $10 each time the player loses and will pay out whenever 3 Bars are hit (in addition to the 20 times whatever the player's current bet is). Another difference from authentic machines is that you can vary your bet here; the originals were designed to take a single coin type of 5, 10, or 25 cents.
The graphics for the slot machine itself look like Antic 5, but they are in fact in Antic 4. The reason being is that Antic 4 is the target mode for the final games, but I needed to steal some graphics that I could quickly adapt. So I decided to use the fruit from Pac-Man. Since they use square pixels, the height of every pixel gets doubled in Antic 4. I actually was using Pac himself, ghosts, keys, and other symbols at one point, which was kind of fun and interesting. But as I worked on making things authentic internally, I decided to use the fruit and other items that would make it look a little more authentic. I still think it would be neat to have some "themed" machines, though, and I plan to have a few available in the final casino game I'm working on. I also will be using much better graphics in the real casino games (a lot of which have already been designed). The graphics used here are basic and were just enough to get the job done during testing.
It's programmed in Turbo-BASIC XL and has been compiled and linked, although it does use some data files too. It's on a DOS 2.5 autobooting disk. I plan to optimize the code over the next few days (or weeks depending on time available) and release another version. It's really just a hack and a lot of things can be consolidated and put into procedures to make the code smaller.
The following joystick commands are active when playing the Slot Machine (except when the reels are spinning):
<Up> - Raise Bet
<Down> - Lower Bet
<Button> - Spin Reels
<Right> - View Payouts Chart
From the Payout Chart, just hit the <Button> to return to the Slot Machine.
Betting ranges from $10 - $90 and 3 Bars gets whatever's in the JackPot. Only the middle line is played (although I may add more lines to this mini-game as an option later -- which is what I have planned for the full casino games).
Colors are adjusted for both NTSC and PAL.
Edited by MrFish, Thu Dec 29, 2016 4:15 PM.