This commit is contained in:
Dan Buch 2021-12-28 13:55:03 -05:00
parent b020618d57
commit a2661f4369
Signed by: meatballhat
GPG Key ID: A12F782281063434
2 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
<!doctype html>
<html>
<head>
<script src="https://pixijs.download/release/pixi.js"></script>
</head>
<body>
<script>
let app = new PIXI.Application({ width: 640, height: 360 });
let sprite = PIXI.Sprite.from('sample.png');
app.stage.addChild(sprite);
let elapsed = 0.0;
app.ticker.add((delta) => {
elapsed += delta;
sprite.x = 100.0 + Math.cos(elapsed/50.0) * 100.0;
});
document.body.appendChild(app.view);
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB