From aec9ac073f374100f19f93f4fc5c7737100a8e3d Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 28 Dec 2014 18:22:18 +0000 Subject: [PATCH] Rusty Earth - support of PCM_RING sound git-svn-id: svn://kolibrios.org@5274 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/rstearth/build_en.bat | 1 + programs/games/rstearth/build_ru.bat | 1 + programs/games/rstearth/i_data.inc | 1 + programs/games/rstearth/load.inc | 5 + programs/games/rstearth/localization_eng.inc | 2 +- programs/games/rstearth/localization_rus.inc | 2 +- programs/games/rstearth/menu.inc | 2 + .../games/rstearth/resources/misc_menu.wav | Bin 0 -> 3268 bytes programs/games/rstearth/rstearth.asm | 10 +- programs/games/rstearth/snd_api.inc | 180 ++++++++- programs/games/rstearth/sound.inc | 382 +++++++++++------- programs/games/rstearth/u_data.inc | 17 +- 12 files changed, 441 insertions(+), 162 deletions(-) create mode 100644 programs/games/rstearth/resources/misc_menu.wav diff --git a/programs/games/rstearth/build_en.bat b/programs/games/rstearth/build_en.bat index 47f7459482..56877d2821 100644 --- a/programs/games/rstearth/build_en.bat +++ b/programs/games/rstearth/build_en.bat @@ -15,4 +15,5 @@ if not exist bin mkdir rstearth_eng_bin @copy resources\barret_8bpp.png rstearth_eng_bin\barret_8bpp.png @copy resources\walking_with_poseidon.wav rstearth_eng_bin\walking_with_poseidon.wav @copy resources\flaunch.wav rstearth_eng_bin\flaunch.wav +@copy resources\misc_menu.wav rstearth_eng_bin\misc_menu.wav @pause \ No newline at end of file diff --git a/programs/games/rstearth/build_ru.bat b/programs/games/rstearth/build_ru.bat index d53edd1326..573f721756 100644 --- a/programs/games/rstearth/build_ru.bat +++ b/programs/games/rstearth/build_ru.bat @@ -15,4 +15,5 @@ if not exist bin mkdir rstearth_rus_bin @copy resources\barret_8bpp.png rstearth_rus_bin\barret_8bpp.png @copy resources\walking_with_poseidon.wav rstearth_rus_bin\walking_with_poseidon.wav @copy resources\flaunch.wav rstearth_rus_bin\flaunch.wav +@copy resources\misc_menu.wav rstearth_rus_bin\misc_menu.wav @pause \ No newline at end of file diff --git a/programs/games/rstearth/i_data.inc b/programs/games/rstearth/i_data.inc index a105d1b9ae..d9eeba3ec8 100644 --- a/programs/games/rstearth/i_data.inc +++ b/programs/games/rstearth/i_data.inc @@ -254,6 +254,7 @@ npc_ifrit_icons_file_name db 'ifrit_8bpp.png',0 npc_barret_icons_file_name db 'barret_8bpp.png',0 background_music_file_name db 'walking_with_poseidon.wav',0 stone_kick_sound_file_name db 'flaunch.wav',0 +menu_sound_file_name db 'misc_menu.wav',0 ;--------------------------------------------------------------------- protagonist_route dd 2 protagonist_position: diff --git a/programs/games/rstearth/load.inc b/programs/games/rstearth/load.inc index a3a3dc39f3..1d5789ecb6 100644 --- a/programs/games/rstearth/load.inc +++ b/programs/games/rstearth/load.inc @@ -154,6 +154,11 @@ load_all_sound_files: mov ebx,stone_kick_sound_file_name call load_sound mov [stone_kick_sound],eax + +; load menu sound + mov ebx,menu_sound_file_name + call load_sound + mov [menu_sound],eax ret ;--------------------------------------------------------------------- \ No newline at end of file diff --git a/programs/games/rstearth/localization_eng.inc b/programs/games/rstearth/localization_eng.inc index 9e7de60d78..e9ef0225bd 100644 --- a/programs/games/rstearth/localization_eng.inc +++ b/programs/games/rstearth/localization_eng.inc @@ -1,6 +1,6 @@ ;--------------------------------------------------------------------- title: - db 'Rusty Earth (Prototype 1.7) 26.12.2014',0 + db 'Rusty Earth (Prototype 1.8) 28.12.2014',0 ;--------------------------------------------------------------------- menu_game_label: db 'GAME',0 diff --git a/programs/games/rstearth/localization_rus.inc b/programs/games/rstearth/localization_rus.inc index e96591a5c2..e008fdb74b 100644 --- a/programs/games/rstearth/localization_rus.inc +++ b/programs/games/rstearth/localization_rus.inc @@ -2,7 +2,7 @@ ; Code page - Cyrillic OEM866 ;--------------------------------------------------------------------- title: - db ' (⨯ 1.7) 26.12.2014',0 + db ' (⨯ 1.8) 28.12.2014',0 ;--------------------------------------------------------------------- menu_game_label: db '',0 diff --git a/programs/games/rstearth/menu.inc b/programs/games/rstearth/menu.inc index 621fa91280..0827bcf21c 100644 --- a/programs/games/rstearth/menu.inc +++ b/programs/games/rstearth/menu.inc @@ -1,6 +1,8 @@ ;--------------------------------------------------------------------- main_menu_start: mov [main_menu_pointer],0 + mov eax,[menu_sound] + mov [sounds_sample],eax ;-------------------------------------- .red: mov [menu_text_pointers],main_menu_text_pointers diff --git a/programs/games/rstearth/resources/misc_menu.wav b/programs/games/rstearth/resources/misc_menu.wav new file mode 100644 index 0000000000000000000000000000000000000000..812b8158f7e23dd0e99657eae30beaa04122061a GIT binary patch literal 3268 zcmeHHTToL+7>;l4wAG?E76{>v6iO0^pdeMLnkkBMEnXP4v`D=m26EvfIp^%2lao7_ zprtKd5G9OKZxpY!K&354P_Rf)Fv!J%h=`&cr;gKy?g=`h<6~d?z@9m~|Ngt*_y6EU!J`~?lY6a;Y>r{5^s*{pT>C$c@pAN(>%}^zgm(QpDIb4&iXQy z*^!X~u~-l;5^=IJ<(YEC1OHQ_D4K#00DxEkNxB9CCuqz5V+V}NqFT(AwrY1FB})+cd;7#_9Z&vwK5pO0d;jej{LS_KgS}U43K_gWnh@gc!3&kQ zk3SxF7K^#>&2Ufnq3`aHv#E?G)!6og@F2fP`IU+1&mLUP@^*X2%|EBHZ=lD1&7$qA=cDCc)P7y4{)H#ONj~-CY9WH z_}9dME#7O^Z1<(b%{`8mBZU;sf`$IRK`Tl-M@9x~zY3l+$2~^d+}D4rc^^&S5SOPd z5Q^89b&o%O=qz8#`+&<&{odZy-cW9U1W728!UFt4()ZjL9_~4~F3{bbA75<0?d+;A zqYzjlOI;Wdn^oa_@Mz3Yw8(SLhk={+UG8Y9vubgiB$dg6pa9{f12>0;I=)Hv^YjQ@ zTYkma-F~7FQA0wO_DPgv=i$EliDe{^iPNg3tI<1NB$&CRFFbflU9P_|kS61-G# zw5PB4JSp+>^^TR<+B)0o%XNT+5YJ0r7PkSM8XOrNIG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