Created: 29/06/2020
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!
Flags Maniac is a HTML5 Quiz Game made up of 15 levels. How well do you know world flags? Learn every flag of the world, and test your knowledge!
The ZIP package contains the game with 1920x1080 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-known 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.
To install the game just upload on your server the game folder live_demo.
$(document).ready(function(){ var oMain = new CMain(); $(oMain).on("save_score", function(evt,iScore) { //alert("iScore: "+iScore ); }); });
var TEXT_PRELOADER_CONTINUE = "START"; var TEXT_SCORE = "SCORE"; var TEXT_BEST_SCORE = "BEST"; var TEXT_GAME_OVER = "GAME OVER"; var TEXT_PAUSE = "PAUSE"; var TEXT_QUESTION = "QUESTION"; var TEXT_DEVELOPED = "DEVELOPED BY"; var TEXT_NEW_RECORD = "NEW RECORD"; var TEXT_HELP = "How well do you know World flags? Can you recognize Switzerland, South Korea, Panama, Netherlands, Portugal or India? Test your flag knowledge as fast as you can!"; 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_FLAGS = new Array(); TEXT_FLAGS[0] = "Argentina"; TEXT_FLAGS[1] = "Brazil"; TEXT_FLAGS[2] = "Canada"; TEXT_FLAGS[3] = "China"; TEXT_FLAGS[4] = "Switzerland"; TEXT_FLAGS[5] = "Germany"; TEXT_FLAGS[6] = "Greece"; TEXT_FLAGS[7] = "France"; TEXT_FLAGS[8] = "Spain"; TEXT_FLAGS[9] = "United Kingdom"; TEXT_FLAGS[10] = "Japan"; TEXT_FLAGS[11] = "Italy"; TEXT_FLAGS[12] = "Netherlands"; TEXT_FLAGS[13] = "Cuba"; TEXT_FLAGS[14] = "Mexico"; TEXT_FLAGS[15] = "United States"; TEXT_FLAGS[16] = "Norway"; TEXT_FLAGS[17] = "Turkey"; TEXT_FLAGS[18] = "Senegal"; TEXT_FLAGS[19] = "Vatican City"; TEXT_FLAGS[20] = "South Africa"; TEXT_FLAGS[21] = "Iceland"; TEXT_FLAGS[22] = "North Korea"; TEXT_FLAGS[23] = "Hungary"; TEXT_FLAGS[24] = "Saudi Arabia"; TEXT_FLAGS[25] = "South Korea"; TEXT_FLAGS[26] = "Belgium"; TEXT_FLAGS[27] = "Denmark"; TEXT_FLAGS[28] = "Lebanon"; TEXT_FLAGS[29] = "Cote d'Ivoire"; TEXT_FLAGS[39] = "Croatia"; TEXT_FLAGS[31] = "Algeria"; TEXT_FLAGS[32] = "Ireland"; TEXT_FLAGS[33] = "Chad"; TEXT_FLAGS[34] = "Niger"; TEXT_FLAGS[35] = "Egypt"; TEXT_FLAGS[36] = "Estonia"; TEXT_FLAGS[37] = "Palestine"; TEXT_FLAGS[38] = "United Arab Emirates"; TEXT_FLAGS[39] = "Ecuador"; TEXT_FLAGS[40] = "Romania"; TEXT_FLAGS[41] = "Cyprus"; TEXT_FLAGS[42] = "Afghanistan"; TEXT_FLAGS[43] = "Iraq"; TEXT_FLAGS[44] = "Uruguay"; TEXT_FLAGS[45] = "Jordan"; TEXT_FLAGS[46] = "Zimbabwe"; TEXT_FLAGS[47] = "Monaco"; TEXT_FLAGS[48] = "Albania"; TEXT_FLAGS[49] = "Qatar"; TEXT_FLAGS[50] = "Austria"; TEXT_FLAGS[51] = "Bhutan"; TEXT_FLAGS[52] = "Pakistan"; TEXT_FLAGS[53] = "Kenya"; TEXT_FLAGS[54] = "Australia"; TEXT_FLAGS[55] = "Iran"; TEXT_FLAGS[56] = "Czech Republic"; TEXT_FLAGS[57] = "Sweden"; TEXT_FLAGS[58] = "Puerto Rico"; TEXT_FLAGS[59] = "Finland"; TEXT_FLAGS[60] = "India"; TEXT_FLAGS[61] = "Israel"; TEXT_FLAGS[62] = "Guatemala"; TEXT_FLAGS[63] = "Liberia"; TEXT_FLAGS[64] = "Jamaica"; TEXT_FLAGS[65] = "Chile"; TEXT_FLAGS[66] = "Saint Kitts and Nevis"; TEXT_FLAGS[67] = "Moldova"; TEXT_FLAGS[68] = "Morocco"; TEXT_FLAGS[69] = "Nepal"; TEXT_FLAGS[70] = "Lybia"; TEXT_FLAGS[71] = "Andorra"; TEXT_FLAGS[72] = "Indonesia"; TEXT_FLAGS[73] = "Peru"; TEXT_FLAGS[74] = "Malaysia"; TEXT_FLAGS[75] = "Portugal"; TEXT_FLAGS[76] = "Antigua and Barbuda"; TEXT_FLAGS[77] = "Myanmar"; TEXT_FLAGS[78] = "Nicaragua"; TEXT_FLAGS[79] = "Luxembourg"; TEXT_FLAGS[80] = "Philippines"; TEXT_FLAGS[81] = "Nigeria"; TEXT_FLAGS[82] = "Armenia"; TEXT_FLAGS[83] = "Angola"; TEXT_FLAGS[84] = "Azerbaijan"; TEXT_FLAGS[85] = "Bosnia and Herzegovina"; TEXT_FLAGS[86] = "Barbados"; TEXT_FLAGS[87] = "Bangladesh"; TEXT_FLAGS[88] = "Burkina Faso"; TEXT_FLAGS[89] = "Bulgaria"; TEXT_FLAGS[90] = "Burundi"; TEXT_FLAGS[91] = "Bolivia"; TEXT_FLAGS[92] = "Lithuania"; TEXT_FLAGS[93] = "Ghana"; TEXT_FLAGS[94] = "Republic of the Congo"; TEXT_FLAGS[95] = "Cameroon"; TEXT_FLAGS[96] = "Guinea"; TEXT_FLAGS[97] = "Mali"; TEXT_FLAGS[98] = "Benin"; TEXT_FLAGS[99] = "Guinea Bissau"; TEXT_FLAGS[100] = "Guyana"; TEXT_FLAGS[101] = "Mauritius"; TEXT_FLAGS[102] = "Ethiopia"; TEXT_FLAGS[103] = "Malawi"; TEXT_FLAGS[104] = "Brunei"; TEXT_FLAGS[105] = "The Bahamas"; TEXT_FLAGS[106] = "Botswana"; TEXT_FLAGS[107] = "Belarus"; TEXT_FLAGS[108] = "Belize"; TEXT_FLAGS[109] = "Democratic Republic of the Congo"; TEXT_FLAGS[110] = "Paraguay"; TEXT_FLAGS[111] = "Cook Island"; TEXT_FLAGS[112] = "Slovenia"; TEXT_FLAGS[113] = "Colombia"; TEXT_FLAGS[114] = "Costa Rica"; TEXT_FLAGS[115] = "Cape Verde"; TEXT_FLAGS[116] = "Djibouti"; TEXT_FLAGS[117] = "Dominica"; TEXT_FLAGS[118] = "Dominican Republic"; TEXT_FLAGS[119] = "Eritrea"; TEXT_FLAGS[120] = "Fiji"; TEXT_FLAGS[121] = "Russia"; TEXT_FLAGS[122] = "Syria"; TEXT_FLAGS[123] = "Micronesia"; TEXT_FLAGS[124] = "Gabon"; TEXT_FLAGS[125] = "Grenada"; TEXT_FLAGS[126] = "Georgia"; TEXT_FLAGS[127] = "Gibraltar"; TEXT_FLAGS[128] = "Gambia"; TEXT_FLAGS[129] = "Sierra Leone"; TEXT_FLAGS[130] = "Equatorial Guinea"; TEXT_FLAGS[131] = "El Salvador"; TEXT_FLAGS[132] = "South Sudan"; TEXT_FLAGS[133] = "Hong Kong"; TEXT_FLAGS[134] = "Honduras"; TEXT_FLAGS[135] = "Haiti"; TEXT_FLAGS[136] = "Cambodia"; TEXT_FLAGS[137] = "Kiribati"; TEXT_FLAGS[138] = "Comoros"; TEXT_FLAGS[139] = "Kuwait"; TEXT_FLAGS[140] = "Kazakhstan"; TEXT_FLAGS[141] = "Laos"; TEXT_FLAGS[142] = "Saint Lucia"; TEXT_FLAGS[143] = "Liechtenstein"; TEXT_FLAGS[144] = "Sri Lanka"; TEXT_FLAGS[145] = "Lesotho"; TEXT_FLAGS[146] = "Latvia"; TEXT_FLAGS[147] = "Montenegro"; TEXT_FLAGS[148] = "Thailand"; TEXT_FLAGS[149] = "Madagascar"; TEXT_FLAGS[150] = "Marshall Islands"; TEXT_FLAGS[151] = "Macedonia"; TEXT_FLAGS[152] = "Mongolia"; TEXT_FLAGS[153] = "Macau"; TEXT_FLAGS[154] = "Mauritania"; TEXT_FLAGS[155] = "Malta"; TEXT_FLAGS[156] = "Maldives"; TEXT_FLAGS[157] = "Mozambique"; TEXT_FLAGS[158] = "Namibia"; TEXT_FLAGS[159] = "Slovakia"; TEXT_FLAGS[160] = "Nauru"; TEXT_FLAGS[161] = "Oman"; TEXT_FLAGS[162] = "Panama"; TEXT_FLAGS[163] = "Papua New Guinea"; TEXT_FLAGS[164] = "Poland"; TEXT_FLAGS[165] = "Palau"; TEXT_FLAGS[166] = "Bahrain"; TEXT_FLAGS[167] = "Serbia"; TEXT_FLAGS[168] = "Rwanda"; TEXT_FLAGS[169] = "Kyrgyzstan"; TEXT_FLAGS[170] = "Solomon Island"; TEXT_FLAGS[171] = "Seychelles"; TEXT_FLAGS[172] = "Sudan"; TEXT_FLAGS[173] = "Singapore"; TEXT_FLAGS[174] = "San Marino"; TEXT_FLAGS[175] = "Somalia"; TEXT_FLAGS[176] = "Suriname"; TEXT_FLAGS[177] = "Sao Tome and Principe"; TEXT_FLAGS[178] = "Eswatini"; TEXT_FLAGS[179] = "Togo"; TEXT_FLAGS[180] = "Tajikistan"; TEXT_FLAGS[181] = "East Timor"; TEXT_FLAGS[182] = "Turkmenistan"; TEXT_FLAGS[183] = "Tunisia"; TEXT_FLAGS[184] = "Trinidad and Tobago"; TEXT_FLAGS[185] = "New Zealand"; TEXT_FLAGS[186] = "Tanzania"; TEXT_FLAGS[187] = "Ukraine"; TEXT_FLAGS[188] = "Uganda"; TEXT_FLAGS[189] = "Uzbekistan"; TEXT_FLAGS[190] = "Saint Vincent and the Grenadines"; TEXT_FLAGS[191] = "Venezuela"; TEXT_FLAGS[192] = "Vietnam"; TEXT_FLAGS[193] = "Vanuatu"; TEXT_FLAGS[194] = "Samoa"; TEXT_FLAGS[195] = "Yemen"; TEXT_FLAGS[196] = "Zambia"; TEXT_FLAGS[197] = "Tuvalu"; TEXT_FLAGS[198] = "Tonga"; TEXT_FLAGS[199] = "Central African Republic"; 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";
var oMain = new CMain({ num_questions:15, //Total Number of questions. Minimum is 3. Maximum is 20 bonus_time:5, //AMOUNT OF SECONDS FOR THE BONUS SCORE 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 });
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 8 mapped events that can be useful eventually for stats
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. Fell 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.