diff --git a/.DS_Store b/.DS_Store index 2347260..6a7a2b0 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/js/index.js b/js/index.js index 241e3e3..a580807 100644 --- a/js/index.js +++ b/js/index.js @@ -234,6 +234,8 @@ const build = {         ${tech.tech[i].name} ${isCount}${tech.tech[i].description}` } else if (tech.tech[i].isLore) { text += `
  ${tech.tech[i].name} ${isCount}
${tech.tech[i].description}
` + } else if (tech.tech[i].isJunk) { + text += `
  ${tech.tech[i].name} ${isCount}
${tech.tech[i].description}
` } else { text += `
  ${tech.tech[i].name} ${isCount}
${tech.tech[i].description}
` } diff --git a/js/powerup.js b/js/powerup.js index 3165279..e9037b1 100644 --- a/js/powerup.js +++ b/js/powerup.js @@ -325,9 +325,10 @@ const powerUps = {
        ${tech.tech[choose].name} ${isCount}${tech.tech[choose].description}` - } else if (tech.tech[choose].isLore) { text += `
  ${tech.tech[choose].name} ${isCount}
${tech.tech[choose].description}
` + } else if (tech.tech[choose].isJunk) { + text += `
  ${tech.tech[choose].name} ${isCount}
${tech.tech[choose].description}
` } else { text += `
  ${tech.tech[choose].name} ${isCount}
${tech.tech[choose].description}
` } diff --git a/js/tech.js b/js/tech.js index 039a8c3..00dd0d5 100644 --- a/js/tech.js +++ b/js/tech.js @@ -711,7 +711,7 @@ const tech = { }, { name: "nail-bot", - description: "a bot fires nails at targets in line of sight", + description: "a bot fires nails at mobs in line of sight", maxCount: 9, count: 0, allowed() { @@ -750,7 +750,7 @@ const tech = { }, { name: "foam-bot", - description: "a bot fires foam at nearby targets", + description: "a bot fires foam at nearby mobs", maxCount: 9, count: 0, allowed() { @@ -1985,7 +1985,7 @@ const tech = { requires: "no research, and in the first 5 levels", effect() { level.difficultyDecrease(simulation.difficultyMode) - for (let i = 0; i < 160; i++) tech.tech.push(tech.junk[Math.floor(Math.random() * tech.junk.length)]) + for (let i = 0; i < tech.junk.length; i++) tech.tech.push(tech.junk[i]) }, remove() {} }, @@ -2811,7 +2811,7 @@ const tech = { }, { name: "missile-bot", - description: "a bot fires missiles at far away targets", + description: "a bot fires missiles at far away mobs", isGunTech: true, maxCount: 1, count: 0, @@ -4169,6 +4169,29 @@ const tech = { // }, // remove() {} // }, + { + name: "inverted input", + description: "left input becomes right and up input becomes down", + maxCount: 9, + count: 0, + isNonRefundable: true, + isCustomHide: true, + isJunk: true, + allowed() { + return true + }, + requires: "", + effect() { + const left = input.key.left + input.key.left = input.key.right + input.key.right = left + + const up = input.key.up + input.key.up = input.key.down + input.key.down = up + }, + remove() {} + }, { name: "Sleipnir", description: "grow more legs", diff --git a/style.css b/style.css index e55a7ba..5a0f003 100644 --- a/style.css +++ b/style.css @@ -635,6 +635,22 @@ summary { box-shadow: 0 0 0 3px #025; } +.junk { + background: hsl(255, 46%, 72%); + border-radius: 25%; + /* animation: 3s linear infinite alternate pulse; */ +} + +@keyframes pulse { + 0% { + border-radius: 0%; + } + + 100% { + border-radius: 50%; + } +} + /* .circle-grid-gun { width: 10px; height: 10px; diff --git a/todo.txt b/todo.txt index e5888aa..bd3010d 100644 --- a/todo.txt +++ b/todo.txt @@ -41,11 +41,8 @@ add back in gamepad support mechanic: gain damage when there are fewer bullets -mechanic: untested tech - negative effect (one time effects are better to avoid code clutter) - change the player draw to some of the dumb stuff in discord console - convert your bots to research (requires you to have some bots) - your bots are changed to random bots +junk tech + switch input keys: left-right, up-down? rename intro level to something lore related