summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphat_sumo <ethanjpayne1@gmail.com>2022-04-01 17:43:56 -0600
committerphat_sumo <ethanjpayne1@gmail.com>2022-04-01 17:43:56 -0600
commitd5750294b1169e85cc1171aa85b2ea522656d8b2 (patch)
treed7500faa40a2641703ff59208a8afdd31937b844
parent100bbecccbf7b5e09ee60d1c2934df09006344f1 (diff)
downloadbbiy-d5750294b1169e85cc1171aa85b2ea522656d8b2.tar.gz
bbiy-d5750294b1169e85cc1171aa85b2ea522656d8b2.zip
add new entities. they still need new components as we add them
-rw-r--r--src/entities/flag.png13
-rw-r--r--src/entities/floor.js13
-rw-r--r--src/entities/grass.js13
-rw-r--r--src/entities/hedge.js13
-rw-r--r--src/entities/liquid.js13
-rw-r--r--src/entities/rock.js13
-rw-r--r--src/entities/wall.js13
-rw-r--r--src/entities/wordBigBlue.js13
-rw-r--r--src/entities/wordFlag.js13
-rw-r--r--src/entities/wordIs.js13
-rw-r--r--src/entities/wordKill.js13
-rw-r--r--src/entities/wordLava.js13
-rw-r--r--src/entities/wordPush.js13
-rw-r--r--src/entities/wordRock.js13
-rw-r--r--src/entities/wordSink.js13
-rw-r--r--src/entities/wordStop.js13
-rw-r--r--src/entities/wordWall.js13
-rw-r--r--src/entities/wordWater.js13
-rw-r--r--src/entities/wordWin.js13
-rw-r--r--src/entities/wordYou.js13
20 files changed, 260 insertions, 0 deletions
diff --git a/src/entities/flag.png b/src/entities/flag.png
new file mode 100644
index 0000000..b7115d2
--- /dev/null
+++ b/src/entities/flag.png
@@ -0,0 +1,13 @@
+game.createFlag = () => {
+ const flag = game.Entity();
+ flag.addComponent(game.components.Position({x: 0, y: 0}));
+ flag.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ flag.sprite = game.graphics.Sprite({
+ image: game.assets.flag,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return flag;
+}
diff --git a/src/entities/floor.js b/src/entities/floor.js
new file mode 100644
index 0000000..9c2d504
--- /dev/null
+++ b/src/entities/floor.js
@@ -0,0 +1,13 @@
+game.createFloor = () => {
+ const floor = game.Entity();
+ floor.addComponent(game.components.Position({x: 0, y: 0}));
+ floor.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ floor.sprite = game.graphics.Sprite({
+ image: game.assets.floor,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return floor;
+}
diff --git a/src/entities/grass.js b/src/entities/grass.js
new file mode 100644
index 0000000..7451476
--- /dev/null
+++ b/src/entities/grass.js
@@ -0,0 +1,13 @@
+game.createGrass = () => {
+ const grass = game.Entity();
+ grass.addComponent(game.components.Position({x: 0, y: 0}));
+ grass.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ grass.sprite = game.graphics.Sprite({
+ image: game.assets.grass,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return grass;
+}
diff --git a/src/entities/hedge.js b/src/entities/hedge.js
new file mode 100644
index 0000000..5b4c362
--- /dev/null
+++ b/src/entities/hedge.js
@@ -0,0 +1,13 @@
+game.createHedge = () => {
+ const hedge = game.Entity();
+ hedge.addComponent(game.components.Position({x: 0, y: 0}));
+ hedge.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ hedge.sprite = game.graphics.Sprite({
+ image: game.assets.hedge,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return hedge;
+}
diff --git a/src/entities/liquid.js b/src/entities/liquid.js
new file mode 100644
index 0000000..d912ec9
--- /dev/null
+++ b/src/entities/liquid.js
@@ -0,0 +1,13 @@
+game.createLiquid = () => {
+ const liquid = game.Entity();
+ liquid.addComponent(game.components.Position({x: 0, y: 0}));
+ liquid.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ liquid.sprite = game.graphics.Sprite({
+ image: game.assets.liquid,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return liquid;
+}
diff --git a/src/entities/rock.js b/src/entities/rock.js
new file mode 100644
index 0000000..fe9f809
--- /dev/null
+++ b/src/entities/rock.js
@@ -0,0 +1,13 @@
+game.createRock = () => {
+ const rock = game.Entity();
+ rock.addComponent(game.components.Position({x: 0, y: 0}));
+ rock.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ rock.sprite = game.graphics.Sprite({
+ image: game.assets.rock,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return rock;
+}
diff --git a/src/entities/wall.js b/src/entities/wall.js
new file mode 100644
index 0000000..55226d0
--- /dev/null
+++ b/src/entities/wall.js
@@ -0,0 +1,13 @@
+game.createWall = () => {
+ const wall = game.Entity();
+ wall.addComponent(game.components.Position({x: 0, y: 0}));
+ wall.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wall.sprite = game.graphics.Sprite({
+ image: game.assets.wall,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wall;
+}
diff --git a/src/entities/wordBigBlue.js b/src/entities/wordBigBlue.js
new file mode 100644
index 0000000..c94fa19
--- /dev/null
+++ b/src/entities/wordBigBlue.js
@@ -0,0 +1,13 @@
+game.createWordBigBlue = () => {
+ const wordBigBlue = game.Entity();
+ wordBigBlue.addComponent(game.components.Position({x: 0, y: 0}));
+ wordBigBlue.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordBigBlue.sprite = game.graphics.Sprite({
+ image: game.assets.wordBigBlue,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordBigBlue;
+}
diff --git a/src/entities/wordFlag.js b/src/entities/wordFlag.js
new file mode 100644
index 0000000..da66406
--- /dev/null
+++ b/src/entities/wordFlag.js
@@ -0,0 +1,13 @@
+game.createWordFlag = () => {
+ const wordFlag = game.Entity();
+ wordFlag.addComponent(game.components.Position({x: 0, y: 0}));
+ wordFlag.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordFlag.sprite = game.graphics.Sprite({
+ image: game.assets.wordFlag,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordFlag;
+}
diff --git a/src/entities/wordIs.js b/src/entities/wordIs.js
new file mode 100644
index 0000000..dff0819
--- /dev/null
+++ b/src/entities/wordIs.js
@@ -0,0 +1,13 @@
+game.createWordIs = () => {
+ const wordIs = game.Entity();
+ wordIs.addComponent(game.components.Position({x: 0, y: 0}));
+ wordIs.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordIs.sprite = game.graphics.Sprite({
+ image: game.assets.wordIs,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordIs;
+}
diff --git a/src/entities/wordKill.js b/src/entities/wordKill.js
new file mode 100644
index 0000000..a1a19af
--- /dev/null
+++ b/src/entities/wordKill.js
@@ -0,0 +1,13 @@
+game.createWordKill = () => {
+ const wordKill = game.Entity();
+ wordKill.addComponent(game.components.Position({x: 0, y: 0}));
+ wordKill.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordKill.sprite = game.graphics.Sprite({
+ image: game.assets.wordKill,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordKill;
+}
diff --git a/src/entities/wordLava.js b/src/entities/wordLava.js
new file mode 100644
index 0000000..e1ad242
--- /dev/null
+++ b/src/entities/wordLava.js
@@ -0,0 +1,13 @@
+game.createWordLava = () => {
+ const wordLava = game.Entity();
+ wordLava.addComponent(game.components.Position({x: 0, y: 0}));
+ wordLava.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordLava.sprite = game.graphics.Sprite({
+ image: game.assets.wordLava,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordLava;
+}
diff --git a/src/entities/wordPush.js b/src/entities/wordPush.js
new file mode 100644
index 0000000..aa24d46
--- /dev/null
+++ b/src/entities/wordPush.js
@@ -0,0 +1,13 @@
+game.createWordPush = () => {
+ const wordPush = game.Entity();
+ wordPush.addComponent(game.components.Position({x: 0, y: 0}));
+ wordPush.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordPush.sprite = game.graphics.Sprite({
+ image: game.assets.wordPush,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordPush;
+}
diff --git a/src/entities/wordRock.js b/src/entities/wordRock.js
new file mode 100644
index 0000000..2e698b3
--- /dev/null
+++ b/src/entities/wordRock.js
@@ -0,0 +1,13 @@
+game.createWordRock = () => {
+ const wordRock = game.Entity();
+ wordRock.addComponent(game.components.Position({x: 0, y: 0}));
+ wordRock.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordRock.sprite = game.graphics.Sprite({
+ image: game.assets.wordRock,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordRock;
+}
diff --git a/src/entities/wordSink.js b/src/entities/wordSink.js
new file mode 100644
index 0000000..4cec615
--- /dev/null
+++ b/src/entities/wordSink.js
@@ -0,0 +1,13 @@
+game.createWordSink = () => {
+ const wordSink = game.Entity();
+ wordSink.addComponent(game.components.Position({x: 0, y: 0}));
+ wordSink.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordSink.sprite = game.graphics.Sprite({
+ image: game.assets.wordSink,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordSink;
+}
diff --git a/src/entities/wordStop.js b/src/entities/wordStop.js
new file mode 100644
index 0000000..0d8aeea
--- /dev/null
+++ b/src/entities/wordStop.js
@@ -0,0 +1,13 @@
+game.createWordStop = () => {
+ const wordStop = game.Entity();
+ wordStop.addComponent(game.components.Position({x: 0, y: 0}));
+ wordStop.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordStop.sprite = game.graphics.Sprite({
+ image: game.assets.wordStop,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordStop;
+}
diff --git a/src/entities/wordWall.js b/src/entities/wordWall.js
new file mode 100644
index 0000000..b973933
--- /dev/null
+++ b/src/entities/wordWall.js
@@ -0,0 +1,13 @@
+game.createWordWall = () => {
+ const wordWall = game.Entity();
+ wordWall.addComponent(game.components.Position({x: 0, y: 0}));
+ wordWall.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordWall.sprite = game.graphics.Sprite({
+ image: game.assets.wordWall,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordWall;
+}
diff --git a/src/entities/wordWater.js b/src/entities/wordWater.js
new file mode 100644
index 0000000..b26dc57
--- /dev/null
+++ b/src/entities/wordWater.js
@@ -0,0 +1,13 @@
+game.createWordWater = () => {
+ const wordWater = game.Entity();
+ wordWater.addComponent(game.components.Position({x: 0, y: 0}));
+ wordWater.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordWater.sprite = game.graphics.Sprite({
+ image: game.assets.wordWater,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordWater;
+}
diff --git a/src/entities/wordWin.js b/src/entities/wordWin.js
new file mode 100644
index 0000000..1a4f233
--- /dev/null
+++ b/src/entities/wordWin.js
@@ -0,0 +1,13 @@
+game.createWordWin = () => {
+ const wordWin = game.Entity();
+ wordWin.addComponent(game.components.Position({x: 0, y: 0}));
+ wordWin.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordWin.sprite = game.graphics.Sprite({
+ image: game.assets.wordWin,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordWin;
+}
diff --git a/src/entities/wordYou.js b/src/entities/wordYou.js
new file mode 100644
index 0000000..8dcf587
--- /dev/null
+++ b/src/entities/wordYou.js
@@ -0,0 +1,13 @@
+game.createWordYou = () => {
+ const wordYou = game.Entity();
+ wordYou.addComponent(game.components.Position({x: 0, y: 0}));
+ wordYou.addComponent(game.components.Appearance({rot: 0, width: 100, height: 100}));
+ wordYou.sprite = game.graphics.Sprite({
+ image: game.assets.wordYou,
+ spriteHeight: 24,
+ spriteWidth: 24,
+ numFrames: 3,
+ timePerFrame: 100,
+ });
+ return wordYou;
+}