New version

I have now released version 1.3.3 of Spaceships, which adds sound effects to the game. See the linked video for a demonstration.

If you’re using the Flatpak version, make sure you run flatpak run --socket=pulseaudio me.spaceships.spaceships or you will get a segmentation fault if you try and play. You can alternatively use a Flatpak permission manager like Flatseal and enable the corresponding option. I will fix this in a later release.

Compatibility

Version 1.3.3 is compatible with all other versions 1.3.x.

Sound effects

Spaceships now includes sound effects for many actions that happen in the world, such as the player firing bullets, and bullets hitting and killing other players. Here is the complete list of sound effects, with their corresponding filename in data/sounds/:

  • ammo_crate.wav: Collecting an ammo crate.
  • block_bullet.wav: Bullet hits a block.
  • block_player.wav: Player hits/slides with a block (looped).
  • damage.wav: Damage effect added.
  • forcefield.wav: Forcefield effect added.
  • hit.wav: Bullet hits (but doesn’t kill) player.
  • kill.wav: Player gets killed.
  • regen.wav: Regeneration effect added.
  • reload.wav: Reload effect added.
  • shot.wav: Player shoots.
  • speed.wav: Speed effect added.
  • teleportation.wav: Teleportation powerup collected.
  • thrust.wav: Player accelerates (looped).

These sound effects are played spatially with volume attenuation, which allows you to identify roughly where the sound effect was played in the world. Additionally I have implemented the Doppler effect to slightly speed up or slow down the sound effects based on the positions and velocities of the camera and sound source.

Changelog

Major changes

  • Sound effects.

Minor changes

  • Added events.player_ammo_crate_spawn_separation_radius (default to 4) to the server config schema to prevent players and ammo crates spawning too close next to each other.
  • Preventing the text input (chat or commands) from being opened if the HUD is closed. This prevents the player from wondering why they cannot move while the text input is opened and hidden.
  • Increased GUI scroll speed.

Bug fixes

  • Initial lag spikes when joining a server no longer produce visual bugs.