Fruit machine
Posted
#1
(In Topic #360)
Guru

<IMG src="http://www.cogier.com/gambas/Fruit%20Machine.png">
</IMG>
Posted
Administrator

On line 67 in FMain I added a Wait 0.5 so the "handle" sound meshed better with the reels starting to spin.
It ran about the same speed on all three of my systems.
Intel Xeon
Intel Core i3
AtomicPi (Intel Atom)
Posted
Regular

cogier said
This is just a bit of fun…
"Good game, good game!" (…google "Bruce Forsyth" if you are not a Brit)
My only suggestion would be to add a jack-pot win for one combination of, say, 100 credits.
I guess you could also get players to enter their names and have a high-score leaders board.
Charlie, I notice you have recently "gone native" and almost completely stopped adding comments to your code!!!
Posted
Guru

On line 67 in FMain I added a Wait 0.5 so the "handle" sound meshed better with the reels starting to spin.
That works!
It ran about the same speed on all three of my systems.
That's nice to know as I tried it on a Celeron and it was BAD!
My only suggestion would be to add a jack-pot win for one combination of, say, 100 credits.
Have a look at the sPict array in the Reel class. Say you wanted 3 x BAR to win. The 'Bar' is 3 so add a line in FMain between lines 110 and 111. If sWinningLine = "333" then byCredits = 100 I have not tested this.
I guess you could also get players to enter their names and have a high-score leaders board.
This is a good idea but I am not motivated to do this.
Charlie, I notice you have recently "gone native" and almost completely stopped adding comments to your code!!!
I know and I should as when I was looking for a way to make the "100" credits win I noticed that the Reel class still shows the original 5 reels that was experimented with in the beginning. This redundant code would have been picked up had I added a comment to each line but it seems I have "gone native".
Posted
Regular

Posted
1 guest and 0 members have just viewed this.




