Commit graph

16 commits

Author SHA1 Message Date
Andrei Alexeyev
117eafd482
wip stage5 stuff; some new sounds 2017-11-12 19:16:15 +02:00
Andrei Alexeyev
d8389ea550
audio: play_sound* api change
replaced play_sound_cooldown with play_sound_ex. it now has a new
parameter: bool replace. if true, the sound will interrupt the previous
instance of itself being played, if any. if used many times in
succession, this effectively allows one to "restart" a sound instead of
letting many instances overlap. this sounds better in some instances,
and avoids flooding the channels.

this is also implicitly true for play_ui_sound now.
2017-10-29 03:30:05 +03:00
Andrei Alexeyev
ffe954f006
WIP stage 3 revamp 2017-10-16 00:07:09 +03:00
Andrei Alexeyev
ff26d13496
fade bgm on stage transition 2017-10-08 09:01:52 +03:00
Andrei Alexeyev
4972f590aa
improve sfx management
pause/restore all game sounds when entering/leaving an ingame menu
stop all game sounds when the stage loop is over
2017-10-08 08:15:43 +03:00
Andrei Alexeyev
642c4d05fb
disable the save_bgm/restore_bgm code for now 2017-10-03 09:09:24 +03:00
Andrei Alexeyev
fb404ef7e9
stop looping sounds when the game is paused 2017-10-03 09:03:07 +03:00
Andrei Alexeyev
ee753f053e
sfx normalization
normalized sound effects, converted them to ogg vorbis. there's now a
global config file sfx/volumes.conf, where the volumes of sound effects
can be adjusted. the default volume is 100, the max is 128.
2017-10-02 09:02:06 +03:00
Andrei Alexeyev
4f328e7cd4
stage1 auditory and visual tweaks 2017-10-01 18:47:10 +03:00
laochailan
683e0b3274
looping sounds and stage1 shot soundification 2017-09-30 19:33:07 +02:00
laochailan
03a2426012
update to use #pragma once 2017-09-27 14:14:53 +02:00
Andrei "Akari" Alexeyev
7c9e54a71d
update copyright and credits 2017-09-12 04:28:15 +03:00
Andrei "Akari" Alexeyev
02c921f5e1 restart the bgm when restarting a stage (unless it's a spellstage) 2017-03-06 12:29:20 +02:00
Andrei "Akari" Alexeyev
ca16c30966 large refactoring WIP
windows & osx untested
bgm untested
too many changes to comment on
2017-03-05 00:39:17 +02:00
laochailan
3861a69d62 menus - the beginning
implemented:
[x] ingame menu
[x] main menu
[x] menus
[x] fancy fades
[x] structural earthquake
[ ] the rest of the main menu (difficulty/char select)
2011-06-13 18:48:36 +02:00
laochailan
88a77b3fb8 sound system added
load_textures() was changed to load_resources() and will now load all sounds in sfx/. playing via play_sound(char *name) (or the pointer variant). positional audio is not implemented yet.

and some other changes.
2011-04-02 12:14:37 +02:00