Commit Graph

14 Commits

Author SHA1 Message Date
86aea3a147 trigger confirmation in title-update.sml only when attack is newly pressed (not when attack is held) 2025-02-22 04:53:51 +00:00
e6b0a5f37f add 'saveKeys' boolean to GameType.game_type, which should tell us to assign the new userKeys record to the InputState (which is implemented), and should also tell us to convert the keys to a string and save it to controls.config 2025-02-21 18:32:48 +00:00
e1fb4004dd add 'tempKeys' field to OptionsType.options_type, so that any key binding changes in the menu do not take immediate effect (requires pressing 'save button' in order for changes to be saved and take effect) 2025-02-21 18:18:39 +00:00
b2f58f1c9a record and act on selected keys in options (except for save button and cancel button which are not acted upon) 2025-02-21 14:46:54 +00:00
c6fe819c0c thread time through update functions so it can be used 2025-02-21 08:58:45 +00:00
6cd7edb5ab draw options screen when that is selected 2025-02-20 14:25:20 +00:00
9feae2bb0f add function to make text vec to its own module so it can be reused across different modes 2025-02-20 06:13:33 +00:00
027c8be541 add functionality to move between start button/options button 2025-02-20 06:00:49 +00:00
6d39c17a11 when play button is focused on title screen and either attack or jump button is pressed, start level 2025-02-20 05:46:00 +00:00
f293e084f7 add ability to change colour of text 2025-02-19 20:06:12 +00:00
568b21343b add function which will allow placing text on centre of screen 2025-02-19 19:59:05 +00:00
bd145e6b74 make sure that drawn text is scaled + centered to middle of screen, if window size doesn't match expected ratio of 16:9 2025-02-19 05:37:04 +00:00
dab81e3904 begin function for drawing title screen 2025-02-19 04:07:27 +00:00
25b2c41355 begin title screen by adding title screen type 2025-02-19 03:39:36 +00:00