Commit graph

37 commits

Author SHA1 Message Date
lambertjamesd 92056d5e4f
Merge pull request #384 from westonCoder/add-ambient-sound
Fix Save Load Current Sound Problem
2023-10-27 08:25:59 -06:00
westonCoder 282a4befce Fix Save Load Current Sound Problem
Fixes #382

- to alleviate the above issue I saved the current sound from each channel in the cutscene runner and serialize r/w appropriately.
- also made a new channel for Ambient Sounds called CH_AMBIENT. there are now 3 total channels CH_GLADOS, CH_MUSIC, and CH_AMBIENT

the only issue that is remaining is because we are relying on cutscene runner to que up the ambient sounds, the ambient sounds dont start until a cutscene starts on a level. this could be alleviated by making a trigger in the starting elevator of each level that simply triggers the ambient sound to play.
2023-10-26 21:47:31 -05:00
James Lambert 7e5a9ff495 Triangulate static vertices 2023-10-26 19:18:06 -06:00
westonCoder 4c5c23315b Added Ambient Sound to Game
- simply added the ambient_base sound to the game. its actually a very small sound file, so we could layer on other ambient sounds on top that are queued by different parts of the level in the future if we wanted.
- because this is an activeSound it is also effected by the bug where if you save and reload it is no longer playing (just like the current glados voice line activeSound)
- tested in entire game seems to work well.
2023-10-26 12:40:14 -05:00
James Lambert 721dc3b44d Fix problem where it is hard for player to walk onto button 2023-10-18 20:36:44 -06:00
westonCoder 5218d30ed1 adjust to be a delay to match up with end of sound 2023-10-16 16:04:57 -05:00
westonCoder a578dcf5de added a wait for glados channel before portal 2023-10-16 13:05:48 -05:00
westonCoder fcc7784288 fixed glados voiceline pause in chamber 04 2023-10-16 11:33:37 -05:00
James Lambert 8a5cca8e60 More room decor 2023-10-14 15:22:54 -06:00
James Lambert 738f3c73fa Add observation room decor to test chamber 02 2023-10-13 19:27:01 -06:00
westonCoder b2bde849ba Dynamic Captions Building and Enhancements
- python file added and invoked at make that produces a subtitles.c and subtitles.h synamically based on the closed captions files present inside of the resource/ folder
- added an in-game  slider to choose from the languages which were dynamically loaded at time of building.
- if no closecaption files are present at the time of building, the script will still make the subtitles.c/.h but it just wont have any data. This will also result in the two menu items relating to closed captions being removed.
- the names of subtitles in the .yaml files are the upercase versions of the names of subtitles in each subtitle file, so that they are easy to find.
- fixed margins on sides of subtitles
- fixed color of subtitles to be more visible
- sped up the fade in and out animations.
- automated new-line breaks.

Issues I have seen:
- if you load more than like 6 closed caption languages into the resource/ folder the game doesnt seem to want to start up once built. I think this is due to the sheer size of the subtitles.c file that is generated. I would love some feedback on how to make this work a little better/be more memory efficient, as it would be nice to have every closed caption language available on every build.
- languages with very unique characters (chinese, japanese, korean, greek, etc.) do not work because the python codec that is used to decode/encode the files doesnt support them. for now that logic is in a try/except so it wont fail, it will simply skip a language that is not supported.
2023-10-09 21:09:22 -05:00
westonCoder fa62ea3106 Added Subtitles to Game
- added subtitles and all required functions to get them up and running. Subtitles accross all main game dialogue is running now.
- subtitleID's are included as metadata now when a q_sound line is put in a map's .yaml file
- Also added in a toggle button to turn them on or off.

there are only 3 downsides to my method here.
- subtitles must be manually added to their array when new dialogue is added. I included all the english subtitles in a .txt inside of assets folder.
- no punctuation/symbols. once the font is updated though this should be resolved.
- font size is a bit big, however if the font is ever updated to have a size modifier in the future this would be a snap to change.

attached video of it working.
Fixes #262
2023-10-06 16:08:49 -05:00
James Lambert 801583dd07 Fix test chamber 05 2023-09-06 19:55:59 -06:00
James Lambert c3b06dbec7 Add signage and indicator lights to test chambers 2023-09-05 21:17:14 -06:00
James Lambert 298dab67f6 Implement test chamber 05 failsafe 2023-09-03 15:13:40 -06:00
James Lambert f0be2b4048 Refactor triggers to be triggable by things other than the player 2023-09-02 22:13:49 -06:00
James Lambert 6395378285 Generate cutscene yaml and operators yaml 2023-09-02 17:59:01 -06:00
James Lambert d8cf4c5bdf More touch up 2023-08-24 21:24:48 -06:00
James Lambert 4e2086dc47 touch up test chamber 02 2023-08-24 21:23:21 -06:00
James Lambert 8470c4ae22 Fix some fizzler related issues 2023-07-15 15:35:37 -06:00
James Lambert bcdcaaacb6 Do lighting for two more test chambers 2023-07-06 21:46:15 -06:00
James Lambert 6d8ef41f25 Add thickness to test chamber glass 2023-05-19 12:58:58 -06:00
James Lambert e1014a3924 Implement box dropper serialization 2023-05-07 20:51:36 -06:00
Weston Salinas 676cb60038 Fixed Box Dropper Trigger in Chamber 4
Fixes #104
- simply encompassed the entire chamber past the glass in chamber 4 with the box dropper trigger
2023-04-30 20:44:49 -05:00
James Lambert 34f336f3af More work on test chamber 06 2023-02-25 21:36:22 -07:00
James Lambert fc253fe93b Minor issues for next release 2023-02-18 20:20:28 -07:00
James Lambert e0789a13fc Add ball burn marks 2023-02-11 21:17:44 -07:00
James Lambert 26c8fa5f99 Some test chamber polish 2023-02-11 14:28:14 -07:00
James Lambert 4ac92e6163 Fix infinite jump glitch 2023-02-10 22:15:20 -07:00
James Lambert 95f9239d7e Underwater graphics done
moved autoportal frames to be a decor object
2023-02-10 21:11:58 -07:00
James Lambert 994271f762 work on test chamber 3 2023-01-27 21:06:54 -07:00
James Lambert a0bed76f85 Work on next test chamber 2022-12-14 21:46:24 -07:00
James Lambert a2f8d743c5 Fix some level details 2022-12-07 22:09:44 -07:00
James Lambert 266ee8c24e Work on test chamber 1 2022-12-06 20:52:15 -07:00
James Lambert d4a662e638 Fix some test chamber issues 2022-11-12 20:41:53 -07:00
James Lambert f767fdf8ab Add freecam 2022-09-27 19:33:56 -06:00
James Lambert e7601c2e4d Small elevator details 2022-08-31 07:36:07 -06:00