File tree Expand file tree Collapse file tree 7 files changed +20
-6
lines changed Expand file tree Collapse file tree 7 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 3
3
stable /* /
4
4
nightly /* /
5
5
.obsidian /
6
- logo / *
6
+ checklist.md
Original file line number Diff line number Diff line change 12
12
</ head >
13
13
14
14
< body >
15
- < h1 > ZephyrJS v22.10 </ h1 >
15
+ < h1 > ZephyrJS</ h1 >
16
16
< p > < strong > Expands < a href ="https://github.com/pixijs/pixijs "> PixiJS</ a > for easy interactive projects!</ strong > </ p >
17
17
18
- < p class ="pixi "> Compatible with PixiJS v6 .5.5 !</ p >
18
+ < p class ="pixi " id =" nightlyCompatible " > Compatible with Pixi 6 .5.7 !</ p >
19
19
20
20
< h2 > Tell Me Why</ h2 >
21
21
< 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>
41
41
< p > < code > <script src="https://ottcs.github.io/ZephyrJS/nightly/zephyr.js"></script></ code > </ p >
42
42
< p > Please do bear in mind that things ARE likely to break in functionality, especially right after a new release of Pixi.</ p >
43
43
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
+
44
48
< 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 >
46
53
47
54
< p > Thanks for using ZephyrJS <3</ p >
48
55
</ body >
49
56
57
+
50
58
</ html >
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ PIXI.Mouse.setContainer(app.view);
13
13
14
14
PIXI . utils . TextureCache [ 'assets/character.png' ] ;
15
15
16
+ const soundEffect = PIXI . Audio . from ( "assets/hitL.wav" ) ;
17
+
16
18
const character = PIXI . Sprite . from ( 'assets/character.png' ) ;
17
19
character . anchor = { x : 0.5 , y : 0.5 } ;
18
20
character . vector = { x : 0 , y : 0 } ;
@@ -48,6 +50,8 @@ app.ticker.add((deltaTime) => {
48
50
character . x = PIXI . clamp ( character . x , 0 , app . view . width ) ;
49
51
character . vector . x *= - character . bounce ;
50
52
character . vector . y *= character . bounce ;
53
+ if ( Math . abs ( character . vector . x ) > 5 )
54
+ soundEffect . play ( ) ;
51
55
}
52
56
53
57
// Check if player is within vertical bounds
@@ -57,6 +61,8 @@ app.ticker.add((deltaTime) => {
57
61
character . y = PIXI . clamp ( character . y , 0 , app . view . height ) ;
58
62
character . vector . x *= character . bounce ;
59
63
character . vector . y *= - character . bounce ;
64
+ if ( Math . abs ( character . vector . y ) > 5 )
65
+ soundEffect . play ( ) ;
60
66
}
61
67
62
68
// Adjust character position by the vector
Original file line number Diff line number Diff line change 3
3
4
4
< head >
5
5
< title > Physics</ title >
6
- < link rel ="preload " as =" style " href ="default .css" onload =" this.rel='stylesheet' ">
6
+ < link rel ="stylesheet " href ="style .css ">
7
7
< script src ="https://ottcs.github.io/ZephyrJS/nightly/pixi.js "> </ script >
8
8
< script src ="https://ottcs.github.io/ZephyrJS/nightly/zephyr.js "> </ script >
9
9
</ head >
10
10
11
11
< body >
12
- < script src ="app.js "> </ script > <!-- Testing -->
12
+ < script src ="app.js "> </ script >
13
13
</ body >
14
14
15
15
</ html >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments