<img width="300"src="http://img.ucweb.com/s/uae/g/01/running_game/images/loading.png">
H5 Running Game Base on UPlayer by U.E.M. Team.
<body>
......
<script type="text/javascript" src="release/running-game-0.1.1.js"></script>
</body>
var opt = {}; // game option
RunningGame.start(opt, function(point) {
console.log('cool!u ran: ', point);
}, function (lg, cg) {
console.log('last grade is ', lg);
console.log('current grade is ', cg);
});
Prompt of ready scene // 'click button to start'
Prompt of gameover // 'cool! u ran '
User nickname, at the bottom right // 'UU'
After the game needs to wait for time // 3000
The minimum number of combos // [0, 1, 3, 5, 7]
The base point per round of each grade // [3, 4, 5, 6, 10]
FPS of each prade // [10, 20, 30, 40, 70]
Whether audio enable // true
Background music url
Gameover music url
Dom elemenet's id
Image resouce path, keep image name to replace it // 'images/'
CSS resource url
Extension animation array // ['Sky', 'Cloud', 'Ground']
you can define custom animations as follow:
......
var opt = {
extension: [
'Sky',
'Cloud',
'Ground',
function(ctx, frame) {
// TODO custom animation
}
]
}
Copyright (c) 2015 Aaron Peng