-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from TitanPlayz100/pixi-test
Overhauled Rendering With PIXI.js
- Loading branch information
Showing
35 changed files
with
4,143 additions
and
4,099 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.vscode/ | ||
package-lock.json | ||
Cargo.lock | ||
README.md | ||
*.d.ts | ||
jsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,62 @@ | ||
# Teti README | ||
|
||
Hosted on github pages [here](https://titanplayz100.github.io/teti/) | ||
|
||
The info page can be found [here](https://titanplayz100.github.io/teti/info.html) | ||
|
||
> [!WARNING] | ||
> Firefox is not supported (due to import assertions) | ||
## Desktop App | ||
### NEW! | ||
|
||
Releases are now run through a workflow. They are **up to date** and contain all the latest features. | ||
|
||
App build using Tauri, feel free to open issues and PRs. | ||
|
||
## Data Formats (for my convenience) | ||
### Gamemode Structure (gamemodes.json) | ||
```js | ||
gamemodes = { | ||
"gamemode_name": { | ||
settings: {}, // settings that override the default * settings | ||
displayName: "", // name shown on gamemode selection | ||
objectiveText: "", // subtext displayed on right side | ||
goalStat: "", // stat being tracked (valid property in stats class) | ||
target: "", // target (valid target in settings) | ||
result: "", // displayed as result (another valid stat in stats class) | ||
|
||
// TO BE ADDED LATER | ||
music: "", // custom song that can play | ||
compmusic: "", // custom song that played on pb pace | ||
startBoard: "", // starting board, tetrio map format | ||
effects: [], // custom background / effects | ||
} | ||
} | ||
``` | ||
|
||
Add functionality mainly in `features/modes.js`. | ||
You can modify existing modules as well from other files | ||
|
||
### Adding Audio (sfxlist.json) | ||
```json | ||
{ | ||
{ | ||
"name": "<name used in code>", | ||
"path": "assets/sfx/<file path / name>.<ext>" | ||
} | ||
} | ||
``` | ||
Use with `this.game.sounds.playSound(<name>)` | ||
# Teti README | ||
|
||
Hosted on github pages [here](https://titanplayz100.github.io/teti/) | ||
|
||
The info page can be found [here](https://titanplayz100.github.io/teti/info.html) | ||
|
||
> [!WARNING] | ||
> Firefox is not supported (due to import assertions) | ||
## Desktop App | ||
Releases are now run through a workflow. They are **up to date** and contain all the latest features. | ||
|
||
App build using Tauri, feel free to open issues and PRs. | ||
|
||
## Data Formats (for my convenience) | ||
### Gamemode Structure (gamemodes.json) | ||
```js | ||
gamemodes = { | ||
"gamemode_name": { | ||
settings: {}, // settings that override the default * settings | ||
displayName: "", // name shown on gamemode selection | ||
objectiveText: "", // subtext displayed on right side | ||
goalStat: "", // stat being tracked (valid property in stats class) | ||
target: "", // target (valid target in settings) | ||
result: "", // displayed as result (another valid stat in stats class) | ||
|
||
// TO BE ADDED LATER | ||
music: "", // custom song that can play | ||
compmusic: "", // custom song that played on pb pace | ||
startBoard: "", // starting board, tetrio map format | ||
effects: [], // custom background / effects | ||
} | ||
} | ||
``` | ||
|
||
Add functionality mainly in `features/modes.js`. | ||
You can modify existing modules as well from other files | ||
|
||
### Adding Audio (sfxlist.json) | ||
```json | ||
{ | ||
{ | ||
"name": "<name used in code>", | ||
"path": "assets/sfx/<file path / name>.<ext>" | ||
} | ||
} | ||
``` | ||
Use with `this.game.sounds.playSound(<name>)` | ||
|
||
|
||
## Types for PIXIjs | ||
Workaround to use types when using pixijs imported through script tag: | ||
- download [pixi.js.d.ts](https://github.com/pixijs/pixijs/releases) from pixijs repo and place file in /src | ||
- setup jsconfig.json to automatically detect pixi.js.d.ts for types | ||
|
||
```json | ||
{ | ||
"typeAcquisition": { | ||
"include": ["pixi.js.d.ts"] | ||
} | ||
} | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.