mirror of
https://github.com/wassname/phaser.git
synced 2026-08-11 11:23:06 +08:00
Fixed some eases.
This commit is contained in:
@@ -41,6 +41,8 @@ Version 1.0.7 (in progress in the dev branch)
|
||||
* Complete overhaul of Physics.Arcade.Body - now significantly more stable and faster too.
|
||||
* Updated ArcadePhysics.separateX/Y to use new body system - much better results now.
|
||||
* QuadTree bug found in 1.0.5 now fixed. The QuadTree is updated properly now using worldTransform values.
|
||||
* Fixed the Bounce.In and Bounce.InOut tweens (thanks XekeDeath)
|
||||
|
||||
* TODO: addMarker hh:mm:ss:ms
|
||||
* TODO: Direction constants
|
||||
|
||||
|
||||
+3
-3
@@ -240,7 +240,7 @@ Phaser.Easing = {
|
||||
|
||||
In: function ( k ) {
|
||||
|
||||
return 1 - TWEEN.Easing.Bounce.Out( 1 - k );
|
||||
return 1 - Phaser.Easing.Bounce.Out( 1 - k );
|
||||
|
||||
},
|
||||
|
||||
@@ -268,8 +268,8 @@ Phaser.Easing = {
|
||||
|
||||
InOut: function ( k ) {
|
||||
|
||||
if ( k < 0.5 ) return TWEEN.Easing.Bounce.In( k * 2 ) * 0.5;
|
||||
return TWEEN.Easing.Bounce.Out( k * 2 - 1 ) * 0.5 + 0.5;
|
||||
if ( k < 0.5 ) return Phaser.Easing.Bounce.In( k * 2 ) * 0.5;
|
||||
return Phaser.Easing.Bounce.Out( k * 2 - 1 ) * 0.5 + 0.5;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user