Carey Brown wrote:This might make it a bit cleaner:
jason edwardes wrote:adding this code makes makes the app crash
I don't understand those two things; please explai more. I hope you haven't used thread#pause() or similar.
jason edwardes wrote:. . . Frames not available for unsuspended thread
Variables paused in another thread . . .
jason edwardes wrote:I have found most the answers I was looking for and would be happy to share them with anybody thinking about using some type of animation in there app.
salvin francis wrote:Technically it looks good, but I think you can take this further...
Your machine just allows user to earn 15 points or 4 points. that too based on rigid rules: All three match or just 2 matches.
I have played slot machines where it first asks you to place a bet over what you think would win. The user can place multiple bets including diagonal match, middle line, top line, etc.. There are also bets on zigzag patterns. Once the user has invested all his bets, he cranks up the slot machine.
There are slot machine variations with 4 wheels and 5 wheels too instead of 3.
User may win some bets and lose some... But no matter what, the house always wins
salvin francis wrote:Thats a lot of code and it would be a maintenance nightmare.
Here's my suggestion with comments to help you out:
Each SlotWinRule maintains its own "matches" method to see if it matches the current WheelData. It can also contain it's own points and type.
jason edwardes wrote:... today seeing how far I can get, really can't work out how to get the imageview current image after the Animation has stopped
Knute Snortum wrote:...Is R and class? It's not a good name because you can't tell what it is.