mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 11:57:19 +00:00
Added KeyCombo.progress.
This commit is contained in:
parent
fa69035e4f
commit
226e0b216d
1 changed files with 17 additions and 1 deletions
|
@ -123,4 +123,20 @@ KeyCombo.prototype = {
|
|||
|
||||
};
|
||||
|
||||
Object.defineProperties(KeyCombo.prototype, {
|
||||
|
||||
progress: {
|
||||
|
||||
enumerable: true,
|
||||
|
||||
// How far complete is this combo? A value between 0 and 1.
|
||||
get: function ()
|
||||
{
|
||||
return this.index / this.size;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
module.exports = KeyCombo;
|
||||
|
|
Loading…
Add table
Reference in a new issue