[READ-ONLY] Mirror of https://github.com/flo-bit/shadow-shmup. Fun and casual top-down, roguelike shoot 'em up browsergame with shadow elements and colorful neon effects flo-bit.dev/shadow-shmup/
browsergame pixijs rapier2d roguelike shoot-em-up typescript webgame
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #9 from flo-bit/main

change light colors

authored by

Florian and committed by
GitHub
(Jul 26, 2024, 6:16 PM +0200) ddd7ce67 ae8613da

+12 -5
+4
Readme.md
··· 72 72 - player size 73 73 - bullet count? 74 74 - bullet spread? 75 + - items stay longer 75 76 - lights 76 77 - make own light class and add to player 77 78 - enemies should be lit by light distance instead of player distance ··· 87 88 - [ ] 2x shooting distance 88 89 - [ ] shoot through enemies 89 90 - [ ] 50%, 100% health refill 91 + - [ ] items stay as long as powerup is active 92 + - [ ] item magnet 93 + - [ ] get all items 90 94 - [x] scale canvas so that it always shows a 1000x1000 area or something like that 91 95 - [ ] enemy upgrades (some enemies are upgraded every wave) 92 96 - damage
+2 -1
index.html
··· 160 160 </div> 161 161 162 162 <div id="wave" class="absolute inset-0 h-[100dhv] w-screen z-10 flex items-center justify-center hidden"> 163 - <div id="wave-text" class="text-6xl font-bold text-white">Wave</div> 163 + <div id="wave-text" class="text-8xl font-bold text-neutral-200">Wave</div> 164 + 164 165 </div> 165 166 </body> 166 167 </html>
+3 -3
src/enemy.ts
··· 319 319 super(game); 320 320 321 321 this.type = 2; 322 - this.speed = 3000; 322 + this.speed = 2000; 323 323 324 324 let position = { x: this.x, y: this.y }; 325 325 ··· 356 356 .RigidBodyDesc.dynamic() 357 357 .setTranslation(this.x, this.y) 358 358 .lockRotations() 359 - .setLinearDamping(0.3); 359 + .setLinearDamping(1); 360 360 this.rigidBody = this.game.world.createRigidBody(rigidBodyDesc); 361 361 362 362 const colliderDesc = RAPIER() ··· 367 367 ) 368 368 .setActiveEvents(RAPIER().ActiveEvents.COLLISION_EVENTS) 369 369 .setCollisionGroups(0x00020007) 370 - .setDensity(5); 370 + .setDensity(1); 371 371 372 372 this.game.world.createCollider(colliderDesc, this.rigidBody); 373 373
+3 -1
src/obstacle-manager.ts
··· 195 195 const x = cellX * CELL_SIZE + rng() * CELL_SIZE; 196 196 const y = cellY * CELL_SIZE + rng() * CELL_SIZE; 197 197 198 + const color = titleColors[Math.floor(rng() * titleColors.length)]; 199 + 198 200 const light = this.game.lightManager.addLight({ 199 201 x, 200 202 y, 201 - color: 0xffffff * rng(), 203 + color: color, //0xffffff * rng(), 202 204 alpha: 0.05 + rng() * 0.15, 203 205 scale: 0.5 + rng() * 1 204 206 });