Skip to content

Commit b76cae6

Browse files
committed
Updates
1 parent fb477a1 commit b76cae6

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
stable/*/
44
nightly/*/
55
.obsidian/
6-
logo/*
6+
checklist.md

index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
</head>
1313

1414
<body>
15-
<h1>ZephyrJS v22.10</h1>
15+
<h1>ZephyrJS</h1>
1616
<p><strong>Expands <a href="https://github.com/pixijs/pixijs">PixiJS</a> for easy interactive projects!</strong></p>
1717

18-
<p class="pixi">Compatible with PixiJS v6.5.5!</p>
18+
<p class="pixi" id="nightlyCompatible">Compatible with Pixi 6.5.7!</p>
1919

2020
<h2>Tell Me Why</h2>
2121
<p>PixiJS on its own is very powerful, but a lot of work is needed to make it work for web-based interactive
@@ -41,10 +41,18 @@ <h2>Getting Started</h2>
4141
<p><code>&lt;script src="https://ottcs.github.io/ZephyrJS/nightly/zephyr.js"&gt;&lt;/script&gt;</code></p>
4242
<p>Please do bear in mind that things ARE likely to break in functionality, especially right after a new release of Pixi.</p>
4343

44+
<p>Looking for a starting point? Check out the quickstart!</p>
45+
<p><a href="quickstart/index.html">View the quickstart</a></p>
46+
<p><a href="quickstart/quickstart.zip">Download the quickstart</a></p>
47+
4448
<h2>More</h2>
45-
<p><a href="https://github.com/OttCS/ZephyrJS/">ZephyrJS Github</a><a href="https://github.com/OttCS/ZephyrJS/issues">Issues Page</a><a href="https://github.com/users/OttCS/projects/7">Project Board</a><a href="https://github.com/OttCS/ZephyrJS/discussions">Discussions Page</a></p>
49+
<p><a href="https://github.com/OttCS/ZephyrJS/">ZephyrJS Github</a></p>
50+
<p><a href="https://github.com/OttCS/ZephyrJS/issues">Issues Page</a></p>
51+
<p><a href="https://github.com/users/OttCS/projects/7">Project Board</a></p>
52+
<p><a href="https://github.com/OttCS/ZephyrJS/discussions">Discussions Page</a></p>
4653

4754
<p>Thanks for using ZephyrJS &lt;3</p>
4855
</body>
4956

57+
5058
</html>

logo/banner.png

-155 KB
Binary file not shown.

quickstart/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ PIXI.Mouse.setContainer(app.view);
1313

1414
PIXI.utils.TextureCache['assets/character.png'];
1515

16+
const soundEffect = PIXI.Audio.from("assets/hitL.wav");
17+
1618
const character = PIXI.Sprite.from('assets/character.png');
1719
character.anchor = { x: 0.5, y: 0.5 };
1820
character.vector = { x: 0, y: 0 };
@@ -48,6 +50,8 @@ app.ticker.add((deltaTime) => {
4850
character.x = PIXI.clamp(character.x, 0, app.view.width);
4951
character.vector.x *= -character.bounce;
5052
character.vector.y *= character.bounce;
53+
if (Math.abs(character.vector.x) > 5)
54+
soundEffect.play();
5155
}
5256

5357
// Check if player is within vertical bounds
@@ -57,6 +61,8 @@ app.ticker.add((deltaTime) => {
5761
character.y = PIXI.clamp(character.y, 0, app.view.height);
5862
character.vector.x *= character.bounce;
5963
character.vector.y *= -character.bounce;
64+
if (Math.abs(character.vector.y) > 5)
65+
soundEffect.play();
6066
}
6167

6268
// Adjust character position by the vector

quickstart/assets/hitL.wav

80.8 KB
Binary file not shown.

quickstart/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
<head>
55
<title>Physics</title>
6-
<link rel="preload" as="style" href="default.css" onload="this.rel='stylesheet'">
6+
<link rel="stylesheet" href="style.css">
77
<script src="https://ottcs.github.io/ZephyrJS/nightly/pixi.js"></script>
88
<script src="https://ottcs.github.io/ZephyrJS/nightly/zephyr.js"></script>
99
</head>
1010

1111
<body>
12-
<script src="app.js"></script> <!-- Testing -->
12+
<script src="app.js"></script>
1313
</body>
1414

1515
</html>
File renamed without changes.

0 commit comments

Comments
 (0)