Commit Graph

455 Commits

Author SHA1 Message Date
Steve 7b915a77a8 Show item pads on radar. 2018-03-05 08:39:54 +00:00
Steve 7dff960e42 Call change environment when finishing teleport, for instances where teleportation occurred in water. 2018-03-05 08:39:42 +00:00
Steve f720d9457c Set MIA to foreground when teleporting. 2018-03-05 08:38:59 +00:00
Steve 3a88c5163a Don't scale items in inventory screen if <= 40px. 2018-03-04 21:40:44 +00:00
Steve af35c426e9 Show destructables on radar as red markers. 2018-03-04 17:04:28 +00:00
Steve f9adb8d8b8 Crush faster. 2018-03-04 17:04:13 +00:00
Steve 83e7276fa9 Defend against divide by 0. 2018-03-04 17:03:11 +00:00
Steve 924978c2a0 Accuracy stat fix. 2018-03-04 17:02:53 +00:00
Steve 4c08307f18 Save game when awarding trophies in Hub. 2018-03-04 16:01:44 +00:00
Steve 222147665e Show oxygen level to 1 decimal place. 2018-03-04 13:36:11 +00:00
Steve 934dd431aa Allow some entities to be crushed, to prevent them blocking lifts, etc. 2018-03-04 13:36:00 +00:00
Steve 95a4131a99 Don't use the camera position for entity observation, as it might never finish, due to clipping. 2018-03-04 10:51:05 +00:00
Steve f3cf1ec945 Drop weapons a little more frequently. 2018-03-04 10:50:00 +00:00
Steve 3b88f1c973 Clip camera when observing entities. 2018-03-04 09:49:31 +00:00
Steve a3a4c01049 Play sound when recharging from power pool. 2018-03-04 09:49:16 +00:00
Steve 1073276c6f Fix for Bob taking slime / lava damage. 2018-03-04 09:48:33 +00:00
Steve 9a18d03a39 Mark item as collected, so that it doesn't bump objective counter. 2018-03-04 08:15:30 +00:00
Steve a08d52c2fb When dropping carried items, allow them to be picked up again(!) 2018-03-03 16:05:55 +00:00
Steve 836eaa5b50 Don't show items on radar that have been used. 2018-03-03 16:05:34 +00:00
Steve b4f9692f75 Make pistols appear a little less often. 2018-03-03 16:05:17 +00:00
Steve 8bbdeb9407 Don't scale objects if they already fit into the slot. 2018-03-03 16:05:04 +00:00
Steve fca87f6575 Use MAX_DESCRIPTION_LENGTH to prevent target name truncation. 2018-03-03 16:04:40 +00:00
Steve 6ba888436b Ensure Bob faces correct way at beginning of mission. 2018-03-03 16:04:18 +00:00
Steve 53ee605bd4 Pause sound when observing entity activation. 2018-03-03 07:41:51 +00:00
Steve 741efd01ad Set eliminate all enemies if we need to clear the level. 2018-03-03 07:41:38 +00:00
Steve 0c2f069fef Only count laser hits once. 2018-03-03 07:41:05 +00:00
Steve f634a28127 Scroll to observing entity. 2018-03-02 22:21:45 +00:00
Steve 7a79ef4b53 Tidied headers. 2018-03-02 08:30:39 +00:00
Steve 1d01bec093 Show fewer stats per page. 2018-03-02 08:29:36 +00:00
Steve 0a5d2d8cfb Show additional stats. 2018-03-02 08:09:04 +00:00
Steve eb6e653837 Cell and heart saving bug fix. 2018-03-01 22:30:33 +00:00
Steve 7037b40c7b Display time played correctly. 2018-03-01 08:24:05 +00:00
Steve 2634a6fd97 Tidied all header. 2018-03-01 07:52:50 +00:00
Steve a895dad6d9 Tidy headers update. 2018-03-01 07:51:39 +00:00
Steve dd7188afc7 Store Bob's facing, to restore when resetting. 2018-03-01 07:41:04 +00:00
Steve 4d086a5136 Show more entity location information on the radar. 2018-02-28 21:59:20 +00:00
Steve 7805a128ad Clear old message, to allow repeats. 2018-02-28 08:29:30 +00:00
Steve 695e1fc5da Don't observe entities that are close to another that is already being observed. 2018-02-28 08:00:24 +00:00
Steve c98e93ee2b Pause audio when pausing game / viewing radar. 2018-02-28 07:52:38 +00:00
Steve 6b246971b3 Tidied headers. 2018-02-27 22:35:31 +00:00
Steve 18fa11d278 Start of extra blood / explosions. 2018-02-27 21:55:15 +00:00
Steve d2bc37eebf Allow selection of screen resolution. 2018-02-27 21:54:52 +00:00
Steve 20d1548f42 Fully clean trophy bug fix. 2018-02-27 08:16:34 +00:00
Steve b31d061d42 Only print item quantity if it's more than 0. 2018-02-27 08:16:18 +00:00
Steve 4d41f7f56c Load new sounds. 2018-02-27 08:16:06 +00:00
Steve 938fbaf9e0 Destructable death bug fix. 2018-02-27 08:15:53 +00:00
Steve 24d26b094c Sort inventory when item is removed. 2018-02-27 08:14:54 +00:00
Steve a085a028b9 Laser trap and item pad sound effects. 2018-02-27 08:14:37 +00:00
Steve 80f8af703a Always play explosion sound in channel 0. 2018-02-27 08:14:21 +00:00
Steve af4ce38296 Added directional audio. 2018-02-26 18:56:13 +00:00
Steve a729bfe7ee Anchor radar at bottom of map. 2018-02-26 08:19:21 +00:00
Steve 583373402a Allow random screenshots to be taken. 2018-02-26 07:53:12 +00:00
Steve bf9ab57e2f Use specific collision bounds for certain objects. 2018-02-26 07:38:20 +00:00
Steve 5282345dc6 Misc. code fixes. 2018-02-25 17:32:29 +00:00
Steve df6bda4629 More variation in decoration movement. 2018-02-25 17:32:15 +00:00
Steve 89f2e399a5 Quadtree add / remove bug fixes. 2018-02-25 17:31:32 +00:00
Steve 4ff02a82e5 Don't allow weapon to be fired if owner's facing is FACING_DIE. 2018-02-25 17:30:05 +00:00
Steve 501db4420b Use entity id to play sounds. 2018-02-25 17:29:44 +00:00
Steve 5f7367403d Check for fully completed mission in PostMission. 2018-02-25 12:53:48 +00:00
Steve 443255baea Debugging stuff. 2018-02-25 12:36:34 +00:00
Steve 68fff35e1a Don't display blank messages. 2018-02-25 12:36:12 +00:00
Steve a13e22fb85 Play menu sounds. 2018-02-25 12:23:00 +00:00
Steve b3e87f8cfb Start of game over handling. 2018-02-25 12:12:31 +00:00
Steve befea2ac65 Allow entities to mostly go offscreen, but not enough to let the player cut across the level. 2018-02-25 08:36:40 +00:00
Steve 537f3c42ff Extern fixes. 2018-02-25 07:55:17 +00:00
Steve ada4768efd Implemented Tank Commander boss. 2018-02-25 07:55:06 +00:00
Steve 15d6ca5678 Added EyeDroid Commander boss battle. 2018-02-24 16:53:03 +00:00
Steve 1c149695e2 Use ints instead of float. 2018-02-24 16:01:36 +00:00
Steve db9cddb7e8 Load / save functions for weapon pickups. 2018-02-24 16:00:48 +00:00
Steve 234f8fe73c Show boss health bar on HUD. 2018-02-24 16:00:30 +00:00
Steve 997d423103 Don't show teleporting or gone entities on the radar. 2018-02-24 16:00:20 +00:00
Steve ef1d634057 Trigger gameplay message crash fix. 2018-02-24 16:00:04 +00:00
Steve 600032a41b Only mark Bob as gone if this isn't a boss mission. 2018-02-24 15:59:46 +00:00
Steve 9c279da3a2 Ensure that sprite frames don't overrun array bounds. 2018-02-24 15:59:26 +00:00
Steve 891d551179 Trophy screenshot update. 2018-02-24 15:58:33 +00:00
Steve 0d08f6096f Boss updates. 2018-02-24 15:58:14 +00:00
Steve b03776cef6 Debugging and auto mission completion. 2018-02-23 19:26:13 +00:00
Steve 01246d14b6 Don't show negative health on hud. 2018-02-23 19:25:46 +00:00
Steve f1c3b3e680 Set Bob to gone when killed, to avoid crash. 2018-02-23 19:25:31 +00:00
Steve bf1e8f64f6 Make enemies less aggressive, except in Outposts. 2018-02-23 19:25:07 +00:00
Steve 1b8e5ef641 Make cannon more aggressive. Align missile flame trail. 2018-02-23 07:49:59 +00:00
Steve fc9b8d2daa Line of sight update. 2018-02-23 07:47:55 +00:00
Steve 575ce1eadd Replaced health, power, oxygen text with icons. 2018-02-22 19:19:43 +00:00
Steve dba5248a41 Fix segfault when freeing entities. 2018-02-22 19:03:48 +00:00
Steve b62b9fece7 Fix hub memory leak. 2018-02-22 19:01:16 +00:00
Steve bd02ee2b4d Post mission bug fixes. 2018-02-22 07:45:57 +00:00
Steve aba8d5aa3b Show health, power, and oxygen values next to bars. 2018-02-22 07:13:37 +00:00
Steve 5a134f2250 Handle mission result correctly. 2018-02-21 22:04:01 +00:00
Steve e887e385c7 Restore game state if the mission remains in incomplete status. 2018-02-21 08:43:45 +00:00
Steve 84c934a1cb Misc fixes and code tidy. 2018-02-21 08:16:50 +00:00
Steve f2c8359e59 Start of post mission screen. 2018-02-21 08:16:18 +00:00
Steve e78c99f5d0 Access options from hub. 2018-02-21 08:13:28 +00:00
Steve a351849f5c Use define instead of hardcoded number. 2018-02-21 08:13:19 +00:00
Steve 2fabf5302b Read joystick axis using events. 2018-02-20 22:12:07 +00:00
Steve 59e8b08fdc Set and save control options. 2018-02-20 19:24:17 +00:00
Steve f5bf3ddcaa Draw and configure input widgets. 2018-02-20 17:50:26 +00:00
Steve 1b4e50c727 Access options from world. 2018-02-20 17:50:01 +00:00
Steve 2600f3cd1a Restrict displaying of trophies during mission. 2018-02-20 12:31:41 +00:00
Steve 8a9dcb1ff7 Further widget updates. 2018-02-20 12:17:06 +00:00
Steve fb16e8e8f0 Hide controller options if no controller available. 2018-02-20 12:16:54 +00:00
Steve 289415cc87 Start of options screen. 2018-02-20 11:29:50 +00:00
Steve e745a287f4 Implemented mission quit option. 2018-02-20 08:14:35 +00:00
Steve edde9fac2f Integrate trophy display. 2018-02-19 22:32:14 +00:00
Steve dc85abac77 Start of options screen. 2018-02-19 19:15:07 +00:00
Steve 28d3c70183 Checkpoint bug fix. 2018-02-19 19:14:32 +00:00
Steve dbcd2debc3 Put atlas entries into buckets. 2018-02-19 19:14:03 +00:00
Steve 72efd1048b Trophy updates. 2018-02-19 19:13:29 +00:00
Steve 44e34ab7de Show stats during level. 2018-02-19 19:12:55 +00:00
Steve 1eb9530fb5 Stats display update. 2018-02-19 08:32:15 +00:00
Steve 098f3df811 Implemented stats display. 2018-02-19 08:28:42 +00:00
Steve cdea5b42fb Draw hud widgets. 2018-02-18 22:22:05 +00:00
Steve 03c02c01f9 12-hit grenade combo trophy. Save screenshot when trophy earned. 2018-02-18 17:58:46 +00:00
Steve bea993ece0 Ensure we draw entities when in observing mode. 2018-02-18 17:01:38 +00:00
Steve 17cb8bdc84 Draw clouds on hub map. 2018-02-18 14:22:45 +00:00
Steve 299b15dac5 Misc. 2018-02-18 11:53:10 +00:00
Steve 9f8ef4ad42 Set world status upon init. 2018-02-18 11:53:01 +00:00
Steve daeaa28e88 Flash oxygen when low. 2018-02-18 11:52:40 +00:00
Steve 7affe23a99 Inc stat when Eyedroid explosions kills another enemy. 2018-02-18 11:52:30 +00:00
Steve b8971a91f4 MIssion unlocking updates. 2018-02-18 11:25:14 +00:00
Steve 25cf4f2814 Removed resumingMission field. 2018-02-18 11:25:00 +00:00
Steve 46d6ce1cd6 Start mission from hub. 2018-02-18 09:29:37 +00:00
Steve 2cd629cf86 Added post mission code. 2018-02-18 09:29:26 +00:00
Steve 1ac2960932 Add keys to mission when starting. 2018-02-18 09:28:25 +00:00
Steve bd6b6d752a Show start and cancel widgets on mission info. 2018-02-18 07:59:14 +00:00
Steve 17ee7642e9 Return pointer to sprite rect. 2018-02-17 16:53:30 +00:00
Steve 357fbdc8a4 Destroy stuff at end of mission. 2018-02-17 16:53:18 +00:00
Steve 94db89cc08 Added cursor to Hub. 2018-02-17 16:52:51 +00:00
Steve 5ca947cab0 Draw mission info and keys. 2018-02-17 07:56:29 +00:00
Steve 353b0180a6 Start of main hub. 2018-02-16 22:50:55 +00:00
Steve 427848db9a Target marker fixes. 2018-02-16 08:41:02 +00:00
Steve 6f69f9a56a Always add to quadtree if not dead or teleporting. 2018-02-16 08:08:52 +00:00
Steve 0a2cd17622 Make doors static by default. 2018-02-16 08:08:33 +00:00
Steve 344460fdf5 Allow widget select using player controls. 2018-02-16 08:08:19 +00:00
Steve 8ab5ebe819 Permit access to stats and trophy info from in-game. 2018-02-16 07:26:04 +00:00
Steve bfef8560cc Only count bullet hit that strike enemies, bosses, or destructables. 2018-02-16 07:21:59 +00:00
Steve e5976f04dd More misc. updates. 2018-02-15 22:56:34 +00:00
Steve 0d87786af4 More widget work. 2018-02-15 22:56:22 +00:00
Steve 1df85d0937 Misc. tweaks. 2018-02-15 21:40:21 +00:00
Steve 5ecdab744d Save Bob at most recently checkpoint position. 2018-02-15 21:39:46 +00:00
Steve 203183edc1 Widget and trophy updates. 2018-02-15 21:38:26 +00:00
Steve a47e932024 Load / save game. 2018-02-15 21:37:43 +00:00
Steve 48abf156d8 Start of drawing widgets. 2018-02-15 18:04:37 +00:00
Steve 9e8b0ab2f9 Sprite atlas update. 2018-02-15 07:59:59 +00:00
Steve 165cafaf04 Allow items to be picked up sooner after they are dropped. 2018-02-15 07:50:05 +00:00
Steve 15857a8dfd Name aqua blob, to prevent save crash. 2018-02-15 07:49:46 +00:00
Steve 79958fa79a Fixed cannon dying. 2018-02-15 07:49:28 +00:00
Steve aa02babf98 Init functions. 2018-02-15 07:49:20 +00:00
Steve b3ed2b1762 Add item pad. 2018-02-15 07:48:51 +00:00
Steve 3e23d83f3a Load width and height for widgets. 2018-02-14 22:32:03 +00:00
Steve 6e93955589 Process and show trophies. 2018-02-14 22:31:42 +00:00