Commit graph

796 commits

Author SHA1 Message Date
James Lambert e0d0b7d0ea Add valve intro 2023-10-19 22:52:58 -06:00
westonCoder ccc1ec431f removed needless include 2023-10-19 23:20:42 -05:00
westonCoder b28bd19f6d fixed the root cause instead of ignoring it 2023-10-19 23:19:16 -05:00
James Lambert f127736008 Add rumble when player lands 2023-10-19 21:04:04 -06:00
westonCoder 6be32e3068 Fixes a save load crash and audio bug
- if the game was saved while the cutscene runner had queued audio lines, when that save was loaded it would crash the game.
- to alleviate I simply deny the player to save while a cutscene audio is playing with the "deny" sound.
- also relieved a bug where audio volume would not be correct after loading a save, by simply updating the volume when a queued level is loaded.

we could probably find the true solution to this crash and allow players to save during a cutscene, however I think this workaround is good for now to avoid crashes.
2023-10-19 19:44:50 -05:00
hackgrid f1f9918017
Merge branch 'lambertjamesd:master' into non-interlaced 2023-10-19 13:09:28 +02:00
hackgrid 3c47cf537f reset VI special features 2023-10-19 12:12:23 +02:00
James Lambert 743679ddd3 Remove rumble when player passes through portal 2023-10-18 21:02:52 -06:00
James Lambert 8b0dd06f74 Fix bug where restarting a level while dead crashes the game
Also made rumble pack communication thread safe
2023-10-18 20:59:55 -06:00
James Lambert 721dc3b44d Fix problem where it is hard for player to walk onto button 2023-10-18 20:36:44 -06:00
lambertjamesd 38114d3ff1
Merge pull request #335 from westonCoder/standing-object-grab-fix
Standing Object Grab FIx and Slider Fix
2023-10-18 16:48:53 -06:00
westonCoder dc9a5c0633 Fixes Grabbing Stood On Object
Fixes #255

video attached, you cant hear but when im standing on the object I'm spamming the grab button.
2023-10-18 16:56:50 -05:00
hackgrid f23a6c3721
oops 2023-10-18 23:49:14 +02:00
hackgrid 782c2b04ae include missing main.h 2023-10-18 23:18:03 +02:00
hackgrid cd6c598302 Add sound effect to sliders in options menu 2023-10-18 23:17:02 +02:00
westonCoder d96c5ce81e Fixes Sound Slider Issue
Fixes #321
2023-10-18 16:15:36 -05:00
hackgrid 2b3dda58e4 Implement config option for interlaced video. 2023-10-18 22:41:23 +02:00
lambertjamesd 99a1303d87
Merge pull request #323 from hackgrid/menu-improvements
Various little menu improvements
2023-10-18 14:25:28 -06:00
hackgrid 2227af6a9e
prepare for config option 2023-10-18 21:16:12 +02:00
hackgrid fc99d4b5d9
oops 2023-10-18 20:33:06 +02:00
hackgrid 9bf9aaa63a
support non-interlaced VI mode 2023-10-18 20:25:04 +02:00
hackgrid 97314a625a
add interlaced def 2023-10-18 20:19:16 +02:00
reknohT eb2ae7ac57 Fix Grammar
- Fixes grammar in strings "TO PICKUP AND OBJECT" and "TO DROP AND OBJECT"
2023-10-18 12:33:54 -05:00
hackgrid 831370efeb Add sound to indicate switching option items and tabs. Enable main and game menu to cycle through menu items. 2023-10-18 17:36:34 +02:00
James Lambert 9f7e15e3fd fix exit elevator rumble 2023-10-18 08:15:24 -06:00
James Lambert 9325512ca4 Add elevator rumbling 2023-10-17 20:39:10 -06:00
James Lambert e717d6f7e2 Add more rumble pak clips 2023-10-17 20:32:44 -06:00
lambertjamesd 0da90ce622
Merge pull request #317 from westonCoder/moving-platform-movement-matching
Made Player Movement Match Moving Platforms
2023-10-17 19:15:26 -06:00
lambertjamesd 58c8601d2e
Merge pull request #312 from westonCoder/audio-slider-fix
Fixes All Slider Issues
2023-10-17 19:14:13 -06:00
James Lambert 8b66b5b8fb Fix controller input when rumble pak is attatched 2023-10-17 19:13:29 -06:00
westonCoder 058a8043ff Made Player Movement Match Moving Platforms
- store the velocity of a moving object that player is anchored to and apply that to player movement
- player now keeps up with horizontal movement while jumping on moving platform

Fixes #300
2023-10-17 19:02:21 -05:00
westonCoder 99d971580a Fixes All Slider Issues
- issue was present when you started a new game after changing options in the main menu
- now the sliders all return to original locations when the audio options menu is initialized

Fixes #301
2023-10-17 11:31:39 -05:00
James Lambert 50d169e9f4 Refactor controller code into its own thread 2023-10-16 22:17:19 -06:00
James Lambert 74e02269e8 Fix a build problem around subtitles 2023-10-16 21:45:01 -06:00
westonCoder fc8d1a30db 65535->65536 2023-10-16 16:43:21 -05:00
westonCoder b6fd669eaa Fix Slider Interval Problem
- slider interval problem in #301 was caused by dividing 65536 by a number that it is not evenly divisible by.
- adjusting number of slider ticks did the trick

other old data problem in #301 still remains, but havent reproduced
2023-10-16 16:34:27 -05:00
lambertjamesd 47c74b59e3
Merge pull request #309 from westonCoder/soundplay-fix
fixed a soundplayer function call that broke build
2023-10-16 14:56:21 -06:00
lambertjamesd 8ecb60dadc
Merge pull request #303 from westonCoder/portal-cover-height-fix
Fixes Portal Height
2023-10-16 14:54:07 -06:00
westonCoder 590b33b8ea fixed a soundplayer function call that broke build 2023-10-16 13:50:56 -05:00
westonCoder 2e5626b794 made all requested changes 2023-10-16 13:23:45 -05:00
lambertjamesd 0e51a71b8b
Merge pull request #308 from westonCoder/energy-ball-timer-reset
Ball Resets Lifetime Through Portal
2023-10-16 11:45:59 -06:00
lambertjamesd d5919e9347
Merge pull request #307 from westonCoder/fizzler-fix
Fizzler is Anti-Portal
2023-10-16 11:45:35 -06:00
lambertjamesd f46c9920ff
Merge pull request #304 from westonCoder/elevator-voiceline-wait
Made Elevator to Wait for Voicelines to Move
2023-10-16 11:43:58 -06:00
westonCoder 2684637e2d Ball Resets Lifetime Through Portal
Fixes #305
2023-10-16 12:06:14 -05:00
westonCoder b3101c2de1 Fizzler is Anti-Portal
- simply added a check to see if an object has a COLLISION_LAYER_FIZZLER, if so it cant shoot a portal past.
2023-10-16 11:44:28 -05:00
westonCoder d5c8eee04d changed both variable names, and adjusted surrounding code 2023-10-16 11:20:50 -05:00
westonCoder 5effd3359a only wait for voicelines on elevators that leave the level. 2023-10-16 10:46:36 -05:00
lambertjamesd 0d90a3726f
Merge pull request #299 from westonCoder/audio-through-portals
Audio Now Travels Through Portals
2023-10-16 07:59:45 -06:00
lambertjamesd 945855ca24
Merge pull request #295 from westonCoder/portal-funneling
Added Portal Funneling
2023-10-16 07:58:53 -06:00
westonCoder c128c84ed1 Made Elevator to Wait for Voicelines to Finish
- made elevator wait for voicelines to finish
- I made this the case on all levels because I watched the elevator sequences on all levels of a playthrough and it always seemed to wait.
2023-10-15 22:12:42 -05:00
westonCoder 08e51a44d9 Fixes Portal Height
- I am not really sure if this is the exact value you were going for with this, but 1.6 seems to match the collision to the top and bottom of the portal cutout.
- larger items like boxes seem to pass through much easier now.
- have not seen any negative side effect from this.
2023-10-15 17:18:31 -05:00
hackgrid 3a20dd284a Fix audio options sliders. 2023-10-15 13:44:41 +02:00
hackgrid 293854183d increase savefile header 2023-10-15 13:05:00 +02:00
hackgrid 5995ef30a0 cut english->english lookup entries to save a bit RAM 2023-10-15 12:06:38 +02:00
hackgrid 178f73ff85
Adjust audio options margins a bit to fit everything 2023-10-15 11:54:33 +02:00
hackgrid 340837b931
Merge branch 'master' into multi-audio-2 2023-10-15 11:03:14 +02:00
James Lambert 4698987fd6 Add some details to test chamber 05 2023-10-14 19:38:05 -06:00
Weston 125197508e
Merge branch 'master' into audio-through-portals 2023-10-14 20:34:20 -05:00
lambertjamesd 219650dcd9
Merge pull request #287 from westonCoder/add-volume-sliders
Added in Volume Sliders And All Captions
2023-10-14 19:29:53 -06:00
westonCoder 64f1c52f71 removed sqrt and cleaned up useless comments 2023-10-14 20:19:10 -05:00
James Lambert d7842f9697 Add test chamber 05 observation room details 2023-10-14 18:38:35 -06:00
westonCoder 3b43017b03 Audio Now Travels Through Portals
- audio travels through portals now by updating the soundPlayerDetermine3DSound function
- basically instead of just checking distance to the sound producer, we also check sound->portal0+portal1->listener and sound->portal1+portal0->listener to see if any of them are a smaller distance.
- works pretty seamlessly

Fixes #115
2023-10-14 17:34:10 -05:00
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
hackgrid 44217fb546 Implement modular multi-audio-language support. 2023-10-14 15:13:13 +02:00
James Lambert 4e79c243b9 Add observation room decor to test chamber 01 2023-10-13 16:37:59 -06:00
James Lambert 4445cca8c1 Add desk and chair decor 2023-10-12 18:46:46 -06:00
westonCoder eb5668f485 hides hud while on pause screen like in original game 2023-10-12 18:57:48 -05:00
westonCoder ad0577dc45 added all captions option, implemented all current sfx captions 2023-10-12 13:17:46 -05: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 a9d16f3185 Added in Volume Sliders
- Master Volume adjusts all sounds including music
- Music slider adjusts only music sounds
- new enum added to insicate which type of sound each sound being played is.
- general menu formatting

because we are now guaranteeing that atleast one english caption file is going to be present, I removed the if statements checking if there was more than 0.

I pretty throughoughly tested and everything seems to be working properly.
2023-10-11 17:28:56 -05: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
James Lambert 02d3bb6e7e Make contact filtering on portals more accurate the portal surface 2023-09-24 09:23:30 -06:00
James Lambert 55142fe61c Fix some small portal rendering bugs 2023-09-23 16:57:39 -06:00
James Lambert 89c5f9a543 Implement deadzone setting 2023-09-21 21:21:40 -06:00
James Lambert 21ef5d46f3 Fix up some hole cutting issues 2023-09-21 20:26:17 -06:00
James Lambert d99fd21ad6 work on hole cutting algorithm
change default controls
2023-09-20 20:29:02 -06:00
James Lambert bddedca707 Fix player collider to be a capsule 2023-09-19 19:22:24 -06:00
James Lambert 55fa62c57e Finish up portal trail effect 2023-09-18 21:08:52 -06:00
James Lambert 65eebe53d3 Work on portal ball trail 2023-09-17 22:35:38 -06:00
James Lambert 32edc58997 Open portal after projectile hits 2023-09-16 07:05:26 -06:00
James Lambert a391432c72 Work on portal projectile effect 2023-09-15 22:08:32 -06:00
James Lambert aea526a537 Fix crash when firing 2023-09-15 18:52:17 -06:00
James Lambert 66f19b3cd5 Start work on portal gun projectile 2023-09-14 22:45:02 -06:00
James Lambert 5582be9a3b Make fizzler look better
implement particle effects for exploding balls
2023-09-13 22:05:27 -06:00
James Lambert 6a48f7e405 Polish up fail portal splash particle effect 2023-09-13 20:46:01 -06:00
James Lambert 5aba1b3e77 Implemented very broken portal particle effect
Fixed portal hud indicator
2023-09-12 22:21:52 -06:00
James Lambert cfb98555c5 Make progress on particle effects 2023-09-12 21:43:55 -06:00
James Lambert 7499075c65 Better portal culling 2023-09-07 20:58:36 -06:00
James Lambert 7a469245ef Fix broken trigger in test chamber 11 2023-09-06 20:53:24 -06:00
James Lambert 801583dd07 Fix test chamber 05 2023-09-06 19:55:59 -06:00
westonCoder 44b59288c7 Various Options Menu Improvements
- fixed bug where you couldnt set L R or Z to an action because it would just change tabs
- instead of a global check for tab switch, each indiviudal menu tab determines if it should move to the next tab
- added an "invert camera yaw" option

Implements #218
2023-09-05 15:27:58 -05:00
lambertjamesd 451f4d9733
Merge branch 'master' into moving-portals-option-load-fix 2023-09-04 21:47:50 -06:00
lambertjamesd 1979703825
Merge pull request #230 from chatrat12/trigger-tab-navigation
Can now navigate option menus with triggers
2023-09-04 21:46:22 -06:00
lambertjamesd 6fdfeb6006
Merge pull request #228 from chatrat12/portal-gun-near-clip
Render portal gun with smaller near clip plane.
2023-09-04 21:45:54 -06:00
lambertjamesd f1283a397a
Merge pull request #227 from chatrat12/wide-screen-support
Added simple wide screen support #187
2023-09-04 21:40:25 -06:00
James Lambert 6a603395ab Add indicator lights for signals 2023-09-04 20:39:42 -06:00
Matt Thompson 1e2361b6d6 Load correct flag when setting gameplayOptions->movingPortals.checked 2023-09-04 14:44:39 -04:00
Matt Thompson e974aa687b Can now navigate option menues with triggers 2023-09-04 14:36:56 -04:00
James Lambert daae636cc4 Only allow cubes that have started sleeping to activate triggers 2023-09-04 10:42:58 -06:00
James Lambert 6a661c76da Revert "Only allow sleeping cubes to activate triggers"
This reverts commit 1646e32fa1.
2023-09-04 10:32:27 -06:00
James Lambert 1646e32fa1 Only allow sleeping cubes to activate triggers 2023-09-04 10:27:47 -06:00
James Lambert 73f4e6f9a7 Fix some trigger related bugs 2023-09-04 10:22:38 -06:00
Matt Thompson 1beff969b1 Only modify projectionView if portal gun is visible. 2023-09-04 03:49:55 -04:00
Matt Thompson 510623ca54 Render portal gun with smaller near clip plane. 2023-09-04 00:45:16 -04:00
James Lambert 1800535ab2 Remove temporary debugging instructions 2023-09-03 20:38:48 -06:00
Matt Thompson 221f2e6909 Added simple wide screen support #187 2023-09-03 21:23:51 -04: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 e83a23325e Correctly apply ball marks to cieling and floor #109 2023-09-02 10:22:06 -06:00
James Lambert 5827e3f4c2 Implement rotating portals 2023-09-01 20:48:39 -06:00
James Lambert 6170af53c8 Make movable portals off by default and add an option to enable them in the settings 2023-09-01 19:12:59 -06:00
James Lambert e8129554fb Add tank controls option 2023-09-01 18:46:23 -06:00
James Lambert cff4d0a624 Only invert pitch with inverted controls 2023-09-01 18:05:55 -06:00
James Lambert e3a033545f give chell a portal gun 2023-08-31 21:49:18 -06:00
James Lambert d116010557 Prevent portals from opening on top of each other 2023-08-30 22:29:30 -06:00
James Lambert 297c0f44c4 Fix decals on wall zfighting with portals 2023-08-30 21:46:34 -06:00
James Lambert 9ea0659ce6 fix yet another portal surface cutting bug 2023-08-30 21:27:11 -06:00
James Lambert 20b850a975 Fix condition in surface generator where portalSurfaceConnectToPoint connects to exact same position 2023-08-29 22:23:11 -06:00
James Lambert 8c2295005c Use sphere casting to determine player footing 2023-08-28 22:39:45 -06:00
James Lambert b66f5a037f Make logic for checking when a new portal hole nees to be cut more robust 2023-08-28 21:10:41 -06:00
James Lambert 80d98219e2 fix some surface generator bugs after refactor 2023-08-28 12:17:07 -06:00
James Lambert d51d939ec6 refactor portable surfaces 2023-08-27 15:16:08 -06:00
James Lambert a2da66a7dc Fix bug with portals being on the same surface 2023-08-26 16:29:21 -06:00
James Lambert 00a1077030 Only trigger button with cubes speech triggers if the cube is sleeping 2023-08-26 15:36:05 -06:00
James Lambert 4bf67a467e Fix weird glitch with back to back portals 2023-08-26 15:18:23 -06:00
James Lambert 17b6d10324 Fix bobbing camera 2023-08-26 14:45:59 -06:00
James Lambert 0ed4fa8244 Fix savefiles 2023-08-26 13:51:08 -06:00
James Lambert 4d66641be7 Update lookTransform when teleporting the player 2023-08-25 22:17:10 -06:00
lambertjamesd baa8664a2e
Merge pull request #216 from hackgrid/master
mute DecorObjects in main_menu (Fixes #213)
2023-08-25 08:39:35 -06:00
hackgrid 3014e55285
fix typo 2023-08-25 09:14:16 +02:00
hackgrid 42c24768c4
reset DecorObject flags outside of main_menu 2023-08-25 09:10:19 +02:00
hackgrid 452e83b0b8
use definition flags in DecorObject 2023-08-25 09:08:48 +02:00
hackgrid c20a43fd69
revert / remove flags from DecorObject 2023-08-25 09:07:38 +02:00
James Lambert 6f0ea79c72 fix rigidbody sleeping 2023-08-24 20:39:59 -06:00
hackgrid ba3751178d
oops v2 2023-08-24 19:00:19 +02:00
hackgrid 85e4531389
oops 2023-08-24 18:50:00 +02:00
hackgrid 9ddf2ad7dd
update main_menu to ignore decor element sounds 2023-08-24 18:12:48 +02:00
hackgrid a64874f2ee
implement mainMenuMode for sceneInitNoPauseMenu 2023-08-24 18:11:40 +02:00
hackgrid 58cba4ff1d
don't play sounds for muted DecorObjects 2023-08-24 18:10:17 +02:00
hackgrid 1761e6e9cd
add flags to DecorObject 2023-08-24 18:08:02 +02:00
hackgrid b7cf3bd4a3
add mainMenuMode for sceneInitNoPauseMenu 2023-08-24 18:00:15 +02:00
hackgrid 19881808ec
add new Muted flag to DecorObject 2023-08-24 17:57:53 +02:00
hackgrid 5f314d5bbb
loop ambient music in main_menu 2023-08-24 10:36:14 +02:00
James Lambert 313607df62 Implement rigidbody sleeping
touch up test chamber 01
2023-08-22 22:26:51 -06:00
James Lambert 3621b70709 use sphere collider for player 2023-08-21 19:27:17 -06:00
James Lambert 60485246d1 Add collision to portal border 2023-08-20 21:57:49 -06:00
lambertjamesd b78bcc9df9
Merge pull request #209 from westonCoder/sound-overlap-bug
Sound Crackling Noise Fix
2023-08-06 20:12:32 -06:00
James Lambert 2930f845df Always reuse replace the near clipping plane with the portal surface 2023-08-06 13:23:51 -06:00
westonCoder 0bebdbd8b9 Sound Crackling Noise Fix
this bug was caused by too many sounds playing at once. to alleviate this two things were implemented

- lowered the max number of active sounds from 16 to 12, this based on my testing eliminated all crackling sounds
- made an array of sound clips that are "skippable". also added a function to check if a given sound ID is skippable based on the list.

the idea here is there are some sounds (footsteps, portal shooting, portal entering, etc.) that are acceptable to be skipped. there are other
sounds that are more important to not skip (glados speaking, menu sounds, buttons pressed, etc.). by marking some as skippable, those sounds
will not be able to be played after the number of active sounds passes a MAX_SKIPPABLE_SOUNDS threshold. this makes the event of skipping an
important sound like glados speaking MUCH less likely. as more sound effects are added to the game we will need to make sure to add them to
that list if they are less important.

Fixes #183
2023-08-06 12:43:33 -05:00
lambertjamesd 2085847001
Merge pull request #207 from westonCoder/savefile-chamber-number
Correct Chamber Numbers
2023-08-05 20:58:14 -06:00
lambertjamesd f03dec9f2c
Merge pull request #206 from westonCoder/hud-console-color-flip
HUD Conforms to Console Version of Game
2023-08-05 20:56:42 -06:00
James Lambert 8086bbdae4 Fix z fighting with portals as they grow 2023-08-05 20:55:55 -06:00
westonCoder 6d2687dd1d Correct Chamber Numbers
chamber numbers displayed in both the save and load screen menu's are now the correct number.
I acheived this by making a function that creates a mapping from level/room numbers -> chamber numbers

this mapping will need to be updated when new levels are added to the game, however its such low overhead that I think its okay. another option would be to store the chamber number when passing in or out of elevators and saving that number as the player progresses.

screenshots (of a couple chambers) attached.
all chambers verified to be working.
2023-08-04 16:47:19 -05:00
westonCoder cf16f07c8a HUD Conforms to Console Version of Game
previously the HUD was conforming to the PC version of the game (orange on right, blue on left), however because we are targeting the console version for the remake the HUD colors have now been inverted (blue on right, orange on left)
fully tested on emulator, new colored HUD images attached.
2023-07-28 10:02:28 -05:00