[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.

stuff

Florian (Jul 31, 2024, 2:35 PM +0200) 1b417713 cb54bc2d

+18 -1
public/coin.mp3

This is a binary file and will not be displayed.

public/impact.mp3

This is a binary file and will not be displayed.

public/impact2.mp3

This is a binary file and will not be displayed.

public/impact3.mp3

This is a binary file and will not be displayed.

public/impact4.mp3

This is a binary file and will not be displayed.

public/shmup-coop.mp3

This is a binary file and will not be displayed.

public/shmup-solo.mp3

This is a binary file and will not be displayed.

+15
src/app.ts
··· 92 92 }); 93 93 sound.add('music', { url: './music.mp3', loop: true, volume: 0.3 }); 94 94 sound.add('laser', { url: './laser.mp3', volume: 0.1 }); 95 + 96 + sound.add('impact', { url: './impact2.mp3', volume: 0.5 }); 97 + sound.add('hit', { url: './impact4.mp3', volume: 0.08 }); 98 + 99 + sound.add('shmup-solo', { url: './shmup-solo.mp3', volume: 0.5 }); 100 + sound.add('shmup-coop', { url: './shmup-coop.mp3', volume: 0.5 }); 101 + sound.add('coin', { url: './coin.mp3', volume: 0.1 }); 95 102 } 96 103 97 104 async setupPhysicsWorld() { ··· 242 249 this.startMusic(); 243 250 244 251 this.playingTime = 0; 252 + 253 + sound.play('shmup-solo'); 245 254 }); 246 255 247 256 const playCoopButton = document.getElementById('play-coop'); ··· 256 265 this.startMusic(); 257 266 258 267 this.playingTime = 0; 268 + 269 + sound.play('shmup-coop'); 259 270 }); 260 271 } 261 272 ··· 331 342 332 343 player.takeDamage(projectile.damage); 333 344 projectile.destroy(); 345 + 346 + sound.play('impact'); 334 347 } 335 348 336 349 if (player && item) { 337 350 item.pickup(player); 351 + 352 + // sound.play('coin'); 338 353 } 339 354 340 355 if (projectile) {
+3 -1
src/enemy.ts
··· 6 6 import Player from './player'; 7 7 import { GunWeapon } from './weapons/gun'; 8 8 import { Projectile } from './projectile'; 9 - import { Light } from './light'; 9 + import { sound } from '@pixi/sound'; 10 10 11 11 interface PlayerHit { 12 12 hitPlayer?(player: Player): void; ··· 280 280 if (this.health <= 0) { 281 281 this.destroy(); 282 282 } 283 + 284 + sound.play('hit'); 283 285 } 284 286 } 285 287