js/config.js is the configuration file. By editing config file you can change many aspect of the gameplay.
You can edit it by using your favorite text editor software like Gedit, Notepad++, Komodo or many others.
var SCALE_INTERPOLATION_DESKTOP = true; var SCALE_INTERPOLATION_MOBILE = true;The game viewport is scaled to fit the dimension of the browser window, or screen device, in order to show the game at the best size.
var MAX_FPS = 30;You can set the maximum frame per second value to be performed by the game.
var AUDIOENABLED = true;This option turns on/off the audio of the game. If you turn it off but you set visible the audio toggle button, the user can turn back it on by using such button, so, you can think about this option as a sort of default state of the audio toggle button.
var MUSICENABLED = true;This option enable the in-game background music. If you turn it off there is no way to turn it on by the user.
var ADS_ON_NEW_LEVEL = true;This option turns on/off the ad screen when player completes each level.
var ADS_ON_DEATH = true;This option turns on/off ad screen when player dies.
var BETWEEN_LEVELS_ADS_DESKTOP = "ad.html";This field contains the URL of the page shown, when games runs on a pc, if ADS_ON_NEW_LEVEL and/or ADS_ON_DEATH are set to true.
var BETWEEN_LEVELS_ADS_MOBILE = "ad.html";This field contains the URL of the page shown, when games runs on a mobile device, if ADS_ON_NEW_LEVEL and/or ADS_ON_DEATH are set to true.
var IN_GAME_ADS = true;This option turns on/off the in game banner.
<div id="ads" style="bottom:0; background-color:#000">HERE YOUR ADS CODE</div>
var GAME_LANGUAGES = ["en","it"];This parameter consists in the list of languages the game can use for showing texts.
var GAME_NAME_1 = "Loading...";Game name first line.
var GAME_NAME_1_SIZE = 30;Font size for first line, you can change this value according to the length of the name in order to get the best pagination.
var GAME_NAME_1_COLOR = "#FF7700";Color for first line expressed in hex value. You can get hex colors by using photo editing software or paint applications like Gimp, Photoshop, Krita, Mypaint, etc.
var GAME_NAME_2 = "Joe Volcano";Game name second line.
var GAME_NAME_2_SIZE = 50;Font size for second line, you can change this value according to the length of the your text in order to get the best pagination.
var GAME_NAME_2_COLOR = "#FFFF00";Color for second line expressed in hex value.
var LOADING_BG_COLOR = "#660000";Background color of the loading screen expressed in hex value.
var LOADING_BAR_COLOR = "#FFFF00";Color of the progress bar expressed in hex value.
There are a series of buttons in the main menu screen that you can decide if they will be visible or not.
var TOGGLE_AUDIO_BUTTON = true;Value may be true or false for enabling or disabling the button. The toggle audio button allows user to switch audio on or off.
var FULLSCREEN_BUTTON = true;Value may be true or false for enabling or disabling the button. On desktop/laptop computers this button will scale the game at the maximum screen size, maintaining the game viewport aspect ratio. On mobile devices this button will be automatically hidden.
var INFORMATION_BUTTON = true;Value may be true or false for enabling or disabling the button. This button opens an info screen where you can write information for the user. For example if you use graphic, sound, music made by other people, sometimes, is required you credit the author for his work, this page may be the right place for do so.
var HISCORE_BUTTON = true;Value may be true or false for enabling or disabling the button. This button shows the hi-score screen stored on your server. If you plan to not use that feature, remove this button.
var HOW_TO_PLAY_BUTTON = false;Value may be true or false for enabling or disabling the button. This button opens the how to play screen where the user gets instruction on how to play the game.
var MORE_GAMES_BUTTON = true;Value may be true or false for enabling or disabling the button. This button is a nice way of driving back traffic on your website for playing other games.
var SCORE_URL = "http://www.ffx.it/games/joe-volcano/saveScore.php";Absolute URL to the script receiving score data. The script is saveScore.php and is located in the root folder where you placed the game on the server.
var IOS_RATING_URL = "https://itunes.apple.com/us/app/joevolcano/id#######"; var ANDROID_RATING_URL = "market://details?id=it.ffx.joevolcano";
var MORE_GAMES_URL = "http://ffx.it/";Url to your website used by the 'more game' button.
var SUBMIT_SCORE_BUTTON = true;Enable or disable the send score to the server button that you find in the game over screen.
var KEYBOARD_NUMBERS = false;Enable or disable number keys in virtual keyboard
var START_VELOCITY = 120;This is the initial velocity when game starts, expressed in pixel per seconds.
var MAX_VELOCITY = 240;This is the maximum velocity the game can reach when advancing levels. It is expressed in pixel per seconds.
var VELOCITY_INCREMENT = 30;This is the velocity increase amount from one level to another, expressed in pixel per seconds.
var LEVELS_FILES =[ "level0.json", "level1.json", "level2.json", "level3.json", "level4.json" ];The value of this parameter is the list of the level files. When all the levels are completed then the sequence starts again from the first but the levels counter will continue increasing during the game. For example, if you sets a total of 4 levels, when the player compete the fourth level, it will be loaded the level one as the following level but it will be shown as level five.