Created: 05/04/2019
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!
Rummy is a HTML5 Card Game. Enjoy this stylish version of the classic Rummy Card Game!
The ZIP package contains the game with 1920x1920 resolution that scales to fit the whole screen both in portrait and landscape mode
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.
var TEXT_PLAYER = "PLAYER"; var TEXT_WINNER = "WINNER IS"; var TEXT_NICK = "NICKNAME"; var TEXT_SCORE = "SCORE"; var TEXT_WIN = "WIN"; var TEXT_POINTS = "POINTS"; var TEXT_CARDS = "CARDS" var TEXT_GAME_OVER = "ROUND OVER"; var TEXT_SELECT_NUM = "SELECT NUMBER OF PLAYERS"; var TEXT_NO_WASTE = "YOU CAN'T DROP A CARD IN THE WASTE PILE BEFORE GETTING A CARD FROM THE DECK"; var TEXT_NO_DROP = "YOU CAN'T CREATE A COMBINATION BEFORE GETTING A CARD FROM THE DECK"; var TEXT_NOT_ENOUGH_POINTS = "NOT ENOUGH POINTS FOR OPENING"; var TEXT_INVALID_COMBO = "INVALID COMBINATION"; var TEXT_INVALID_CARD_IN_COMBO = "THIS CARD CAN'T BE USED FOR THIS COMBINATION!"; var TEXT_CANT_PLACE_CARDS_IF_NOT_OPENING = "CAN'T PLACE ANY CARD BEFORE OPENING. YOU NEED AT LEAST"; var TEXT_INCOMPLETE_COMBO = "ONE OF YOUR COMBINATION ON THE TABLE IS INCOMPLETE. DO YOU WANT TO REMOVE IT?"; var TEXT_REMOVE_COMBO = "DO YOU WANT TO REMOVE THIS COMBO?"; var TEXT_CANT_DISCARD_WASTE_CARD = "YOU CAN'T DISCARD A CARD YOU PICKED FROM THE WASTE PILE PREVIOUSLY"; var TEXT_PRELOADER_CONTINUE = "START"; var TEXT_DOUBLE = "DOUBLE SCORE"; var TEXT_ARE_YOU_SURE = "ARE YOU SURE?"; var TEXT_HELP_WASTE = "DISCARD A CARD IN THE WASTE PILE!"; var TEXT_HELP_TITLE = ["RULES","STOCK PILE","MELDS","SCORING"]; var TEXT_TRIS = "TRIS"; var TEXT_POKER = "POKER"; var TEXT_STRAIGHT = "STRAIGHT"; var TEXT_HELP_0 = "RUMMY IS A CARD GAME WHERE THE AIM IS TO PUT ALL YOUR CARDS INTO COMBINATION BEFORE YOUR OPPONENTS. WHEN THE GAME STARTS, EACH PLAYER RECEIVES "; var TEXT_HELP_1 = "ONCE ALL CARDS ARE DEALED TO ALL THE PLAYERS, THE REMAINING CARDS ARE PLACED FACE DOWN ON THE TABLE, FORMING THE STOCK.THE TOP CARD IS TURNED UPWARD IN THE WASTE PILE."; var TEXT_HELP_2 = "EACH TURN, THE CURRENT PLAYER CAN CHOOSE TO PICK UP THE CARD FROM THE WASTE PILE OR FROM THE STOCK."; var TEXT_HELP_3 = "THE PLAYER CHECKS IF HE CAN PLACE ON THE TABLE ONE OR MORE COMBINATIONS OR JUST DISCARD A CARD FROM HIS OWN HAND"; var TEXT_HELP_4 = "WHEN A PLAYER PLACES ALL THE CARDS, HE WINS THE ROUND. THE WINNING SCORE IS THE SUM OF THE CARD RANKS OF ALL THE OPPONENTS. FACE CARDS COUNT 10 EACH, ACES"; var TEXT_HELP_5 = "EACH, AND EVERY OTHER CARD THEIR VALUE." var TEXT_HELP_6 = "THE FIRST PLAYER THAT REACHES THE SCORE OF"; var TEXT_HELP_7 = "WINS THE GAME!"; var TEXT_HELP_8 = "YOU CAN START PLACING CARDS ONLY ONCE THE SUM OF THE CARD RANKS IS AT LEAST "; var TEXT_HELP_9 = "IF THE WINNER PLACES ALL CARDS IN 1 TURN, HE DOUBLES THE POINTS!"; var TEXT_DEVELOPED = "DEVELOPED BY"; var TEXT_ERR_LS = "YOUR WEB BROWSER DOES NOT SUPPORT LOCAL STORAGE. IF YOU'RE USING SAFARI, IT MAY BE RELATED TO PRIVATE BROWSING. AS A RESULT, SOME INFO MAY NOT BE SAVED OR SOME FEATURES MAY NOT BE AVAILABLE."; var TEXT_SHARE_IMAGE = "200x200.jpg"; var TEXT_SHARE_TITLE = "Congratulations!"; var TEXT_SHARE_MSG1 = "You collected "; var TEXT_SHARE_MSG2 = " points!
Share your score with your friends!"; var TEXT_SHARE_SHARE1 = "My score is "; var TEXT_SHARE_SHARE2 = "points! Can you do better";
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 7 mapped events that can be useful eventually for stats
var oMain = new CMain({ num_cards_for_2_players:10, //NUMBER OF CARD TO DEAL FOR EACH PLAYER WHEN THERE ARE 2 PLAYERS. DEFAULT IS 10.MIN VALUE IS 4. MAXIMUM VALUE IS 13. num_cards_for_3_players:7, //NUMBER OF CARD TO DEAL FOR EACH PLAYER WHEN THERE ARE 3 PLAYERS. DEFAULT IS 10.MIN VALUE IS 4. MAXIMUM VALUE IS 13. num_cards_for_4_players:7, //NUMBER OF CARD TO DEAL FOR EACH PLAYER WHEN THERE ARE 4 PLAYERS. DEFAULT IS 10.MIN VALUE IS 4. MAXIMUM VALUE IS 13. min_point_for_opening:0, //WHEN USER WANT TO START MELDING CARDS ON THE TABLE, THE SUM OF THE COMBOS MUST BE THIS VALUE OR MORE joker_available:false, //SET IF JOKER ARE AVAILABLE IN THE STARTING DECK OR NOT. ace_high:true, //SET THIS VALUE = TRUE TO ALLOW THE STRAIGHT: QUEEN, KING, ACE (Q K A). going_rummy_rule:true, //SET 'GOING RUMMY' RULE ACTIVE/DISACTIVE. IF ACTIVE, A PLAYER THAT LAYS OFF ALL THEIR ENTIRE HAND IN A SINGLE TURN, //GET A DOUBLED SCORE FROM THE OTHER PLAYERS score_to_reach_for_2_players: 100, //SCORE TO REACH IF THERE ARE 2 PLAYERS score_to_reach_for_3_players: 150, //SCORE TO REACH IF THERE ARE 3 PLAYERS score_to_reach_for_4_players: 200, //SCORE TO REACH IF THERE ARE 4 PLAYERS score_ace: 1, //SCORE ASSIGNED FOR ACE CARD WHEN ROUND IS OVER score_joker: 15, //SCORE ASSIGNED FOR JOKER CARD WHEN ROUND IS OVER fullscreen:true //SET THIS TO FALSE IF YOU DON'T WANT TO SHOW FULLSCREEN BUTTON });
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.