silphscope 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +23 -0
- package/README.md +21 -0
- package/graphics-maps/fr-graphic-map.json +29080 -0
- package/main.js +9 -0
- package/mon-data/monData.json +4815 -0
- package/package.json +33 -0
- package/rom-maps/pokefirered.map +35107 -0
- package/src/graphics/decode-1bpp.js +15 -0
- package/src/graphics/decode-4bpp.js +15 -0
- package/src/graphics/decode-palette.js +17 -0
- package/src/graphics/extract.js +24 -0
- package/src/graphics/graphics-extractor-main.js +70 -0
- package/src/graphics/lz77-decompress.js +58 -0
- package/src/graphics/render-mon-foot.js +82 -0
- package/src/graphics/render-mon-icon.js +87 -0
- package/src/graphics/render-mons.js +104 -0
- package/src/mon-data-parser.js +113 -0
- package/src/rom-map-parser.js +85 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 chickenPoo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
This project contains code derived from YamaArashi's gbagfx tool code (2015), licensed under the MIT License.
|
|
2
|
+
|
|
3
|
+
Original MIT License:
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2015 YamaArashi
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
still a WIP however hopefully with some more work I can get this into a workable state...
|
|
2
|
+
|
|
3
|
+
Update:
|
|
4
|
+
|
|
5
|
+
so the project is semi-usable now you can download it as a npm package via:
|
|
6
|
+
|
|
7
|
+
npm install silphscope
|
|
8
|
+
(or `pnpm install silphscope` if you like pnpm like me ;] )
|
|
9
|
+
|
|
10
|
+
general use is something like this:
|
|
11
|
+
```JavaScript
|
|
12
|
+
import fs from "fs";
|
|
13
|
+
import { renderAllMons } from "silphscope"; // this is cool...
|
|
14
|
+
|
|
15
|
+
const rom = fs.readFileSync("pokefirered.gba"); // replace with path to your own firered rom
|
|
16
|
+
await renderAllMons(rom, {
|
|
17
|
+
outputDir: "./Assets/monImages", // must I explain?
|
|
18
|
+
icon: true, // you should probably leave these two alone
|
|
19
|
+
footprint: true // unless you don't want everything generated?
|
|
20
|
+
});
|
|
21
|
+
```
|