phaser/examples/wip1.html

46 lines
1.4 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html>
<head>
<title>phaser.js - a(nother) new beginning</title>
<script src="../src/Phaser.js"></script>
<script src="../src/system/Device.js"></script>
<script src="../src/core/SignalBinding.js"></script>
<script src="../src/core/Signal.js"></script>
<script src="../src/math/RandomDataGenerator.js"></script>
2013-08-28 14:27:22 +00:00
<script src="../src/math/Math.js"></script>
<script src="../src/geom/Point.js"></script>
2013-08-28 14:27:22 +00:00
<script src="../src/geom/Circle.js"></script>
<script src="../src/net/Net.js"></script>
2013-08-28 23:09:12 +00:00
<script src="../src/tween/TweenManager.js"></script>
<script src="../src/tween/Tween.js"></script>
<script src="../src/tween/Easing.js"></script>
<script src="../src/time/Time.js"></script>
<script src="../src/animation/Animation.js"></script>
<script src="../src/animation/Frame.js"></script>
<script src="../src/animation/FrameData.js"></script>
<script src="../src/animation/Parser.js"></script>
<script src="../src/loader/Cache.js"></script>
<script src="../src/loader/Loader.js"></script>
<script src="../src/Game.js"></script>
</head>
<body>
<script type="text/javascript">
var game = new Phaser.Game(this, '', 800, 600);
2013-08-28 23:09:12 +00:00
var test = { x: 0 };
2013-08-28 14:27:22 +00:00
2013-08-28 23:09:12 +00:00
var tween = game.tweens.create(test);
2013-08-28 14:27:22 +00:00
2013-08-28 23:09:12 +00:00
tween.onComplete.add(onComplete, this);
tween.to({x: 100}, 1000, Phaser.Easing.Linear.None, true);
2013-08-28 23:09:12 +00:00
function onComplete() {
console.log('tween finished, new data: ', test);
}
</script>
</body>
</html>