factory start

This commit is contained in:
circle-gon 2022-12-14 23:44:19 +00:00
parent 0e9d09fc6a
commit 8a56b41a3f
2 changed files with 22 additions and 2 deletions

View file

@ -0,0 +1,18 @@
import { jsx } from "features/feature";
import { createLayer } from "game/layers";
const id = "elves";
// what is the actual day?
const day = 20;
const factory = createLayer(id, () => {
const name = "The Factory";
const color = "grey";
return {
name,
day,
color,
display: jsx(() => <>testing testing 1 2 3</>)
};
})
export default factory;

View file

@ -30,6 +30,7 @@ import paper from "./layers/paper";
import plastic from "./layers/plastic";
import trees from "./layers/trees";
import workshop from "./layers/workshop";
import factory from "./layers/factory"
import wrappingPaper from "./layers/wrapping-paper";
import boxesSymbol from "./symbols/cardboardBox.png";
import clothSymbol from "./symbols/cloth.png";
@ -331,7 +332,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
createDay(() => ({
day: 20,
shouldNotify: false,
layer: null, // "presents"
layer: "factory", // "presents"
symbol: "",
story: "",
completedStory: ""
@ -441,7 +442,8 @@ export const getInitialLayers = (
plastic,
dyes,
wrappingPaper,
management
management,
factory
];
/**