Skip to content

Commit a9b00d3

Browse files
authored
Merge pull request phaserjs#3035 from Antriel/master
Unified usage of "framerate" into "frameRate".
2 parents a8a642b + 08c54df commit a9b00d3

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

v3/src/animation/frame/Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var Animation = new Class({
2626
this.frames = GetFrames(manager.textureManager, GetValue(config, 'frames', []));
2727

2828
// The frame rate of playback in frames per second (default 24 if duration is null)
29-
this.frameRate = GetValue(config, 'framerate', null);
29+
this.frameRate = GetValue(config, 'frameRate', null);
3030

3131
// How long the animation should play for. If frameRate is set it overrides this value
3232
// otherwise frameRate is derived from duration

v3/src/animation/frame/ToJSON.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var ToJSON = function ()
44
key: this.key,
55
type: this.type,
66
frames: [],
7-
framerate: this.frameRate,
7+
frameRate: this.frameRate,
88
duration: this.duration,
99
skipMissedFrames: this.skipMissedFrames,
1010
delay: this.delay,

v3/src/animation/frame/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
{ key: textureKey, frame: textureFrame, visible: boolean },
66
{ key: textureKey, frame: textureFrame, onUpdate: function }
77
],
8-
framerate: integer,
9-
duration: float (seconds, optional, ignored if framerate is set),
8+
frameRate: integer,
9+
duration: float (seconds, optional, ignored if frameRate is set),
1010
skipMissedFrames: boolean,
1111
delay: integer,
1212
repeat: integer (-1 = forever),

v3/src/gameobjects/components/Animation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ var Animation = new Class({
3535
// The frame rate of playback in frames per second (default 24 if duration is null)
3636
this.frameRate = 0;
3737

38-
// How long the animation should play for. If framerate is set it overrides this value
39-
// otherwise framerate is derived from duration
38+
// How long the animation should play for. If frameRate is set it overrides this value
39+
// otherwise frameRate is derived from duration
4040
this.duration = 0;
4141

4242
// ms per frame (without including frame specific modifiers)

0 commit comments

Comments
 (0)