Clean the folder

This commit is contained in:
Shadow15510 2021-06-29 16:46:46 +02:00
parent c5e377cb39
commit 9c835445bb
24 changed files with 106 additions and 22 deletions

View File

@ -21,34 +21,34 @@ set(SOURCES
# Shared assets, fx-9860G-only assets and fx-CG-50-only assets
set(ASSETS
assets/plague.png
assets/planes.png
assets/bground.png
assets/mutations.png
assets/cursor.png
assets/title.png
assets/dna.png
assets/explosion.png
assets/mutations_table/abilities_1.txt
assets/mutations_table/abilities_2.txt
assets/mutations_table/abilities_3.txt
assets/mutations_table/symptoms_1.txt
assets/mutations_table/symptoms_2.txt
assets/mutations_table/symptoms_3.txt
assets/mutations_table/symptoms_4.txt
assets/mutations_table/transmissions_1.txt
assets/mutations_table/transmissions_2.txt
assets/mutations_table/transmissions_3.txt
)
set(ASSETS_fx
assets-fx/plague.png
assets-fx/planes.png
assets-fx/bground.png
assets-fx/mutations.png
assets-fx/cursor.png
assets-fx/title.png
assets-fx/dna.png
assets-fx/explosion.png
assets-fx/mutations_table/abilities_1.txt
assets-fx/mutations_table/abilities_2.txt
assets-fx/mutations_table/abilities_3.txt
assets-fx/mutations_table/symptoms_1.txt
assets-fx/mutations_table/symptoms_2.txt
assets-fx/mutations_table/symptoms_3.txt
assets-fx/mutations_table/symptoms_4.txt
assets-fx/mutations_table/transmissions_1.txt
assets-fx/mutations_table/transmissions_2.txt
assets-fx/mutations_table/transmissions_3.txt
)
set(ASSETS_cg
)
fxconv_declare_assets(${ASSETS} ${ASSETS_fx} ${ASSETS_cg} WITH_METADATA)
fxconv_declare_converters(assets/converters.py)
fxconv_declare_converters(assets-fx/converters.py)
add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}})

Binary file not shown.

BIN
assets-fx/bground.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

28
assets-fx/converters.py Normal file
View File

@ -0,0 +1,28 @@
import fxconv
def convert(input_name, output, params, target):
if params["custom-type"] == "mutation-table":
convert_mt(input_name, output, params, target)
return 0
elif params["custom-type"] == "mutation":
convert_md(input_name, output, params, target)
return 0
else:
return 1
def convert_mt(input_name, output, params, target):
with open(input_name, "r") as file:
# Extract informations
lines = file.read().splitlines()
mutation_matrix = [i.split(" | ") for i in lines]
# Encode information into bytes
data = bytes()
for i in mutation_matrix:
for j in i:
data += fxconv.u32(int(j))
fxconv.elf(data, output, "_" + params["name"], **target)

BIN
assets-fx/cursor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

BIN
assets-fx/dna.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 B

BIN
assets-fx/explosion.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,13 @@
*.png:
type: bopti-image
name_regex: (.*)\.png img_\1
plague.png:
type: font
name: font_plague
charset: print
grid.size: 5x5
grid.padding: 1
proportional: True

BIN
assets-fx/mutations.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1,4 @@
1 | 0 | 0 | 0 | 15 | 0 | 0 | 0
15 | 15 | 0 | 15 | 0 | 0 | 0 | 0
0 | 0 | 0 | 0 | 15 | 0 | 0 | 0
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0

View File

@ -0,0 +1,4 @@
1 | 0 | 0 | 0 | 15 | 0 | 0 | 0
2 | 15 | 0 | 3 | 0 | 0 | 0 | 0
0 | 0 | 0 | 0 | 15 | 0 | 0 | 0
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0

View File

@ -0,0 +1,4 @@
1 | 0 | 0 | 0 | 6 | 0 | 0 | 0
2 | 5 | 0 | 3 | 0 | 0 | 0 | 0
0 | 0 | 0 | 0 | 4 | 0 | 0 | 0
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0

View File

@ -0,0 +1,3 @@
*.txt:
custom-type: mutation-table
name_regex: (.*)\.txt mt_\1

View File

@ -0,0 +1,4 @@
1 | 15 | 15 | 15 | 3 | 0 | 0 | 0
0 | 0 | 15 | 15 | 0 | 0 | 0 | 0
0 | 0 | 15 | 0 | 15 | 0 | 0 | 0
0 | 10 | 15 | 6 | 15 | 15 | 0 | 0

View File

@ -0,0 +1,4 @@
1 | 2 | 15 | 4 | 3 | 0 | 0 | 0
0 | 0 | 15 | 15 | 0 | 0 | 0 | 0
0 | 0 | 15 | 0 | 15 | 0 | 0 | 0
0 | 10 | 7 | 6 | 9 | 15 | 0 | 0

View File

@ -0,0 +1,4 @@
1 | 2 | 5 | 4 | 3 | 0 | 0 | 0
0 | 0 | 15 | 15 | 0 | 0 | 0 | 0
0 | 0 | 8 | 0 | 15 | 0 | 0 | 0
0 | 10 | 7 | 6 | 9 | 11 | 0 | 0

View File

@ -0,0 +1,4 @@
1 | 2 | 5 | 4 | 3 | 0 | 0 | 0
0 | 0 | 14 | 13 | 0 | 0 | 0 | 0
0 | 0 | 8 | 0 | 12 | 0 | 0 | 0
0 | 10 | 7 | 6 | 9 | 11 | 0 | 0

View File

@ -0,0 +1,4 @@
1 | 15 | 15 | 0 | 15 | 5 | 0 | 0
0 | 0 | 0 | 15 | 0 | 0 | 0 | 11
9 | 15 | 0 | 0 | 0 | 0 | 0 | 15
0 | 0 | 0 | 7 | 15 | 0 | 0 | 15

View File

@ -0,0 +1,4 @@
1 | 2 | 15 | 0 | 15 | 5 | 0 | 0
0 | 0 | 0 | 15 | 0 | 0 | 0 | 11
9 | 10 | 0 | 0 | 0 | 0 | 0 | 12
0 | 0 | 0 | 7 | 8 | 0 | 0 | 15

View File

@ -0,0 +1,4 @@
1 | 2 | 3 | 0 | 6 | 5 | 0 | 0
0 | 0 | 0 | 4 | 0 | 0 | 0 | 11
9 | 10 | 0 | 0 | 0 | 0 | 0 | 12
0 | 0 | 0 | 7 | 8 | 0 | 0 | 13

BIN
assets-fx/plague.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
assets-fx/planes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
assets-fx/title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -1,6 +1,6 @@
/*
Project name ......: Plague
Version ...........: 1.3.8
Version ...........: 1.3.9
Last modification .: 8 June 2021
code and assets provided with licence :
@ -20,7 +20,7 @@
#include "mutation_engine.h"
#include "save.h"
const char *VERSION = "1.3.8";
const char *VERSION = "1.3.9";
// title_screen : display the title screen
static void title_screen(void);