Download Plane Rider game pack from here
For live use, just copy these lines where you want to have this game:You can change some parameters in start time. For example:
$("#gameScope").planeRider({rows:20, cols:60});
Parameter Name | Description |
---|---|
width | Width of game scope. Default is 400 |
height | Height of game scope. Default is 400 |
rows | Rows of the game table. Default is 40 |
cols | Columns of the game table. Default is 40 |
delayObstacle | The initial delay between obstacles. Default is 10. Scince its value will decrease 8 times during the game, the new value should be more than 10 For example if you set 16, its value will decrease to 8 in level of 80 |
gears | An array of 5 items containg the speed of the car. The less you set items, the more car speed increases. Default is [100,80,40,20,10] |