Skip to content

Commit e43632b

Browse files
committed
22.5.26
1 parent 4bb1b15 commit e43632b

File tree

7 files changed

+40898
-4
lines changed

7 files changed

+40898
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/metroidvania/app.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const app = new PIXI.Application({ width: 480, height: 270, backgroundColor: 0xffffff, antialias: false});
2+
app.view.id = "PIXI";
3+
document.body.appendChild(app.view);
4+
PIXI.input.mouseContainer = app.view;
5+
6+
const solidTex = PIXI.Texture.from('assets/solid.png');
7+
8+
const scene = new PIXI.Container();
9+
app.stage.addChild(scene);
10+
11+
const player = PIXI.Sprite.from(solidTex);
12+
13+
scene.addChild(player);
14+
15+
// const ui = new PIXI.Container();
16+
// app.stage.addChild(scene);
17+
18+
app.ticker.add((deltaTime) => {
19+
20+
});

dev/metroidvania/assets/solid.png

529 Bytes
Loading

dev/metroidvania/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title>Metroidvania Jam</title>
6+
<link rel="preload" as="style" href="../style/default.css" onload="this.rel='stylesheet'">
7+
<script src="https://pixijs.download/release/pixi.js"></script>
8+
<script src="../zepyhr.js"></script>
9+
</head>
10+
11+
<body>
12+
<script src="app.js"></script> <!-- Testing -->
13+
</body>
14+
15+
</html>

0 commit comments

Comments
 (0)