Jump to content

Photo

mini-Slots Game

Gambling Casino Jackpot Vegas

25 replies to this topic

#1 MrFish OFFLINE  

MrFish

  • 5,351 posts

Posted Thu Dec 29, 2016 4:03 PM

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.

 

pac-slots.png

 

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
<Left> or
<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.

payouts.png     slots.png

 


Edited by MrFish, Thu Dec 29, 2016 4:15 PM.


#2 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Wed Jan 4, 2017 4:15 PM

Took some time to optimize the code yesterday. It wasn't as bad as I imagined. The total size savings on the executable only ended up being about 50 bytes -- mostly thanks to the basicParser being so efficient at optimizing things itself. Still, it'll be easier to maintain and update in the future, now that things have been better organized. I may update the graphics for this mini-game at some point.

 

I've labeled this version 1.0 to avoid confusion with the first release, which has no version number.

 

[Edit: Forgot to change the year.  :P  ]

 

splash.png

 

 

BTW, here's a teaser of what some of the graphics will look like for the full game I'm working on:

 

slotgraphics.png


Edited by MrFish, Wed Jan 4, 2017 4:56 PM.


#3 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Thu Jan 5, 2017 12:06 PM

Added a little logo and title screen. I also fixed a problem with disabling the break key and improved percentage calculations (first version just truncated after the decimal).

 

Attached File  mini-Slots 1.01.atr   130.02KB   174 downloads

 



#4 Goochman OFFLINE  

Goochman

    Quadrunner

  • 6,982 posts
  • Moongates to the Past

Posted Thu Jan 5, 2017 12:40 PM

Nice, like the colors.  2 suggestions:

 

1.  Any possible way to have the payout chart show up on both side of the slot screen?

2.  Some music for a win ;) 



#5 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Thu Jan 5, 2017 3:22 PM

Nice, like the colors.

 

Thanks for the comments and suggestions.

 

 

2 suggestions:

 

1.  Any possible way to have the payout chart show up on both side of the slot screen?

 

Anything is possible. ;)  I think it'd be a task though.

 

Currently, the game screen is rendered in two character modes (Antic 4 & 2) and uses one separate character set for each.

The upper set (Antic 4) is completely used up. The lower set (Antic 2) is only using about 1/5th (or less) of it's characters.

 

The upper portion of the screen has more space on the sides than the lower portion, and of course the graphics would be more suited up there.

But it adds a lot of complications (at least for the scope of this project) in order to get around using the single character set, which has no free characters left.

 

That leaves using the lower part of the screen for consideration.

The problem fitting the payout chart on the lower part of the screen -- with the current configuration, when the stats are present --

is that there's not much room available, unless the stats were shuffled around a bit and used less white (blue) space.

With that in mind, I still think it'd be tight, as there's quite a bit of information on the stats page.

Surely the graphics would have to be scaled as well and I'm not sure how good it would end up looking.

 

One thing that might be possible would be to swap in the payout chart for the stats. 

In that case, the stats would go away temporarily and then you'd see the payouts down below.

That would be more feasible, and I think a reasonable improvement over the current method.

 

I'll look into scaling the graphics to fit down there and see how it might work out.

 

 

2.  Some music for a win ;)

 

I was going for the pure man and machine gambling experience here. Where only sheer will can keep you forging ahead. :D

It's kind of like the original 2600 gaming experience/ambience. You know, no sounds except the primitive effects, and few of them.

 

Seriously, though, I wasn't planning to use music for this game (it is planned for the full game).

When I do get to the point of creating some music for the full game, I may test it out in this game first.

So it is possible in the distant future.


Edited by MrFish, Thu Jan 5, 2017 3:24 PM.


#6 Goochman OFFLINE  

Goochman

    Quadrunner

  • 6,982 posts
  • Moongates to the Past

Posted Thu Jan 5, 2017 3:37 PM

For the payout chart maybe have a key that allows the user to switch between the stats and payout.

 

Sometimes I won when I didnt understand what I actually 'hit' and sometimes I didnt win when I thought I should :) 



#7 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Thu Jan 5, 2017 3:49 PM

For the payout chart maybe have a key that allows the user to switch between the stats and payout.

 

I'd just use the <LEFT> & <RIGHT> on the joystick to switch back and forth.

 

 

Sometimes I won when I didnt understand what I actually 'hit' and sometimes I didnt win when I thought I should :)

 

It's not difficult in the current scheme. You can easily go back and forth at any point (except when the reels are spinning).

 

But I will look into the idea I mentioned.


Edited by MrFish, Thu Jan 5, 2017 3:53 PM.


#8 +Adam+ OFFLINE  

+Adam+

    Moonsweeper

  • 483 posts

Posted Sun Sep 24, 2017 11:19 AM

@MrFish: could the last version of this game be considered as the final (more or less) version or is it still a work in progress? Thanks.



#9 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Sun Sep 24, 2017 11:36 AM

It's a release version -- though just pieced together from some code used for testing ideas.

 

You can put it in your yearly collection if you want, as I think that's why you're asking.

 

I still want to add a few things to it, but it'll be some time before that happens.



#10 Mclaneinc OFFLINE  

Mclaneinc

    Retro Madman

  • 6,350 posts
  • Location:Northolt, UK

Posted Sun Sep 24, 2017 11:47 AM

Nice little fun game, really nice, got the three BAR's about 20mins in :)

 

There seems to be a logic where two cherries in the same line are often seen, is this the case or is it totally random..?


Edited by Mclaneinc, Sun Sep 24, 2017 11:50 AM.


#11 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Sun Sep 24, 2017 11:53 AM

Nice little fun game, really nice, got the three BAR's about 20mins in :)

 

Yes, it becomes nicer when you hit. ;)

 

 

There seems to be a logic where two cherries are often seen, is this the case of is it totally random..?

 

The logic becomes totally obvious when you can have a look at the three reels; there are NO cherries on the third reel. It's all about giving the player enough back to keep him/her playing.



#12 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Sun Sep 24, 2017 12:04 PM

Here's some code that has the tables for the reels.

 

The cherries are zeroes. So, notice the 3rd reel, and notice the frequency on the 1st and 2nd reels.

 

reels.png


Edited by MrFish, Sun Sep 24, 2017 12:05 PM.


#13 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Sun Sep 24, 2017 12:29 PM

... there are NO cherries on the third reel.

 

Actually, you can figure this out from the payout chart too; there is no payout for three cherries.

 

There's also no payout for three bells; bells are "5" on the tables I posted.


Edited by MrFish, Sun Sep 24, 2017 12:30 PM.


#14 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Sun Sep 24, 2017 6:37 PM

There's also no payout for three bells; bells are "5" on the tables I posted.

 

I mistyped there; I meant to type "apples" instead of bells.

 

Here's a little reference I just made up for myself, which is easier than looking at numbers and tables.

 

reels small.png

 

[Edit: Also, I made a mistake in my first post when I said the reels had "19 stops". The arrays go from 0 to 19, so I should have said "20 stops".]


Edited by MrFish, Sun Sep 24, 2017 6:56 PM.


#15 David_P OFFLINE  

David_P

    Dragonstomper

  • 928 posts
  • Location:Canada

Posted Sun Sep 24, 2017 9:04 PM

Are you using equal weighting for all the stops?  Commercial machines use variable weightings - so the blank spaces above and below the jackpot symbols show up more often than you'd expect...



#16 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Sun Sep 24, 2017 11:01 PM

Are you using equal weighting for all the stops?  Commercial machines use variable weightings - so the blank spaces above and below the jackpot symbols show up more often than you'd expect...

 

Maybe you didn't read the opening post in the thread? This is modeled after a 1940's era Mills mechanical slot machine.

 

Definitely a commercial machine, but from a time when things were a bit more simple -- yet advanced for the time.

 

Kind of like how things are on Atari 8-bit computers.


Edited by MrFish, Sun Sep 24, 2017 11:02 PM.


#17 Mclaneinc OFFLINE  

Mclaneinc

    Retro Madman

  • 6,350 posts
  • Location:Northolt, UK

Posted Mon Sep 25, 2017 5:28 AM

Thanks for the explanation and code show MrFish, very addictive little game...

 

Thank you..



#18 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Mon Sep 25, 2017 10:26 AM

From the strips you can obtain the odds fairly easily.

 

The odds are as follows (some rounded).

 

odds small.png

 

So, in answer to your initial question: yes, 2 cherries will come up quite frequently.


Edited by MrFish, Mon Sep 25, 2017 11:05 AM.


#19 David_P OFFLINE  

David_P

    Dragonstomper

  • 928 posts
  • Location:Canada

Posted Mon Sep 25, 2017 2:23 PM

 

Maybe you didn't read the opening post in the thread? This is modeled after a 1940's era Mills mechanical slot machine.

 

Definitely a commercial machine, but from a time when things were a bit more simple -- yet advanced for the time.

 

Kind of like how things are on Atari 8-bit computers.

 

Thanks - I think I read the opening post when this thread began, but it got pushed out of my mind.



#20 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Mon Sep 25, 2017 2:57 PM

I'm not overly fond of a lot of modern slot machines, but one thing I do like is being able to play multiple lines and diagonals; I plan to use them in the future.



#21 shoestring ONLINE  

shoestring

    Dragonstomper

  • 545 posts
  • Location:Sydney

Posted Wed Sep 27, 2017 12:19 AM

Here's some code that has the tables for the reels.
 
The cherries are zeroes. So, notice the 3rd reel, and notice the frequency on the 1st and 2nd reels.
 
attachicon.gifreels.png


That's pretty much how modern commercial slot machines are implemented here. The reels are weighted by distribution of symbols and each reel stop is selected by a rng.

#22 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Wed Sep 27, 2017 9:26 AM

That's pretty much how modern commercial slot machines are implemented here. The reels are weighted by distribution of symbols and each reel stop is selected by a rng.

 

Things really haven't changed since the beginning then.



#23 shoestring ONLINE  

shoestring

    Dragonstomper

  • 545 posts
  • Location:Sydney

Posted Thu Sep 28, 2017 1:35 AM

Not too much. Games are just slightly more complicated now, more lines, more reels, inner reels, larger reel strips and multi features..etc

I used to work in the industry once upon a time. Glad I'm no longer doing it :)

#24 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Thu Sep 28, 2017 9:29 AM

Not too much. Games are just slightly more complicated now, more lines, more reels, inner reels, larger reel strips and multi features..etc

 

Most of which don't interest me much, which is why I like the older machines.

 

 

I used to work in the industry once upon a time. Glad I'm no longer doing it :)

 

I used to work in the gambling industry years ago, and happily keep it as part of my past too.

 

I think the Atari can use some quality games from the realm, though.


Edited by MrFish, Thu Sep 28, 2017 9:45 AM.


#25 MrFish OFFLINE  

MrFish

  • Topic Starter
  • 5,351 posts

Posted Thu Sep 28, 2017 6:07 PM

Homesoft has kindly created a unified binary version:

 

Attached File  mini-Slots 1.01.xex   31.18KB   75 downloads


Edited by MrFish, Thu Sep 28, 2017 6:08 PM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users