class PlayerSounds
Public Class Methods
respawn(object, camera)
click to toggle source
# File lib/entities/components/player_sounds.rb, line 3 def respawn(object, camera) volume, pan = Utils.volume_and_pan(object, camera) respawn_sound.play(object.object_id, pan, volume * 0.5) end
Private Class Methods
respawn_sound()
click to toggle source
# File lib/entities/components/player_sounds.rb, line 10 def respawn_sound @@respawn ||= StereoSample.new( $window, Utils.media_path('respawn.wav')) end