Commit Graph

501 Commits

Author SHA1 Message Date
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
Steve 4258575a26 Added Exit, Destructable, and Cannon. 2018-02-14 22:31:21 +00:00
Steve 6c2d39e1d1 Widget and trophy updates. 2018-02-14 19:12:29 +00:00
Steve c87b9a6986 Start of widget loading. 2018-02-14 08:32:09 +00:00
Steve 343c534159 Use sound volumes and fullscreen settings. 2018-02-14 07:41:07 +00:00
Steve d71bee6b11 Use single variable to track mission type. 2018-02-14 07:26:51 +00:00
Steve 718b658a1a Init lookups earlier, to allow for config to be loaded. 2018-02-14 07:14:11 +00:00
Steve dacb561e62 Hide inventory if selected. Clamp objective values to max. 2018-02-14 07:13:28 +00:00
Steve 69145189c9 Fixed key carrying message bug. 2018-02-14 07:12:47 +00:00
Steve ea323685c9 Stats updates. Start of trophy code. 2018-02-13 21:36:42 +00:00
Steve 81910dadf4 v0.3 screenshots. 2018-02-13 08:24:31 +00:00
Steve f4190a5ccd Show and hide radar arrows. Integrate radar access into game. 2018-02-13 08:23:31 +00:00
Steve 035a8ae679 Tidied headers. 2018-02-12 22:40:46 +00:00
Steve 5f150901e1 Radar map updates. 2018-02-12 22:40:15 +00:00
Steve c47a15b88a Check for existence of active when loading. 2018-02-12 19:15:20 +00:00
Steve ca5ce089d2 Expand size of objectives box. 2018-02-12 19:15:03 +00:00
Steve ef9d6db851 Quadtree fixes. 2018-02-12 18:27:12 +00:00
Steve 7f257f2740 Set config defaults in init.c 2018-02-12 18:26:47 +00:00
Steve ff74e19f12 Use createEvilBlob and createEyeDroid functions. 2018-02-12 18:26:18 +00:00
Steve dff8dee815 Clip visible entities. 2018-02-12 08:32:21 +00:00
Steve 26858489b9 Start of radar map. 2018-02-12 08:09:03 +00:00
Steve 57c7ad3bd1 Prompt Teeka to exit immediately. 2018-02-11 14:10:27 +00:00
Steve 4f0a056a9a Play sound when Teeka fires. 2018-02-11 14:10:15 +00:00
Steve e9a6a42b4c Show as green if >= target value. Can happen with dynamic objective targets. 2018-02-11 12:45:02 +00:00
Steve 58c398475c Allow world to be set as static, for testing. 2018-02-11 12:37:37 +00:00
Steve 7c2120d0d2 Reverting teleporter update: breaks later levels. 2018-02-11 12:36:42 +00:00
Steve a67740f6ce Make teleporter a little less eager. 2018-02-11 11:26:32 +00:00
Steve 57aaafa789 Use e here, instead of self, for more clarity. 2018-02-11 11:09:16 +00:00
Steve d75d3ec9cd Quadtree error fix. 2018-02-11 11:08:32 +00:00
Steve 43ef8079fc Save Bob's x,y as ints. 2018-02-11 11:08:21 +00:00
Steve 9fdcf042ca Set type of trap when saving. 2018-02-11 11:08:05 +00:00
Steve 284436f8c9 Remove dead entities as soon as possible, to prevent dangling pointers. 2018-02-11 07:59:11 +00:00
Steve 34b97bcc27 Game saving updates. 2018-02-10 19:03:55 +00:00
Steve 55dabbb018 Start of world saving. 2018-02-10 18:35:56 +00:00
Steve 1b7f2255b1 Don't load custom sprites. 2018-02-10 17:25:43 +00:00
Steve db64944700 Typo fix. 2018-02-10 17:25:11 +00:00
Steve 0aa204ea71 At least 1 enemy type. 2018-02-10 07:57:31 +00:00
Steve bab333d492 Added Teeka, LaserBlob, LaserDroid, PlasmaBlob, PlasmaDroid, SpreadGunBlob, and SpreadGunDroid. 2018-02-10 07:56:28 +00:00
Steve 0197bcd5fa Added MachineGunDroid. 2018-02-09 22:41:37 +00:00
Steve 32109cbc15 Prevent entity from leaving the map bounds. 2018-02-09 22:34:30 +00:00
Steve 972c3c4aa9 Set sprite frame to 0 when dead. 2018-02-09 22:34:01 +00:00
Steve 31d55d6954 Trace line to/from centre of objects. 2018-02-09 22:33:38 +00:00
Steve a6a3cbd6a6 Warn when health is low. 2018-02-09 22:32:57 +00:00
Steve 712a2c47b9 Fix for grenade blob / droid attacks. 2018-02-09 21:54:12 +00:00
Steve 88a8d34425 Misc updates. 2018-02-09 19:20:37 +00:00
Steve 442f561f00 Added Shotgun Blob / Droid, and laser traps. 2018-02-09 19:10:19 +00:00
Steve acb00a7d95 Grenade droid init fixes. 2018-02-09 08:38:02 +00:00
Steve 76dda670bf Added Blue, Red, and Yellow keycards. Added CardReader. 2018-02-09 08:37:51 +00:00
Steve d8c9337a2e Expand quadtree range for platform contact. 2018-02-09 08:21:08 +00:00
Steve 4cd3322799 Default control updates. 2018-02-09 08:10:36 +00:00
Steve d09ceefbb9 Update quadtree for pushed entities. Handle riders. 2018-02-09 07:42:36 +00:00
Steve 9f100106eb Don't add enemies if noEnemies flag set. 2018-02-09 07:42:10 +00:00
Steve 0e71bcc88f Use quadtree for collisions. 2018-02-09 07:21:37 +00:00
Steve 11960757cc Reappear after 1 or 2 seconds. 2018-02-09 07:20:12 +00:00
Steve f3bf29b333 Only add key once. 2018-02-08 22:26:00 +00:00