Compare commits

..

No commits in common. "fbb2d290e3fe553bfe01d0296cda8b94c8b805e9" and "b6f1bdbbcdb3e2cc06439f67c107e006c4ca7292" have entirely different histories.

4 changed files with 1516 additions and 385 deletions

View File

@ -2,51 +2,18 @@ K1;56759edb-78b4-4108-b932-3cc5759b3921;O1;net.drinkingtea.nostalgia.gfx.Palette
"colorNames" :
[
"Transparent",
"Shoe",
"Black",
"Skin",
"Brown",
"Red",
"Trousers",
"Backpack"
"White"
],
"pages" :
[
{
"colors" :
[
{
"b" : 5,
"g" : 5,
"r" : 5
},
{},
{
"b" : 31,
"g" : 31,
"r" : 31
},
{},
{
"b" : 20,
"g" : 20,
"r" : 23
},
{
"b" : 8,
"g" : 8,
"r" : 10
},
{
"g" : 6,
"r" : 24
},
{
"b" : 10,
"g" : 5
},
{
"b" : 20,
"g" : 15
}
],
"name" : "Day"
@ -54,38 +21,11 @@ K1;56759edb-78b4-4108-b932-3cc5759b3921;O1;net.drinkingtea.nostalgia.gfx.Palette
{
"colors" :
[
{
"b" : 5,
"g" : 5,
"r" : 5
},
{},
{
"b" : 31,
"g" : 31,
"r" : 31
},
{},
{
"b" : 20,
"g" : 20,
"r" : 23
},
{
"b" : 8,
"g" : 8,
"r" : 10
},
{
"g" : 6,
"r" : 24
},
{
"b" : 10,
"g" : 5
},
{
"b" : 20,
"g" : 15
}
],
"name" : "Night"

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -32,27 +32,30 @@ static class: public studio::Module {
ox::Vector<ox::UPtr<studio::ItemTemplate>> itemTemplates(studio::Context&) const noexcept override {
ox::Vector<ox::UniquePtr<studio::ItemTemplate>> out;
// Person TileSheet
ngfx::TileSheetV5 ts;
ts.bpp = 4;
auto const addSheet = [&ts](
ngfx::TileSheetV5::SubSheet &ss,
ox::StringParam name,
int const cols,
int const rows) -> auto& {
return ss.subsheets.emplace_back(++ts.idIt, std::move(name), cols, rows);
};
auto const addSheetSet = [&ts, &addSheet](ox::StringParam name) {
auto &s = addSheet(ts.subsheet, std::move(name), -1, -1);
addSheet(s, "Still", 2, 3);
addSheet(s, "Step 1", 2, 3);
addSheet(s, "Step 2", 2, 3);
};
addSheetSet("Front");
addSheetSet("Back");
addSheetSet("Side");
out.emplace_back(ox::make<studio::ItemTemplateT<ngfx::TileSheetV5>>(
"Jasper World Person",
std::move(ts)));
{
ngfx::TileSheetV5 ts;
ts.bpp = 4;
auto const addSheet = [&ts](
ngfx::TileSheetV5::SubSheet &ss,
ox::StringParam name,
int const cols,
int const rows) -> auto& {
return ss.subsheets.emplace_back(++ts.idIt, std::move(name), cols, rows);
};
auto const addSheetSet = [&ts, &addSheet](ox::StringParam name) {
auto &s = addSheet(ts.subsheet, std::move(name), -1, -1);
addSheet(s, "Still", 2, 3);
addSheet(s, "Step 1", 2, 3);
addSheet(s, "Step 2", 2, 3);
};
addSheetSet("Front");
addSheetSet("Back");
addSheetSet("Left");
addSheetSet("Right");
out.emplace_back(ox::make<studio::ItemTemplateT<ngfx::TileSheetV5>>(
"Jasper World Person",
std::move(ts)));
}
return out;
}