diff --git a/public/stages/stage-1.json b/public/stages/stage-1.json new file mode 100644 index 0000000..67f4efc --- /dev/null +++ b/public/stages/stage-1.json @@ -0,0 +1,20 @@ +{ + "name": "1", + "difficulty": 1, + "map": [ + "X X X X X X X X X X X X X ", + "X Bf X Bf X Bf X Bf X Bf X Bf X ", + "X Bf X Bf X Bf X Bf X Bf X Bf X ", + "X Bf X Bf X Bf Tf Bf X Bf X Bf X ", + "X Bf X Bf X B3 X B3 X Bf X Bf X ", + "X B3 X B3 X Bc X Bc X B3 X B3 X ", + "Bc X Bc Bc X B3 X B3 X Bc Bc X Bc ", + "T3 X B3 B3 X Bc X Bc X B3 B3 X T3 ", + "X Bc X Bc X Bf Bf Bf X Bc X Bc X ", + "X Bf X Bf X Bf X Bf X Bf X Bf X ", + "X Bf X Bf X B3 X B3 X Bf X Bf X ", + "X Bf X Bf X B8 Bc B4 X Bf X Bf X ", + "X X X X X Ba E B5 X X X X X " + ], + "bots": ["18*basic", "2*fast"] + } \ No newline at end of file diff --git a/src/Blocks/block.js b/src/Blocks/block.js new file mode 100644 index 0000000..78e0633 --- /dev/null +++ b/src/Blocks/block.js @@ -0,0 +1,20 @@ +class Block { + constructor(width, height, xBox, yBox, wBox, hBox, tile) { + this._width = width; + this._height = height; + this._xBox = xBox; + this._yBox = yBox; + this._wBox = wBox; + this._hBox = hBox; + this._tile = tile; + } + + + draw(ctx, x, y){ + ctx.drawImage(tile, x, y); + } + + resolveAttack(){ + return; + } +} \ No newline at end of file diff --git a/src/Blocks/brick.js b/src/Blocks/brick.js new file mode 100644 index 0000000..110b690 --- /dev/null +++ b/src/Blocks/brick.js @@ -0,0 +1,7 @@ +class Brick extends Block { + constructor(width, height, xBox, yBox, wBox, hBox, tile) { + super(width, height, xBox, yBox, wBox, hBox, tile); + } + + +} \ No newline at end of file diff --git a/src/Blocks/eagle.js b/src/Blocks/eagle.js new file mode 100644 index 0000000..6c3b10d --- /dev/null +++ b/src/Blocks/eagle.js @@ -0,0 +1,7 @@ +class Eagle extends Block { + constructor(width, height, xBox, yBox, wBox, hBox, tile) { + super(width, height, xBox, yBox, wBox, hBox, tile); + } + + +} \ No newline at end of file diff --git a/src/Blocks/iron.js b/src/Blocks/iron.js new file mode 100644 index 0000000..7380c0c --- /dev/null +++ b/src/Blocks/iron.js @@ -0,0 +1,7 @@ +class Iron extends Block { + constructor(width, height, xBox, yBox, wBox, hBox, tile) { + super(width, height, xBox, yBox, wBox, hBox, tile); + } + + +} \ No newline at end of file diff --git a/src/Blocks/river.js b/src/Blocks/river.js new file mode 100644 index 0000000..92467ea --- /dev/null +++ b/src/Blocks/river.js @@ -0,0 +1,7 @@ +class River extends Block { + constructor(width, height, xBox, yBox, wBox, hBox, tile) { + super(width, height, xBox, yBox, wBox, hBox, tile); + } + + +} \ No newline at end of file