Ajax / Php / Jquery – Slot Machine

Note: This is not for a real cash casino game, just a fun slot machine game to include into a game site. This is a standard 3-reel, 5-payline slot machine. If you do not know how this type of slot machine works, then please do not attempt this project.

For more information on a 3-reel 5-payline slot machine, visit:
http://slotsdoc.com/how-to-play-slots.htm

A starting balance is available through a stored sql value and is passed to the page (can be as simple as <? echo $credits; ?>. This stored sql amount is their total account credits (this is already in place on the site).

When the deposit/withdraw button is pressed the user is able to deposit up to the maximum account credits (but no more than their total available credits in their account) into the game via a layered window (thickbox?). The user can then select if they want to play in increments of 1, 5, 10, or 25 credits. Whatever denomination/increment the user clicks is highlighted for the rest of the game play or until a new increment/denomination is chosen. When the user clicks the “bet one” button, the 1st payline is highlighted. When the “bet one” button is clicked again, the second payline is highlighted. This is repeated up to 5 total paylines (see attachment for images). When the “Max Bet” button is pressed all five paylines light up and the slot machine spins.

If the same image matches up on earch reel, the appropriate credits are won. The payline that is played should appear to light up (change color) and sounds should play when the slot machine spins and a different sound if there is a win. The higher the value of the win, the more loops the sounds will play. Also, the winning squares/images should be highlighted so that the user will know what combination has won. Multiple winning combination are possible, such as 3 cherries on the first payline and 3 single bars on the second payline.

If any of the top five highest paying combinations are won, an alert sound trigger for that win: alert(“Top Prize”); or alert(“2nd Best Prize”); etc.

Also, every 25 to 50 spins (rand(40,70);) a special javascript should be triggered. alert(’25th hand’). I will change the alerts to a custom function after the game is complete.

We are already using PHP and JQuery on the site and would prefer for this game to utilize the same technology (PHP is a must). Additionally, we are also using the Thickbox JS on other pages, so this can be used at your disposal. For the sounds, I will supply the sounds for each type of win, as well as the sound for when the slot reels spin.

Payment:
We issue payment via escrow account and funds will only be released in full after project is completed. This job will be considered complete after:
* Game is demonstrated to be fully functioning and error free. A three day testing period will take place. This can be on your server if you want.
* Graphics are at least equal to the supplied sample image supplied in this post.
* Game is uploaded to our server and is successfully running and error free. Two day testing period.
* Payment will be made promptly after the second day of testing on our server.

We understand that projects can sometimes take longer than expected. Therefore, we will allow for the project time to run 7 days past the quoted delivery time. After 7 days, we will consider the project to be undelivered and will request a refund of the escrow funds and will repost this job.

Leave a Reply

Your email address will not be published. Required fields are marked *