Created: 14/02/2018
By: Code This Lab S.r.l.
Email: info@codethislab.com
Thank you for purchasing our game. If you have any questions that are beyond the scope of this help file, please feel free to email via user page contact form here. Thanks so much!
Yacht Dice Game is a HTML5 Board Game.
Score as many points as possible by rolling five dices and getting the best combinations.
The ZIP package contains the game with 1360x640 resolution that scales to fit the whole screen device
Just warning that for very wide screens, the game may not be perfectly full screen.
The game is fully compatible with all most common mobile devices.
Sounds are enabled for mobile but we can't grant full audio compatibility on all mobile devices due to some well-know issue between some mobile-browser and HTML5.
So if you want to avoid sound loading, please read Disable Sound section).
WARNING: Sounds can't be enabled for Windows Phone as this kind of device have unsolved issues with 'audio' and 'video' tag.
The item package contains the following folders:
To install the game just upload on your server the game folder live_demo.
TEXT_HELP1 = "FOR EACH ROUND, THE PLAYER HAS "; TEXT_HELP2 = " ROLLS OF DICES"; TEXT_HELP3 = "AT ANY ROLL HE MUST CHOOSE ONE OF HIS REMAINING COMBINATIONS"; TEXT_HELP4 = "THE PLAYER CAN BLOCK A DICE IN ORDER TO KEEP IT FOR THE NEXT ROLL"; TEXT_HELP_TOPBONUS_1 = "IF THE TOP TOTAL IS AT LEAST "; TEXT_HELP_TOPBONUS_2 = " THE PLAYER WILL RECEIVE A BONUS"; TEXT_HELP_COMBINATION_0 = "THE SUM OF DICES WITH NUMBER 1"; TEXT_HELP_COMBINATION_1 = "THE SUM OF DICES WITH NUMBER 2"; TEXT_HELP_COMBINATION_2 = "THE SUM OF DICES WITH NUMBER 3"; TEXT_HELP_COMBINATION_3 = "THE SUM OF DICES WITH NUMBER 4"; TEXT_HELP_COMBINATION_4 = "THE SUM OF DICES WITH NUMBER 5"; TEXT_HELP_COMBINATION_5 = "THE SUM OF DICES WITH NUMBER 6"; TEXT_HELP_COMBINATION_6 = "AT LEAST 3 DICES THE SAME"; TEXT_HELP_COMBINATION_7 = "AT LEAST 4 DICES THE SAME"; TEXT_HELP_COMBINATION_8 = "3 OF ONE NUMBER AND 2 OF ANOTHER"; TEXT_HELP_COMBINATION_9 = "4 SEQUENTIAL DICES"; TEXT_HELP_COMBINATION_10 = "5 SEQUENTIAL DICES"; TEXT_HELP_COMBINATION_11 = "ALL 5 DICES THE SAME"; TEXT_HELP_COMBINATION_12 = "ANY COMBINATION, THE SUM OF ALL NUMBERS"; TEXT_SELECT_PLAYERS = "SELECT PLAYERS"; TEXT_WIN = "CONGRATULATIONS, YOU WON!"; TEXT_LOSE_1 = "SORRY, PLAYER "; TEXT_LOSE_2 = " WINS!\nTRY AGAIN?"; TEXT_PAUSE = "PAUSE"; TEXT_ARE_SURE = "ARE YOU SURE YOU WANT TO EXIT?\nALL UNSAVED PROGRESS WILL BE LOST"; TEXT_BEST_SCORE = "BEST SCORE"; TEXT_NEW_BEST_SCORE = "NEW BEST SCORE"; TEXT_PLAYER = "PLAYER"; TEXT_FINALSCORE = "SCORE"; TEXT_COMBINATION_0 = "ONES"; TEXT_COMBINATION_1 = "TWOS"; TEXT_COMBINATION_2 = "THREES"; TEXT_COMBINATION_3 = "FOURS"; TEXT_COMBINATION_4 = "FIVES"; TEXT_COMBINATION_5 = "SIXES"; TEXT_COMBINATION_6 = "3 OF A KIND"; TEXT_COMBINATION_7 = "4 OF A KIND"; TEXT_COMBINATION_8 = "FULL HOUSE"; TEXT_COMBINATION_9 = "LITTLE STRAIGHT"; TEXT_COMBINATION_10 = "BIG STRAIGHT"; TEXT_COMBINATION_11 = "YACHT"; TEXT_COMBINATION_12 = "CHANCE"; TEXT_BONUS = "TOP BONUS"; TEXT_TOTAL_TOP = "TOP TOTAL"; TEXT_TOTAL_BOTTOM = "BOTTOM TOTAL"; TEXT_GRAND_TOTAL = "FINAL TOTAL"; TEXT_CREDITS_DEVELOPED = "Developed by"; TEXT_LINK = "www.codethislab.com";
This game have the canvas tag in the body. The ready event into the body calls the main function of the game: CMain().
The head section declares all the javascript functions of the game. The whole project uses a typical object-oriented approach.
In the init function there are 4 mapped events that can be useful eventually for stats
var oMain = new CMain({ cpu_timer_value_max: 1000, // HOW MANY MILLISECONDS THE CPU PLAYER WILL TAKE FOR AN ACTION combination_value_full_house: 25, // HOW MANY POINTS THIS COMBINATION IS VALUED combination_value_small_straight: 30, // HOW MANY POINTS THIS COMBINATION IS VALUED combination_value_large_straight: 40, // HOW MANY POINTS THIS COMBINATION IS VALUED combination_value_yacht: 50, // HOW MANY POINTS THIS COMBINATION IS VALUED audio_enable_on_startup:false, //ENABLE/DISABLE AUDIO WHEN GAME STARTS fullscreen:true, // SET THIS TO FALSE IF YOU DON'T WANT TO SHOW FULLSCREEN BUTTON check_orientation:true // SET TO FALSE IF YOU DON'T WANT TO SHOW ORIENTATION ALERT ON MOBILE DEVICES });
The game use two CSS files. The first one is a generic reset file. Many browser interpret the default behavior of html elements differently. By using a general reset CSS file, we can work round this. Keep in mind, that these values might be overridden somewhere else in the file.
The second file contains all of the specific stylings for the canvas and some hack to be fully compatible with all most popular mobile devices
This game contains:
Resuming, the complete game flow is the following:
You can easily change all the game graphic, replacing all the file you need in the "/sprites" folder. Just respect file format (.png or .jpg) and size if you don't want to change any code line.
If you want to disable all the sounds for mobile devices, you have to change the following value in settings.js file:
var DISABLE_SOUND_MOBILE = true;
CTL Arcade will allow you to add a real arcade on your worpress website, in this way your users will be more involved and will stay connected longer.
It's possible to add Ads banner at the beginning of each game and at the end of each level. This will give you a new tool to increase your revenues.
Your own users will promote your website sharing their scores on the main Social Networks, with no extra costs for you.
You'll get by default the score-sharing on Twitter. To add Facebook just follow the guideline below.
3 widgets can be added in your pages through a shortcode.
Once again, thank you so much for purchasing this game. Feel free to contact us if you have any questions or issue relating to this game. No guarantees, but we'll do our best to assist.