Game option: You can easily customize game setting when creating a new instance of the game in index.html file
?
1
2
3
4
5
6
7
8
9
10
11
12
13
var oMain = new CMain({
ball_to_throw: 10, //THIS PARAM SET THE NUMBER OF BALL LAUNCHING
offset_hit: 80, //INCREASE THIS VALUE (PIXEL MEASURED) IF YOU WANT TO INCREASE PIXEL RANGE FOR BALL HITTING. IN THIS WAY BALL WILL BE MORE EASY TO HIT.
//DECREASE IT, IF YOU WANT TO MAKE THE GAME HARDER.
offset_perfect_hit:10, //LIKE OFFSET_HIT PARAM, THIS VALUE MANAGE THE PIXEL RANGE TO PERFORM A PERFECT HIT (HOME RUN). INCREASE/DECREASE THIS VALUE TO GET PERFECT HIT MORE EASILY/BARELY
step_spd_stadium: 0.5, //BALL SPEED IN STADIUM PANEL
score_area1: 10, //SCORE FOR BALL THROWN IN SECTOR 1
score_area2: 40, //SCORE FOR BALL THROWN IN SECTOR 2
score_area3: 100, //SCORE FOR HOME RUN
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
});