Commit graph

36 commits

Author SHA1 Message Date
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
lambertjamesd 8b539390b6
Merge pull request #263 from westonCoder/real-subtitles-addition
Added Subtitles to Game
2023-10-07 19:16:57 -06:00
James Lambert 6035b8e6f9 Add moving platform sounds 2023-10-07 18:48:21 -06: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 d08cbbb0b8 Improve appearance of light rail endcaps 2023-10-04 21:47:21 -06:00
James Lambert dd54ac6aea Add trigger to prompt switch usage 2023-09-30 18:02:35 -06:00
James Lambert 4bc26ef00c Work on action prompts 2023-09-30 16:42:31 -06:00
James Lambert 81d446a80e Polish up ball launcher 2023-09-28 18:04:36 -06:00
James Lambert 7b898c1bbd Fix issue with a ceiling surface 2023-09-21 20:31:46 -06:00
James Lambert 7a469245ef Fix broken trigger in test chamber 11 2023-09-06 20:53:24 -06:00
James Lambert 2a643c5a73 Remove accidental double door 2023-09-05 22:04:51 -06:00
James Lambert de7a728c45 Add signage and indicator lights to another test chamber 2023-09-05 21:55:58 -06:00
James Lambert 6395378285 Generate cutscene yaml and operators yaml 2023-09-02 17:59:01 -06:00
James Lambert c56db8c2e9 Finish up some level polish 2023-08-24 22:12:40 -06:00
James Lambert f22775d331 Work on lighting for test chamber 07 2023-07-08 21:54:51 -06:00
James Lambert e9851b9b33 Fix gap in wall at the end of test chamber 11 #113 2023-05-08 21:10:32 -06:00
James Lambert 7b8d96c9e1 Add fizzler to test chamber 07 2023-04-13 06:48:01 -06:00
James Lambert c2bb0772f4 Fixup uv rotations 2023-04-12 20:26:41 -06:00
James Lambert a1964cf75e Finish up test chamber 07 2023-04-10 16:34:55 -06:00
James Lambert a0ee1f87bc Finish up test chamber 07 2023-04-09 14:20:24 -06:00
James Lambert e84e11acfa Finish up test chamber 07 2023-04-09 14:16:54 -06:00
James Lambert d4105b04a7 fix broken test chamber 07 2023-04-09 10:31:37 -06:00
James Lambert 926882261f make much progress on test chamber 07 2023-04-08 18:28:58 -06:00
James Lambert 25126503d4 Test chamber 07 progress 2023-04-08 15:40:00 -06:00
James Lambert 18bd112c40 work on test chamber 07 2023-04-05 20:59:51 -06:00
James Lambert 2cf701f863 Finish up test chamber 11 2023-04-04 06:24:59 -06:00
James Lambert 392f9adf9c Work on cutscenes and triggers for test chamber 07 2023-04-03 07:26:19 -06:00
James Lambert 0d312e1f79 More work on test chamber 07 2023-03-31 21:10:42 -06:00
James Lambert 0cdb9bf8c0 More work on test chamber 07 2023-03-30 16:40:49 -06:00
James Lambert 8c50e8f4fa More work on test chamber 7 2023-03-30 08:02:53 -06:00
James Lambert 31390f0d29 work on test chamber 07 2023-03-29 19:59:16 -06:00
James Lambert e5e6bc577f Work on test chamber 07 2023-03-27 21:24:10 -06:00
James Lambert e9e443ebeb Refactor door to be controlled by animation controller to allow for multiple door types 2023-03-26 21:33:23 -06:00
James Lambert 1f2992fbb6 Work on the test chamber some more 2023-03-13 21:58:11 -06:00
James Lambert aac8af391e Work on test chamber 07 2023-03-13 21:13:47 -06:00
James Lambert f4b149d24b Start work on test chamber 07 2023-03-13 21:13:47 -06:00