Damn you for making sense, ES6!
This commit is contained in:
parent
4b0a68c11b
commit
d43a9e977c
1 changed files with 3 additions and 3 deletions
|
@ -90,21 +90,21 @@ twnlib.tween(bean.pos, [ "x" ], {
|
||||||
from: 0,
|
from: 0,
|
||||||
to: width() - 64,
|
to: width() - 64,
|
||||||
time: 3.2,
|
time: 3.2,
|
||||||
type: tweentypes.PINGPONG
|
type: twnlib.tweentypes.PINGPONG
|
||||||
});
|
});
|
||||||
|
|
||||||
twnlib.tween(bean.pos, [ "y" ], {
|
twnlib.tween(bean.pos, [ "y" ], {
|
||||||
from: 0,
|
from: 0,
|
||||||
to: height() - 64,
|
to: height() - 64,
|
||||||
time: 2,
|
time: 2,
|
||||||
type: tweentypes.PINGPONG
|
type: twnlib.tweentypes.PINGPONG
|
||||||
});
|
});
|
||||||
|
|
||||||
twnlib.tween(bean.color, [ "g", "r" ], {
|
twnlib.tween(bean.color, [ "g", "r" ], {
|
||||||
from: 255,
|
from: 255,
|
||||||
to: 0,
|
to: 0,
|
||||||
time: 0.25,
|
time: 0.25,
|
||||||
type: tweentypes.PINGPONG
|
type: twnlib.tweentypes.PINGPONG
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
`JSTween.js`
|
`JSTween.js`
|
||||||
|
|
Loading…
Reference in a new issue