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 33stable /* /
44nightly /* /
55.obsidian /
6- logo / *
6+ checklist.md
Original file line number Diff line number Diff line change 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 > <script src="https://ottcs.github.io/ZephyrJS/nightly/zephyr.js"></script></ 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 <3</ p >
4855</ body >
4956
57+
5058</ html >
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ PIXI.Mouse.setContainer(app.view);
1313
1414PIXI . utils . TextureCache [ 'assets/character.png' ] ;
1515
16+ const soundEffect = PIXI . Audio . from ( "assets/hitL.wav" ) ;
17+
1618const character = PIXI . Sprite . from ( 'assets/character.png' ) ;
1719character . anchor = { x : 0.5 , y : 0.5 } ;
1820character . 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
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments