diff --git a/.gitignore b/.gitignore index 8dc4424d..fe93a06b 100755 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ build/ assets/ ucode/ !asm/assets/ +!mods/* # Linker file is automatically generated, so it should be ignored dkr.ld @@ -30,6 +31,6 @@ m2cfiles/ # Ignore batch and executable files. *.exe -*.bat +*.bat dkr_hot_reload.py -lastRomPath.txt +lastRomPath.txt diff --git a/mods/assets/examples/ComicFansFont/asset_textures_2d.meta.json b/mods/assets/examples/ComicFansFont/asset_textures_2d.meta.json new file mode 100644 index 00000000..110f60c5 --- /dev/null +++ b/mods/assets/examples/ComicFansFont/asset_textures_2d.meta.json @@ -0,0 +1,12 @@ +{ + "files": { + "order": [ + "ASSET_TEX2D_COMICFANS" + ], + "sections": { + "ASSET_TEX2D_COMICFANS": { + "filename": "comicfans.json" + } + } + } +} \ No newline at end of file diff --git a/mods/assets/examples/ComicFansFont/fonts/fonts.json b/mods/assets/examples/ComicFansFont/fonts/fonts.json new file mode 100644 index 00000000..03ef3a48 --- /dev/null +++ b/mods/assets/examples/ComicFansFont/fonts/fonts.json @@ -0,0 +1,8 @@ +{ + "fonts": { + "ASSET_FONTS_COMICFANS": "game_fonts/ComicFans.meta.json" + }, + "fonts-order": [ + "ASSET_FONTS_COMICFANS" + ] +} diff --git a/mods/assets/examples/ComicFansFont/fonts/game_fonts/ComicFans.meta.json b/mods/assets/examples/ComicFansFont/fonts/game_fonts/ComicFans.meta.json new file mode 100644 index 00000000..23225576 --- /dev/null +++ b/mods/assets/examples/ComicFansFont/fonts/game_fonts/ComicFans.meta.json @@ -0,0 +1,23 @@ +{ + "characters": { + "A": { + "char-width": 8, + "tex-index": 0, + "tex-size": { + "height": 8, + "width": 8 + }, + "uv": { + "u": 8, + "v": 8 + } + } + }, + "name": "ComicFans", + "special-character-width": 3, + "tab-width": 32, + "textures": [ + "ASSET_TEX2D_COMICFANS" + ], + "y-offset": 16 +} diff --git a/mods/assets/examples/ComicFansFont/meta.json b/mods/assets/examples/ComicFansFont/meta.json new file mode 100644 index 00000000..485e18c9 --- /dev/null +++ b/mods/assets/examples/ComicFansFont/meta.json @@ -0,0 +1,6 @@ +{ + "name": "Comic Fans Font", + "author" : "Example", + "revision": 3, + "description": "Font that was made by damieng. See: https://damieng.com/typography/zx-origins/comic-fans/" +} \ No newline at end of file diff --git a/mods/assets/examples/ComicFansFont/textures/2d/font/comicfans/comicfans.json b/mods/assets/examples/ComicFansFont/textures/2d/font/comicfans/comicfans.json new file mode 100644 index 00000000..34bcce5d --- /dev/null +++ b/mods/assets/examples/ComicFansFont/textures/2d/font/comicfans/comicfans.json @@ -0,0 +1,14 @@ +{ + "compressed": true, + "flags": { + "wrap-s": "Wrap", + "wrap-t": "Wrap" + }, + "format": "IA4", + "images": [ + "comicfans.png" + ], + "render-mode": "OPAQUE", + "type": "Texture", + "write-size": true +} diff --git a/mods/assets/examples/ComicFansFont/textures/2d/font/comicfans/comicfans.png b/mods/assets/examples/ComicFansFont/textures/2d/font/comicfans/comicfans.png new file mode 100644 index 00000000..323b98c1 Binary files /dev/null and b/mods/assets/examples/ComicFansFont/textures/2d/font/comicfans/comicfans.png differ diff --git a/mods/assets/order.json b/mods/assets/order.json new file mode 100644 index 00000000..afa549c5 --- /dev/null +++ b/mods/assets/order.json @@ -0,0 +1,3 @@ +{ + "order": [] +} \ No newline at end of file