mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
some stuff done
This commit is contained in:
parent
63e015d82e
commit
5116d62fb6
4 changed files with 31 additions and 3 deletions
20
package-lock.json
generated
20
package-lock.json
generated
|
@ -15,6 +15,7 @@
|
||||||
"@pixi/constants": "~6.3.2",
|
"@pixi/constants": "~6.3.2",
|
||||||
"@pixi/core": "~6.3.2",
|
"@pixi/core": "~6.3.2",
|
||||||
"@pixi/display": "~6.3.2",
|
"@pixi/display": "~6.3.2",
|
||||||
|
"@pixi/graphics": "^6.3.2",
|
||||||
"@pixi/math": "~6.3.2",
|
"@pixi/math": "~6.3.2",
|
||||||
"@pixi/particle-emitter": "^5.0.7",
|
"@pixi/particle-emitter": "^5.0.7",
|
||||||
"@pixi/sprite": "~6.3.2",
|
"@pixi/sprite": "~6.3.2",
|
||||||
|
@ -1860,6 +1861,19 @@
|
||||||
"@pixi/utils": "6.3.2"
|
"@pixi/utils": "6.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@pixi/graphics": {
|
||||||
|
"version": "6.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pixi/graphics/-/graphics-6.3.2.tgz",
|
||||||
|
"integrity": "sha512-GaykoXJr0pV0e9TB1yOcgvJf9i/fIF/cgT+DnGz82uninWMo31aFJSvhLbZOcEPQRfdHXdFfUkQAAMTICAp7+Q==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@pixi/constants": "6.3.2",
|
||||||
|
"@pixi/core": "6.3.2",
|
||||||
|
"@pixi/display": "6.3.2",
|
||||||
|
"@pixi/math": "6.3.2",
|
||||||
|
"@pixi/sprite": "6.3.2",
|
||||||
|
"@pixi/utils": "6.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@pixi/math": {
|
"node_modules/@pixi/math": {
|
||||||
"version": "6.3.2",
|
"version": "6.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@pixi/math/-/math-6.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/@pixi/math/-/math-6.3.2.tgz",
|
||||||
|
@ -8486,6 +8500,12 @@
|
||||||
"integrity": "sha512-D+WiM0BcyPK91RYxl7TXXVNz/5lOGs8Q6jtCMcWgTHwCXxWPOHFnNZ4KPJZpUQ7me8Tl2u+c9hfB5Oh1+17r/Q==",
|
"integrity": "sha512-D+WiM0BcyPK91RYxl7TXXVNz/5lOGs8Q6jtCMcWgTHwCXxWPOHFnNZ4KPJZpUQ7me8Tl2u+c9hfB5Oh1+17r/Q==",
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
|
"@pixi/graphics": {
|
||||||
|
"version": "6.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@pixi/graphics/-/graphics-6.3.2.tgz",
|
||||||
|
"integrity": "sha512-GaykoXJr0pV0e9TB1yOcgvJf9i/fIF/cgT+DnGz82uninWMo31aFJSvhLbZOcEPQRfdHXdFfUkQAAMTICAp7+Q==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"@pixi/math": {
|
"@pixi/math": {
|
||||||
"version": "6.3.2",
|
"version": "6.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@pixi/math/-/math-6.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/@pixi/math/-/math-6.3.2.tgz",
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
"@pixi/constants": "~6.3.2",
|
"@pixi/constants": "~6.3.2",
|
||||||
"@pixi/core": "~6.3.2",
|
"@pixi/core": "~6.3.2",
|
||||||
"@pixi/display": "~6.3.2",
|
"@pixi/display": "~6.3.2",
|
||||||
|
"@pixi/graphics": "^6.3.2",
|
||||||
"@pixi/math": "~6.3.2",
|
"@pixi/math": "~6.3.2",
|
||||||
"@pixi/particle-emitter": "^5.0.7",
|
"@pixi/particle-emitter": "^5.0.7",
|
||||||
"@pixi/sprite": "~6.3.2",
|
"@pixi/sprite": "~6.3.2",
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import { jsx } from "features/feature";
|
import { jsx } from "features/feature";
|
||||||
import { createLayer } from "game/layers";
|
import { createLayer } from "game/layers";
|
||||||
|
import { Application } from "@pixi/app";
|
||||||
|
import { Graphics } from "@pixi/graphics";
|
||||||
|
|
||||||
const id = "elves";
|
const id = "elves";
|
||||||
|
|
||||||
|
@ -8,11 +10,16 @@ const day = 20;
|
||||||
const factory = createLayer(id, () => {
|
const factory = createLayer(id, () => {
|
||||||
const name = "The Factory";
|
const name = "The Factory";
|
||||||
const color = "grey";
|
const color = "grey";
|
||||||
|
const app = new Application();
|
||||||
|
const graphics = new Graphics();
|
||||||
|
graphics.beginFill(0xff0000);
|
||||||
|
graphics.drawRect(0, 0, 200, 100);
|
||||||
|
app.stage.addChild(graphics);
|
||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
day,
|
day,
|
||||||
color,
|
color,
|
||||||
display: jsx(() => <>testing testing 1 2 3</>)
|
display: jsx(() => <>{app.view}</>)
|
||||||
};
|
};
|
||||||
})
|
});
|
||||||
export default factory;
|
export default factory;
|
||||||
|
|
|
@ -333,7 +333,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
day: 20,
|
day: 20,
|
||||||
shouldNotify: false,
|
shouldNotify: false,
|
||||||
layer: "factory", // "presents"
|
layer: "factory", // "presents"
|
||||||
symbol: "",
|
symbol: wrappingPaperSymbol,
|
||||||
story: "",
|
story: "",
|
||||||
completedStory: ""
|
completedStory: ""
|
||||||
})),
|
})),
|
||||||
|
|
Loading…
Reference in a new issue