Created: 20/07/2014
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!
Flappy Purupuru is a HTML5 action game. The game is freely inspired to the popular game "Flappy Bird". The goal of the player is to tap the screen to let Purupuru survive as long as possible avoiding the obstacles.
The ZIP package contains the game with 768x1024 resolution that automatically scales to fit proportionally current screen device.
The game is fully compatible with all most common mobile devices.
Sounds are DISABLED ON MOBILE DEVICES to avoid compatibility issues but can be easily enabled (read Enable Sound section). Anyway we can't grant full compatibility on all mobile devices if this feature is enabled.
To install the game just upload on your server the files contained into the folder 'game768x1024'. WARNING: The game won't run locally with some browser like Chrome due to some security restrictions so please upload it on your server space.
$(window).ready(function() {
sizeHandler();
});
$(oMain).on("save_score", function(evt,score,best_score) {
//ADD CODE HERE
});
TEXT_GAMEOVER = "GAME OVER"; TEXT_CONGRATS = "CONGRATULATIONS"; TEXT_SCORE = "SCORE"; TEXT_BEST_SCORE = "BEST SCORE"; TEXT_TIME = "TIME"; TEXT_PLAY = "PLAY"; TEXT_HELP = "TAP THE SCREEN\n TO JUMP AND\nAVOID THE OBSTACLES";
var oMain = new CMain({
hero_x : 150, //STARTING HERO X POSITION
hero_y : CANVAS_HEIGHT/2, //STARTING HERO Y POSITION
hero_down_speed : 3, //HERO FALLING SPEED
bg_speed : 9, //SPEED OF SCROLLING BACKGROUND
time_training: 3000, //NUMBER OF MILLISECONDS BEFORE USER STARTS PLAYING
dist_among_obst: 350, //PIXEL DISTANCE AMONG TWO SERIES OF OBSTACLE
obst_height_dist: 250 //PIXEL DISTANCE BETWEEN TWO OBSTACLE POSITIONED IN THE SAME X
});
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 3 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:
The game trigger the following events:
The game avoid sound playing if loaded on any mobile device. If you want to enable sounds also on mobiles, you have to change the following value in settings.js file:
var DISABLE_SOUND_MOBILE = false;
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.
CODE THIS LAB S.R.L.