Commit graph

579 commits

Author SHA1 Message Date
westonCoder a8e1afbb20 Added Portal Funneling
- added a function in player that implements portal funneling (video attached)
- added a new menu option in the gameplay tab that allows you to toggle it on or off
- the toggle defaults to on, just like in original portal
- portal funneling is only done on portals facing up
2023-10-14 12:28:10 -05:00
James Lambert 4445cca8c1 Add desk and chair decor 2023-10-12 18:46:46 -06:00
James Lambert c61a8a802b Add monitor decor object 2023-10-11 21:47:26 -06:00
James Lambert 8fa88a8ae8 remove profile reporting code 2023-10-11 21:45:26 -06:00
James Lambert 1ef301c15e Get rumble pak mostly working 2023-10-11 19:18:50 -06:00
westonCoder 255cbbad4b Slight Fixes to Subtitles Making
- added subtitles.h as dependency in a few places in makefile
- moved making a directory for the subtitles.h/.c to inside the python script
- fixed pathing for a #include

building is now working for me.
2023-10-11 12:23:21 -05:00
James Lambert 1228850440 Better integrate subtitle generation into the build process 2023-10-10 22:13:48 -06:00
James Lambert c18354ad76 Add rumble when player fires portal gun 2023-10-10 21:43:49 -06:00
lambertjamesd b88d4d1192
Merge pull request #275 from westonCoder/subtitles-dynamic-enhancements
Dynamic Captions Building and Enhancements
2023-10-10 20:33:37 -06:00
westonCoder 49f24a6359 added all punctuation characters to font, fully tested in game. 2023-10-10 15:11:08 -05:00
westonCoder 285ace8630 fading between subtitles 2023-10-10 11:01:55 -05:00
westonCoder b46a5f8772 added minimum 1 caption file statement in readme 2023-10-09 21:49:23 -05: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
James Lambert b152095821 Turn of rumble pak for now 2023-10-09 20:05:30 -06:00
James Lambert c937b43f78 Fail to get rumble pak working right 2023-10-09 18:52:28 -06:00
James Lambert 08be7b0dd2 Allow the player to move through fizzling objects 2023-10-09 13:05:54 -06:00
James Lambert 13e20dd002 Make render depth a character instead of an int (savefile space is important
)
Change savefile header to prevent loading of an incompatible savefile version
2023-10-08 20:54:26 -06:00
lambertjamesd 3802f601f2
Merge pull request #261 from westonCoder/options-menu-tweaks
Game Options Menu Tweaks
2023-10-08 19:38:02 -06:00
westonCoder 9ac42e4fad made the savefile value an int, less computation overall 2023-10-08 13:12:39 -05:00
James Lambert 8887125fe4 Fixup some portal firing logic 2023-10-07 20:50:06 -06:00
lambertjamesd 8b539390b6
Merge pull request #263 from westonCoder/real-subtitles-addition
Added Subtitles to Game
2023-10-07 19:16:57 -06:00
lambertjamesd 1858d4f14a
Merge pull request #258 from westonCoder/portalgun-firing-updates
Various Tweaks to Portal Gun Mechanics
2023-10-07 19:00:49 -06:00
James Lambert 6035b8e6f9 Add moving platform sounds 2023-10-07 18:48:21 -06:00
westonCoder 25d4b60a9a added simple subtitle fade in and out 2023-10-07 10:34:26 -05:00
James Lambert 5526034235 Work on piston moving sound effects 2023-10-06 22:12:02 -06:00
westonCoder 70e21e7d5a changed the toggle button to say closed captions instead of enable subtitles 2023-10-06 17:53:37 -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 bc55069056 Use correct starting scene 2023-10-05 21:18:50 -06:00
James Lambert 6f68f5057d Start work on platform moving sounds 2023-10-05 21:18:20 -06:00
James Lambert d08cbbb0b8 Improve appearance of light rail endcaps 2023-10-04 21:47:21 -06:00
westonCoder 93cb25db64 Game Options Menu Tweaks
This PR implements the following quality of life/bug fixes, as well as a new feature:
- fixed a minor bug where you couldnt apply a single button to look forward/look back
- start no longer exits the menu. this is because if the player set a or b buttons as the pause action, they could no longer use the menu's anymore, because it would exit them from the menu.
- adjusted the sensitivity/accelleration sliders down slightly
- added a portal render depth slider in the GameplayOptions menu. this allows the player to adjust the portal render depth in real time. this was in the original game in the menu so I replicated here.

attached video shows new menu additions.
2023-10-04 11:58:04 -05:00
westonCoder a6b66783f8 Various Tweaks to Portal Gun Mechanics
- tweaked portal gun to have a max fire rate, that is tied to its animation speed (used video of portal1 for reference)
- allowed ControllerActionOpenPortal1 and ControllerActionOpenPortal2 actions to be "Holdable" meaning that you can hold down the button and continuously do that action
- made sure two portals cant be shot at once, prohibiting both buttons being held at once.

video attached:
2023-10-04 00:14:55 -05:00
James Lambert 5bdefbf465 Merge coplanar static meshes to reduce culling load 2023-10-02 21:20:52 -06:00
James Lambert ba67c38665 Wake up objects when portals are shot underneath then 2023-10-01 20:41:48 -06:00
James Lambert 7dc17db4a8 turn on optimizations 2023-10-01 20:16:05 -06:00
James Lambert c9745a14a1 Fix problem where player falls through floor after teleporting to a different room 2023-09-30 21:40:38 -06:00
James Lambert 11c359d8e6 Make point constraint less likely to push things through wall 2023-09-30 21:16:08 -06:00
James Lambert b575325ed2 Fix bug where you can shoot through the back of glass 2023-09-30 20:53:53 -06:00
James Lambert dd54ac6aea Add trigger to prompt switch usage 2023-09-30 18:02:35 -06:00
James Lambert f8ca236f1b Allow cube triggers to control if held cubes still trigger 2023-09-30 17:53:48 -06:00
James Lambert 4bc26ef00c Work on action prompts 2023-09-30 16:42:31 -06:00
James Lambert 3cba3a52a5 Refactor hud to be a separate object 2023-09-30 11:35:00 -06:00
James Lambert 2641d98eeb Fix floor in test chamber 02 around pedestal 2023-09-28 22:09:24 -06:00
James Lambert 80d7720a98 Change default controls 2023-09-28 20:29:16 -06:00
James Lambert 81d446a80e Polish up ball launcher 2023-09-28 18:04:36 -06:00
James Lambert 6344908bd8 Fix portal gun elevator teleportation bug
fix some broken walls in test chamber 07
2023-09-26 18:53:33 -06:00
James Lambert c1c244151d Cleanup unused teleport on break constraint feature 2023-09-25 21:27:52 -06:00
James Lambert aa59171368 Simplify portal gun constraint and fix visual glitch when passing through portals 2023-09-25 21:23:29 -06:00
James Lambert 8273b32fc6 fix issue when player starts halfway through elevator when starting a new game on later test chambers 2023-09-24 20:10:34 -06:00
James Lambert fda868e584 turn player collider into a sphere shorty after teleporting 2023-09-24 19:38:20 -06:00