serg94 / SlotGame

0 stars 0 forks source link

What's the License? #1

Open wpbishoy opened 7 years ago

wpbishoy commented 7 years ago

Hello,

What's the license of casino.js and util.js? If possible, please add a LICENSE file in github repo, so we know whether we can use it in commercial cases, etc. :-)

Thanks!

serg94 commented 7 years ago

Hello,

Just interesting what exactly you want to use from util.js and casino.js🙂? Please don't use only res folder content. There is nothing special in js files, you can use it as you want :).

Thanks!

wpbishoy commented 7 years ago

Hi,

Nice script, thanks for it!

I'm creating an ipad application for a client who's making it as a Trivia app for their customers, and giving out prizes for some of them.

Just a question, is there an easy way to control it so that every time the player wins?

serg94 commented 7 years ago

for winning every time you need to reduce slot items count to 1. for getting lot of wins you can reduce slot items count, and increase appearing probability for one of them. This configs are passed to gameplay by json. link to json in util.js

wpbishoy commented 7 years ago

Thanks for your response, much appreciated!

Actually what I needed is make it seem like you really won, without showing a lot of the same icons in non-winning rows, I have done a totally different approach, which took me 5 hours to come up with lol, but it worked surprisingly!

I took the increments and maxVelocities of a winning round, and detected when this will stop for each column before we _updateSlotsMatrixColumn, then I _updateSlotsMatrixColumn for this winning row with the same image for all columns instead of a random one, and it worked!

serg94 commented 5 years ago

Hey, I know this is too late, but I needed that too. I added result control on this game, now it's possible to predefine desired result, it's possible to choose between win/lose/win probability/current natural random(very small probability to win)