Skip to content

Commit 6353d8c

Browse files
committed
Fixed some eases.
1 parent 3a369d5 commit 6353d8c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Version 1.0.7 (in progress in the dev branch)
4141
* Complete overhaul of Physics.Arcade.Body - now significantly more stable and faster too.
4242
* Updated ArcadePhysics.separateX/Y to use new body system - much better results now.
4343
* QuadTree bug found in 1.0.5 now fixed. The QuadTree is updated properly now using worldTransform values.
44+
* Fixed the Bounce.In and Bounce.InOut tweens (thanks XekeDeath)
45+
4446
* TODO: addMarker hh:mm:ss:ms
4547
* TODO: Direction constants
4648

src/tween/Easing.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Phaser.Easing = {
240240

241241
In: function ( k ) {
242242

243-
return 1 - TWEEN.Easing.Bounce.Out( 1 - k );
243+
return 1 - Phaser.Easing.Bounce.Out( 1 - k );
244244

245245
},
246246

@@ -268,8 +268,8 @@ Phaser.Easing = {
268268

269269
InOut: function ( k ) {
270270

271-
if ( k < 0.5 ) return TWEEN.Easing.Bounce.In( k * 2 ) * 0.5;
272-
return TWEEN.Easing.Bounce.Out( k * 2 - 1 ) * 0.5 + 0.5;
271+
if ( k < 0.5 ) return Phaser.Easing.Bounce.In( k * 2 ) * 0.5;
272+
return Phaser.Easing.Bounce.Out( k * 2 - 1 ) * 0.5 + 0.5;
273273

274274
}
275275

0 commit comments

Comments
 (0)