Commit Graph

431 Commits

Author SHA1 Message Date
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
Steve 50a1c78c10 Don't show counts on mini inventory (not enough screen real esate). 2018-02-08 22:25:48 +00:00
Steve 1ed138b766 Use power instead of value for batteries. 2018-02-08 22:25:23 +00:00
Steve 70d1101ded Assign self when spawning enemies. 2018-02-08 22:25:10 +00:00
Steve 46d9983142 Increase available number of sounds channels. 2018-02-08 22:24:53 +00:00
Steve 28023ba18b Correcly apply damage to Bob. 2018-02-08 22:24:19 +00:00
Steve 78ac0154bb Tidied headers. 2018-02-08 21:54:47 +00:00
Steve 8da314ea63 Fixes for joypad buttons. 2018-02-08 21:54:30 +00:00
Steve 453d2ae3dc Load / save config. 2018-02-08 21:54:11 +00:00
Steve 07dd76c5d1 Handle found keys. 2018-02-08 21:53:52 +00:00
Steve ccf228f875 Control and input updates. 2018-02-08 21:53:32 +00:00
Steve b00b9dcdb4 Added Grenade Blob and Grenade Droid. 2018-02-08 21:53:02 +00:00
Steve 0335b7e837 Use uint32 for file lengths. 2018-02-08 21:30:02 +00:00
Steve 14b503eff2 Added Machine Gun Blob. Load Cells and Hearts. 2018-02-08 08:35:09 +00:00
Steve 9bda46bb9b Show required objectives in red. 2018-02-08 08:21:37 +00:00
Steve dc5aead758 Load compressed map data. 2018-02-08 08:07:04 +00:00
Steve 14f4ef57ad Load and play music during mission. 2018-02-08 07:34:35 +00:00
Steve bf0f64caf8 Show objectives intro screen when starting a level. 2018-02-08 07:26:42 +00:00
Steve e9c1560bde Show objective and inventory screen. 2018-02-07 22:49:42 +00:00
Steve b862123c95 Focus camera on doors, etc., that are opened when offscreen. 2018-02-07 19:21:13 +00:00
Steve 3afbfabeb5 Joypad controls (hardcoded, for now). 2018-02-07 19:20:36 +00:00
Steve c287a1333e Control updates. 2018-02-07 18:27:42 +00:00
Steve 0618c05b52 Store all items as items, rather than separating out keys. 2018-02-07 07:51:47 +00:00
Steve b27b3dd2f8 Draw inventory items on HUD. 2018-02-07 07:51:25 +00:00
Steve a8ce1daf4e Added blitScaled. Removed unused functions. 2018-02-06 22:28:19 +00:00
Steve eb3a39084a Added unit reappear code. 2018-02-06 22:27:53 +00:00
Steve fed96ef890 Misc. fixes. 2018-02-06 22:27:28 +00:00
Steve 220e3b99e9 Item handling updates. Keys should stack. 2018-02-06 22:27:02 +00:00
Steve b92c9dea9c Start of joypad handling. 2018-02-06 22:26:05 +00:00
Steve 4e981ecf78 Show health, power, and oxygen on HUD. Inventory on right-hand side. 2018-02-06 19:07:43 +00:00
Steve 2543d469ac Show info point messages. 2018-02-06 08:16:30 +00:00
Steve fb5723d96e Don't uppercase messages. 2018-02-06 07:45:28 +00:00
Steve d5d70a017f Effect bug fixes. 2018-02-06 07:45:18 +00:00
Steve 156a5dac8f isOnScreen -> isVisible. 2018-02-06 07:32:08 +00:00
Steve e70966e35d Power up fixes. 2018-02-06 07:29:39 +00:00
Steve 89b4b05a11 Added controls.c. 2018-02-05 22:08:35 +00:00
Steve cc280f326f Code tidying. 2018-02-05 22:08:14 +00:00
Steve 0e57f9ce79 Explosion effects. 2018-02-05 22:07:04 +00:00
Steve 683746b239 Decoration updates. 2018-02-05 22:06:53 +00:00
Steve 8c9ee4f553 Move controls into doPlayer() 2018-02-05 22:06:29 +00:00
Steve 9c6ada01dc Sort entities in draw order. 2018-02-05 22:06:00 +00:00
Steve 43ec9435f2 Init effects. 2018-02-05 08:39:02 +00:00
Steve 9128fd84e9 Test world type before loading entities. 2018-02-05 08:38:39 +00:00
Steve c22c09e78f Restored enemy behaviour. 2018-02-05 08:38:21 +00:00
Steve 20404fd6eb Init debris and flesh chunks. 2018-02-05 08:37:54 +00:00
Steve d10356c42c Added swapSelf() to handle current entity handling. 2018-02-05 08:37:07 +00:00
Steve c3ca4a39e2 Checks for training, boss, and outpost missions. 2018-02-04 16:18:17 +00:00
Steve 800f26055f Added particle effects. 2018-02-04 16:14:14 +00:00
Steve 113cc59ea6 Show health, power, and oxygen on HUD. 2018-02-04 15:37:19 +00:00
Steve a84f261154 Only set entity size once. Test entity is dead before testing alive (race condition when adding to quadtree). 2018-02-04 12:01:55 +00:00
Steve 7e88125864 Default function for changeEnvironment. 2018-02-04 11:24:19 +00:00
Steve c4346550cf Only add to quadtree if alive. 2018-02-04 11:00:42 +00:00
Steve 78422382e2 Added default die() function. 2018-02-04 11:00:32 +00:00
Steve 1fbf7971b8 Moved bullets into entities/bullets. 2018-02-04 11:00:14 +00:00
Steve 7577482cc4 Iniital spriteFrame must be -1. 2018-02-04 09:56:53 +00:00
Steve ac48179541 Use targetValue for objectives. 2018-02-04 09:56:37 +00:00
Steve 9841418d20 Weapon fixes. 2018-02-04 09:50:07 +00:00
Steve 827a825c2d Jetpack / aqualung fix. 2018-02-04 08:20:49 +00:00
Steve 5bfea20534 Pick up and store items. 2018-02-04 08:11:42 +00:00
Steve 5588abc063 Show hud messages. 2018-02-04 07:50:54 +00:00
Steve d3db893190 Moved nothing() to MIA. 2018-02-03 18:32:12 +00:00
Steve 3d2000e818 Always set entity size. 2018-02-03 18:31:55 +00:00
Steve 19f7afcf0e PushBlock activation fix. 2018-02-03 18:19:26 +00:00
Steve fc519c54b0 Pushing code fix. 2018-02-03 18:17:45 +00:00
Steve 72de423bba Preserve original string when activitating entites. 2018-02-03 16:31:12 +00:00
Steve 52b4336c00 Misc. debugging bits. 2018-02-03 16:22:04 +00:00
Steve 187b887698 Free data. 2018-02-03 16:21:53 +00:00
Steve b878a61854 Allocate MIA and target char space. 2018-02-03 16:21:37 +00:00
Steve d51e96c74a Fixed teleporter. 2018-02-03 16:13:37 +00:00
Steve e97d38e278 Activate entities correctly. 2018-02-03 15:53:21 +00:00
Steve b8aa460221 Basic movement. Various bug fixes. 2018-02-03 13:07:56 +00:00