diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 000000000..460f78200 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 diff --git a/bit-planes/index37ad.js b/bit-planes/index37ad.js index 66e11d029..b5ec1b73f 100644 --- a/bit-planes/index37ad.js +++ b/bit-planes/index37ad.js @@ -282,6 +282,8 @@ ], missile: new L(t(67), 17, 9), missileFire: [new L(t(68), 5, 6), new L(t(69), 5, 5)], + bomb: new L(t(69), 6, 6), + bombDrop: [new L(t(70), 5, 3), new L(t(69), 5, 5)], barn: new L(t(70), 100, 42, 2), forest: new L(t(71), 1367, 392, 1, 1), forest2: new L(t(72), 1367, 392, 1, 1), @@ -404,6 +406,8 @@ (this.life = e.h), (this.missiles = e.i), (this.maxMissiles = e.i), + (this.maxbombs = e.i), + (this.bombs = e.i), (this.ammo = 0), (this.maxAmmo = 0), (this.gunReloading = !1), @@ -425,6 +429,7 @@ { v: Object(u.u)(15, -2), r: 3 }, { v: Object(u.u)(14, -5), r: 4 }, { v: Object(u.u)(-9, 8), r: 2.5 }, + ]); } get player() { @@ -434,7 +439,7 @@ (this._player = M), (this.team = null == M ? void 0 : M.team); } catapultPilot() { - (this._player = void 0), (this.thrust = 0), (this.elevator = 0), (this.sprite = N(this.color, !1)); + (this._player = void 0), (this.thrust = 2), (this.elevator = 0), (this.sprite = N(this.color, !1)); } } }, @@ -1091,6 +1096,27 @@ function o(M, j) { for (let t of M) t instanceof I.a ? c(t, j) : t instanceof e.a && T(t, j); } + function r(M, j, t = !1) { + if (M.has(j)) { + if (j.bombs > 0) { + j.bombs--; + const i = (function (M) { + const j = new e.a(M); + return ( + j.move(Object(y.a)(M.position, Object(y.e)(M.normal, -12))), + (j.angle = -45), + (j.velocity = Object(y.a)(Object(y.c)(M.velocity), Object(y.e)(M.normal, -20))), + (j.forward = Object(y.c)(M.forward)), + (j.normal = Object(y.c)(M.normal)), + j + ); + })(j); + j.timeout(N.n, () => (i.justDeployed = !1)), Object(L.a)(M, i, t), M.add(i); + } + + }, 10 * N.n)); + } + } function c(M, j) { const t = Object(y.h)(M.velocity); let L = 1 - t / (N.l * N.d);