Commit graph

181 commits

Author SHA1 Message Date
yuni e16a650b22 apply gravity towards Jupiter for objects orbiting Jupiter 2024-06-10 23:19:33 +02:00
yuni e56f931951 ignore gforce for 0.01s on startup, to survive a large starting velocity 2024-06-10 23:19:33 +02:00
yuni 099e935e3e avoid errors during player death 2024-05-23 05:01:53 +02:00
yuni 224e0ce2c9 cleanup, add TODO 2024-05-23 01:26:24 +02:00
yuni bfad39613e better value for "up" vector 2024-05-23 00:59:33 +02:00
yuni e9afeefb7d fix "want to look at player" for when player rides a vehicle 2024-05-23 00:56:12 +02:00
yuni 91d19e94a0 implement preferred looking direction for NPCs 2024-05-23 00:31:31 +02:00
yuni 8a07e9cfb7 cleanup 2024-05-22 23:54:11 +02:00
yuni bcba3d0945 cleanup 2024-05-22 23:33:37 +02:00
yuni 8acbd4f33b unify rotation stabilizer of players and npcs 2024-05-22 23:29:54 +02:00
yuni 87199f41db apply cargo fmt 2024-05-22 05:00:45 +02:00
yuni f94c46cce2 implement cruise control 2024-05-15 05:00:59 +02:00
yuni 9f64bd65a7 rename "Restart Game" to "Take Off Helmet" 2024-05-14 19:12:58 +02:00
yuni aa7734947c implement achievements 2024-05-14 01:24:57 +02:00
yuni 83fe739e91 remove keys for restart and toggle shadows/music/sfx 2024-05-13 21:18:37 +02:00
yuni 556e98deec add Restart Game to menu 2024-05-13 20:53:08 +02:00
yuni eb681999f8 implement game menu 2024-05-13 20:21:56 +02:00
yuni cc67cf961a run input handlers only when alive 2024-05-13 05:01:39 +02:00
yuni 7f3770cf49 add bevy::math::{DVec3,DQuat} import to common 2024-05-13 00:55:49 +02:00
yuni 3b7e3e94dc add EPSILON and EPSILON32 constants 2024-05-13 00:48:41 +02:00
yuni 33876bac73 add game.rs 2024-05-12 23:57:21 +02:00
yuni 94d732d9f0 simplify crate module imports 2024-05-12 23:42:56 +02:00
yuni 81e700ef66 add death type: GForce 2024-05-12 22:31:16 +02:00
yuni 69381db524 respawn the world on death only after death screen closes 2024-05-12 22:31:15 +02:00
yuni 182659eff0 add death screen 2024-05-12 22:31:14 +02:00
yuni 83f43ee06c rename effects.rs to visual.rs 2024-05-10 12:24:57 +02:00
yuni c2124180f6 change flashlight sound to "switch" 2024-05-08 06:42:35 +02:00
yuni 35a0d51dfb battery drain on flashlight 2024-05-08 02:35:36 +02:00
yuni c38fcaa8dd clamp suit integrity at 0%-100% 2024-05-08 00:32:20 +02:00
yuni 7d31a95a7c show dashboard icon when flashlight is active 2024-05-07 20:54:24 +02:00
yuni 6e92e37cdf turn off flashlight when entering vehicle 2024-05-07 19:13:49 +02:00
yuni 0c1393290e fix suit damage on collisions outside of vehicles 2024-05-07 19:07:32 +02:00
yuni 79673e5ec5 fix collision sounds 2024-05-07 19:07:24 +02:00
yuni e08339ad5e add key to toggle flashlight, fix flashlight in 1st person mode 2024-05-07 17:11:18 +02:00
yuni a4ee4a60ef allow teleporting to other stars, though this kinda breaks the game
but seeing the night sky from so far away is truly magical
2024-05-02 01:43:16 +02:00
yuni 591b4a4f46 move actor::position_to_transform to camera module 2024-05-01 21:50:59 +02:00
yuni a9fc27ac27 better g-force calculation 2024-05-01 00:58:58 +02:00
yuni 03563ad955 shrink humans down to actual size 2024-04-30 01:26:59 +02:00
yuni 2b07ef67d1 copy serenity station's new style to the other bus stops 2024-04-24 21:17:41 +02:00
yuni 73410efc09 add comment 2024-04-23 17:45:47 +02:00
yuni 2ecb976b14 move around code to better match the module's purposes 2024-04-23 17:39:07 +02:00
yuni 8fa7859568 document module purposes 2024-04-23 17:33:36 +02:00
yuni 7b21c2b820 tweak ASCII art 2024-04-21 19:34:00 +02:00
yuni 1adb56c0e2 add ASCII art header to most files 2024-04-21 18:25:30 +02:00
yuni f1a7781fa2 properly reset generic asteroids on death 2024-04-20 00:47:51 +02:00
yuni e3ff386011 keep track of positions of IDed objects, for easy rel. position calc. 2024-04-19 22:23:25 +02:00
yuni 81b09d183a boost interaction distance 2024-04-17 15:24:00 +02:00
yuni 919b801832 fix dying from entering vehicles 2024-04-17 13:55:39 +02:00
yuni a1c4fbb821 smooth out engine volume, fixing audio glitches 2024-04-15 21:56:01 +02:00
yuni ac1d1d9bca boost interaction distance 2024-04-14 21:51:59 +02:00
yuni 86cd3b049e rename settings.rs to var.rs, planning to add more than settings to it 2024-04-14 14:55:00 +02:00
yuni ef0ada9dac reset *some* settings on death 2024-04-11 21:20:54 +02:00
yuni 053f2827dd handle god mode properly when restarting/cheat-dying 2024-04-11 21:17:34 +02:00
yuni cb698cc3b2 Revert "reset settings on death/restart"
This reverts commit 3676fd444c.
2024-04-11 21:12:56 +02:00
yuni 3676fd444c reset settings on death/restart 2024-04-11 21:07:01 +02:00
yuni 9ea79ff80f death animation fallback 2024-04-11 20:58:16 +02:00
yuni 0c31055422 add key binding F7 to restart the game 2024-04-11 20:47:11 +02:00
yuni eb481edc8e implement DamageTypes, different visuals/sounds on death 2024-04-11 20:46:52 +02:00
yuni 1c9bcd7208 adapt FoV to g force rather than speed 2024-04-08 02:36:47 +02:00
yuni 6a93193720 show g forces when using speed cheat 2024-04-08 01:54:05 +02:00
yuni 9218398c77 disable blackout for now, i dont like it, too confusing 2024-04-08 01:48:23 +02:00
yuni a44a7faa42 implement god mode 2024-04-08 01:44:36 +02:00
yuni d4708c2873 tweak gforces, vehicle speed, ignore gforce when cheating 2024-04-06 01:36:14 +02:00
yuni a869a7704e implement g-forces and passing out 2024-04-06 01:11:35 +02:00
yuni 7d655ca6c6 cleanup 2024-04-05 23:50:10 +02:00
yuni 91875436bc cleanup 2024-04-05 23:42:02 +02:00
yuni 845e938472 entering vehicles now also based on camera orientation 2024-04-05 20:05:58 +02:00
yuni f13fc7167d cleanup 2024-04-05 20:01:50 +02:00
yuni df541e85a9 chat initiation now finds people you look at, not anyone nearby 2024-04-05 19:58:27 +02:00
yuni 1906366463 implement targeting based on player orientation 2024-04-05 19:03:50 +02:00
yuni 89984023e9 clear log on death 2024-04-05 05:13:09 +02:00
yuni e577a5084c vehicles protect from damage now, though not perfectly 2024-04-05 03:53:20 +02:00
yuni df9f47c427 fade in from maroon red color when dying/respawning 2024-04-05 03:49:29 +02:00
yuni 61c7cffcef implement damage on low oxygen and collisions 2024-04-05 03:31:52 +02:00
yuni 23bceebc79 implement player respawn with "z" key 2024-04-05 02:58:12 +02:00
yuni 6b6cdccee7 change WantsNo* to WantsMax*, cuz Icarus likes to rotate a bit 2024-04-05 01:42:50 +02:00
yuni 5d52d3cdf4 add "wants novelocity" command to icarus 2024-04-05 01:19:46 +02:00
yuni 83de08034a add "wants norotation" command to satellite and icarus 2024-04-05 00:54:58 +02:00
yuni ca7d2facd9 split off chat logic from actor.rs into new chat.rs 2024-04-04 13:34:13 +02:00
yuni 39e852817a fix vehicle exit... maybe? seems to have a random element... 2024-04-03 14:48:23 +02:00
yuni d4ddead644 enter vehicles with E instead of Q, make E the "interact" key 2024-04-03 14:21:47 +02:00
yuni 0142d6d77b fix vehicle visibility when exiting 2024-04-03 12:27:43 +02:00
yuni 7b172058bb add adrenaline jolt on collisions 2024-04-01 06:24:29 +02:00
yuni 0662f88fdd play collision sound only on start of collision 2024-03-31 05:13:21 +02:00
yuni cab5c8eaf5 fix angularmomentum command 2024-03-30 23:18:29 +01:00
yuni 9975d8b2bf smoother handling of vehicle entrance/exits, also fixes adrenaline 2024-03-30 22:31:07 +01:00
yuni c040dbb332 fix default suit integrity 2024-03-30 19:39:53 +01:00
yuni 15781d2175 fix flicker when toggling 3rd person camera 2024-03-30 18:57:46 +01:00
yuni 3472be43b0 spawn the player a bit outside the vehicle 2024-03-30 18:54:29 +01:00
yuni 80aed73264 will this help with vehicle exiting? still seems random... 2024-03-30 18:51:21 +01:00
yuni ce8f4666c5 trying to fix player "teleportation" on vehicle exiting... 2024-03-30 18:48:33 +01:00
yuni 962f73f522 stop physics simulation of original model when entering vehicle 2024-03-30 18:05:22 +01:00
yuni b590c4de44 fix collision sfx while in vehicles 2024-03-30 18:04:57 +01:00
yuni a5c796d491 tinkering on 3rd person mode 2024-03-30 15:43:48 +01:00
yuni b78340dd1a implement 3rd person view, flexible attachment of camera to actors 2024-03-29 19:41:46 +01:00
yuni c390a18ae5 add crash sound on collision 2024-03-29 16:58:42 +01:00
yuni 25db91f39e implement controls and basic collisions 2024-03-29 16:33:12 +01:00
yuni 62abacf648 add sound for ion engine 2024-03-29 04:36:46 +01:00
yuni 8f682ee5b6 cleanup 2024-03-29 02:40:55 +01:00
yuni 4111f16454 add engine warm up time 2024-03-29 00:03:10 +01:00