Commit Graph

  • 58b9941d73 Add vector of MenuStackFrame menustack to Game Misa 2020-04-16 18:52:40 -07:00
  • 13d2d6b623 Add struct MenuStackFrame Misa 2020-04-16 16:22:40 -07:00
  • 503b3f1692 Move temp int off of Game Misa 2020-04-16 16:08:56 -07:00
  • 56a168eed6 Remove ABCDEFG comment Misa 2020-04-16 16:03:25 -07:00
  • 7b233a0e69 Rename Menu::setslowdown2 to Menu::setslowdown Misa 2020-04-16 16:02:01 -07:00
  • 1c2cee48a7 Remove unused menu setslowdown1 Misa 2020-04-16 15:41:31 -07:00
  • 9e99246e02 Turn game.currentmenuname "else-if"s into case-switches Misa 2020-04-16 15:19:17 -07:00
  • ceb8d3f3d8 Remove unused variable Game::menuselection Misa 2020-04-15 23:33:25 -07:00
  • e8a07f9c3d Convert menu names to be an enum instead of being stringly-typed Misa 2020-04-15 21:53:36 -07:00
  • 83ca75a831 Change "else if"-chain in editormenuactionpress to case-switch Misa 2020-04-15 21:01:00 -07:00
  • 78169cdc1c Move editor menu option rendering to separate function Misa 2020-04-15 20:55:34 -07:00
  • 0b5d7b1fef Move editor menu ACTION press handling to separate function Misa 2020-04-15 20:52:21 -07:00
  • d6d9b505a2 Capitalize "No Death Mode" in "not available" message Misa 2020-04-15 20:45:43 -07:00
  • 256ead4799 Bump version number in bottom-right to 2.3 Misa 2020-04-15 20:41:26 -07:00
  • cbd7ef94ba Gray out play modes if disabled due to enabled accessibility options Misa 2020-04-15 20:33:04 -07:00
  • 38d749f536 Prevent selecting Secret Lab if game isn't at full speed Misa 2020-04-15 20:17:36 -07:00
  • d9d0748ce3 Use case-switch for menu options where possible Misa 2020-04-15 20:10:11 -07:00
  • 46d0b3a4e9 Fix indentation of "graphicoptions" in Render.cpp Misa 2020-04-15 19:52:49 -07:00
  • 678ade88b9 De-duplicate "secret lab" menu option in "play" menu Misa 2020-04-15 19:38:42 -07:00
  • 4f6835c485 De-duplicate copy-pasted input/render code in menus Misa 2020-04-15 17:59:03 -07:00
  • bf62233b60 Fix compile failure if both MAKEANDPLAY and NO_CUSTOM_LEVELS are defined Misa 2020-04-15 17:52:25 -07:00
  • 4ace8d15be Fix NO_CUSTOM_LEVELS builds breaking after command-line playtesting Misa 2020-04-15 16:51:58 -07:00
  • b835ce3927 Move menu rendering to separate function Misa 2020-04-15 16:29:54 -07:00
  • 1e3879b8fe De-duplicate "You have unlocked" menu input and options Misa 2020-04-15 12:16:53 -07:00
  • 119d2ad25f Condense indentation levels of else-if chain in "play" menu Misa 2020-04-15 12:11:33 -07:00
  • be64d4f704 Move menu ACTION press handling to separate function Misa 2020-04-15 10:14:42 -07:00
  • fe178f817b Remove outdated commented-out graphics options code Misa 2020-04-14 23:29:58 -07:00
  • 511de0c5c1 Refactor menu creation code Misa 2020-04-14 21:50:17 -07:00
  • a0d2be6362 Add Game::option() Misa 2020-04-14 21:12:24 -07:00
  • c5db440318 Add struct MenuOption Misa 2020-04-14 21:11:10 -07:00
  • 5fdbaa0076 Remove unused function entityclass::cblocks() Misa 2020-04-14 19:42:07 -07:00
  • 76e3b3ede4 Remove map.numshinytrinkets Misa 2020-04-14 19:39:08 -07:00
  • 4f7290440b Remove now-unused parameter 't' from mapclass::settrinket() Misa 2020-04-14 19:37:00 -07:00
  • d43daa5fae Dynamically add shinytrinkets instead of using indices Misa 2020-04-14 19:34:10 -07:00
  • d63ba761d5 Remove map.numteleporters Misa 2020-04-14 19:32:30 -07:00
  • 5b9c6a9680 Remove now-unused parameter 't' from mapclass::setteleporter() Misa 2020-04-14 19:29:19 -07:00
  • fd7d6076e0 Dynamically add teleporters instead of using indices Misa 2020-04-14 19:25:12 -07:00
  • d4034661e2 Don't use std::count() in Game::crewmates() Misa 2020-04-09 16:17:52 -07:00
  • 3774ec390c Don't use std::count() in Game::trinkets() Misa 2020-04-09 16:17:11 -07:00
  • 45e7a9db3e Use for-loop in Game::crewrescued() Misa 2020-04-09 16:01:53 -07:00
  • a37715abb6 Put trinkets() and crewmates() declaration on their own lines Misa 2020-04-09 15:58:24 -07:00
  • 17a64aee7a Make obj.customcollect a vector of bools Misa 2020-04-08 23:58:03 -07:00
  • 8507bdc65d Change obj.collect into a vector of bools Misa 2020-04-08 23:56:36 -07:00
  • 7493129044 Remove unused function entityclass::confirmflags() Misa 2020-04-08 23:51:00 -07:00
  • ee5f8dce78 Remove unused function entityclass::resetflags() Misa 2020-04-08 23:49:57 -07:00
  • 0648d6bb0f Remove unused function entityclass::changecustomcollect() Misa 2020-04-08 23:49:21 -07:00
  • a6340f356e Remove unused function entityclass::changecollect() Misa 2020-04-08 23:48:51 -07:00
  • c24e2abfad Remove now-unused function entityclass::changeflag() Misa 2020-04-08 23:48:08 -07:00
  • 2ba9a0e67b Don't use obj.changeflag() to set flags Misa 2020-04-08 23:46:41 -07:00
  • abfae6b4d7 Declare obj.flags a vector of bools instead of ints Misa 2020-04-08 23:34:26 -07:00
  • 2f1c400c9a Remove temporary UtilityClass from Game::savestats() Misa 2020-04-08 22:32:27 -07:00
  • 699af342e8 Refactor Game::crewrescued() to use std::count() instead Misa 2020-04-08 22:31:15 -07:00
  • 588a49dbc8 Remove useless variable game.timerStartTime Misa 2020-04-08 22:29:18 -07:00
  • 6428a14244 Declare game.teleport as a bool instead of an int Misa 2020-04-08 22:27:13 -07:00
  • c5803863bf Remove unused variables temp_unlock and temp_unlocknotify Misa 2020-04-08 22:24:33 -07:00
  • 1110d46c8b Remove unused stat_* variables Misa 2020-04-08 22:22:49 -07:00
  • 317eece28d Remove useless variable game.coins Misa 2020-04-08 22:20:26 -07:00
  • 756c409d1d Remove unused variable game.trinkencollect Misa 2020-04-08 22:18:27 -07:00
  • fb9791a4c7 Remove now-useless function editorclass::countstuff() Misa 2020-04-08 22:15:18 -07:00
  • 89b6b67a77 Don't use separate variable for number of crewmates in level Misa 2020-04-08 22:13:43 -07:00
  • 0047dc8d81 Don't use separate variable for number of trinkets in level Misa 2020-04-08 22:09:11 -07:00
  • 5661f46a52 Remove unnecessary int casts relating to custom crewmate numbers Misa 2020-04-08 22:03:41 -07:00
  • 6b317c5ab9 Remove map.customcrewmates Misa 2020-04-08 22:01:32 -07:00
  • 85bd7d9a2d Remove map.customtrinkets Misa 2020-04-08 21:56:47 -07:00
  • c077e51fb4 Don't use separate variable for number of collected crewmates Misa 2020-04-06 23:53:32 -07:00
  • 9510c3c871 Don't use separate variable for number of collected trinkets Misa 2020-04-06 23:46:27 -07:00
  • 94b2ebd55c Implement command-line playtesting (#163) leo60228 2020-04-09 12:03:24 -07:00
  • 4511ea172e Don't boot user back to main menu after toggling using MMMMMM Misa 2020-04-06 12:34:49 -07:00
  • 5a9cd861ef Don't update game.stat_trinkets in custom levels Misa 2020-04-05 14:55:45 -07:00
  • 7f0db19abd Fix memory leak from warping moving platforms Misa 2020-04-04 12:54:55 -07:00
  • 79a54f23e6 De-dupe screen transition / warping logic Misa 2020-04-04 12:39:17 -07:00
  • 7899cb8088 Condense some nested else-if statements Misa 2020-04-04 12:19:18 -07:00
  • e6c6c7cf60 Condense some nested if-statements in gamelogic() Misa 2020-04-04 12:16:16 -07:00
  • 3818340011 Clean up some indentation in gamelogic() Misa 2020-04-04 12:13:24 -07:00
  • 37a3670dde Rename titlerender.cpp to Render.cpp Misa 2020-04-03 22:53:31 -07:00
  • 97e340b5a7 Fix typo "Your have unlocked" to "You have unlocked" Misa 2020-04-03 21:15:30 -07:00
  • 168fa53f7c Refactor scriptclass txt to not use a separate length-tracker Misa 2020-04-03 18:04:55 -07:00
  • 31321ee19c Remove textboxclass's firstcreate and clear, simplify initializations Misa 2020-04-03 17:44:25 -07:00
  • 09c9a6b862 Refactor text box contents to not use a separate length-tracker Misa 2020-04-03 17:41:01 -07:00
  • 2ec1080b3d Remove remnant of 'active' if-conditional Misa 2020-04-03 17:26:29 -07:00
  • bc0d22eec6 Refactor text boxes to not use the 'active' system Misa 2020-04-03 17:25:17 -07:00
  • 0127a84698 Move text box fadeout removal to Graphics::drawgui() Misa 2020-04-03 17:10:10 -07:00
  • 313c2661af Fix nested if-statements relating to blocks in Entity.cpp Misa 2020-04-03 17:06:07 -07:00
  • 9de5b57989 Remove blockclass::clear(), simplify blockclass initializations Misa 2020-04-03 16:49:46 -07:00
  • b027a3ddc6 Fix mixed indentation in Enter-handling code when playtesting Misa 2020-04-03 16:34:20 -07:00
  • 2a80c80f6c Fix undefined behavior when removing activity zones Misa 2020-04-03 16:28:50 -07:00
  • f10ac88c1a Refactor blocks to not use the 'active' system Misa 2020-04-03 16:11:02 -07:00
  • 7689241d3a Add macro removeblock_iter() Misa 2020-04-03 15:55:04 -07:00
  • 7edbebac92 Move entityclass::setblockcolour() to blockclass::setblockcolour() Misa 2020-04-03 15:26:19 -07:00
  • 2cb90afbda Remove entclass::clear(), simplify entclass initializations Misa 2020-04-03 14:57:07 -07:00
  • ecf556dc55 Remove 'if (entities[i].state == 0) { }' Misa 2020-04-03 14:52:29 -07:00
  • 1b78db9079 Remove two '//Active' comments Misa 2020-04-03 14:50:08 -07:00
  • 2f3eeccdf0 Fix nested if-statement chains relating to entities in Entity.cpp Misa 2020-04-03 14:48:27 -07:00
  • e40a4c3948 Remove some more outdated comments from Entity.cpp Misa 2020-04-03 14:42:25 -07:00
  • 0fb37352ce Make entityclass::updateentities() no longer a bool Misa 2020-04-03 14:36:04 -07:00
  • 46c17052c6 Remove unused function entityclass::gettype() Misa 2020-04-03 14:34:15 -07:00
  • 744c685614 Remove entityclass::cleanup() Misa 2020-04-03 14:31:32 -07:00
  • fd417d6a8c Remove remnants of entity 'active' conditionals Misa 2020-04-03 13:57:02 -07:00
  • b1b1474b7b Refactor entities and linecrosskludge to not use the 'active' system Misa 2020-04-03 13:50:16 -07:00
  • a67ab8e3a7 Add macro removeentity_iter() Misa 2020-04-03 13:07:04 -07:00