add new entities. they still need new components as we add them
This commit is contained in:
parent
100bbecccb
commit
d5750294b1
13
src/entities/flag.png
Normal file
13
src/entities/flag.png
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/floor.js
Normal file
13
src/entities/floor.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/grass.js
Normal file
13
src/entities/grass.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/hedge.js
Normal file
13
src/entities/hedge.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/liquid.js
Normal file
13
src/entities/liquid.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/rock.js
Normal file
13
src/entities/rock.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wall.js
Normal file
13
src/entities/wall.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordBigBlue.js
Normal file
13
src/entities/wordBigBlue.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordFlag.js
Normal file
13
src/entities/wordFlag.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordIs.js
Normal file
13
src/entities/wordIs.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordKill.js
Normal file
13
src/entities/wordKill.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordLava.js
Normal file
13
src/entities/wordLava.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordPush.js
Normal file
13
src/entities/wordPush.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordRock.js
Normal file
13
src/entities/wordRock.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordSink.js
Normal file
13
src/entities/wordSink.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordStop.js
Normal file
13
src/entities/wordStop.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordWall.js
Normal file
13
src/entities/wordWall.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordWater.js
Normal file
13
src/entities/wordWater.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordWin.js
Normal file
13
src/entities/wordWin.js
Normal file
@ -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;
|
||||||
|
}
|
13
src/entities/wordYou.js
Normal file
13
src/entities/wordYou.js
Normal file
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user