add function to make text vec to its own module so it can be reused across different modes
This commit is contained in:
@@ -9,13 +9,11 @@ struct
|
||||
val mode =
|
||||
if #attackHeld input orelse #jumpHeld input then
|
||||
GameType.LEVEL LevelType.initial
|
||||
else
|
||||
else
|
||||
let
|
||||
val titleState =
|
||||
if #downHeld input then
|
||||
{focus = OPTIONS_BUTTON}
|
||||
else
|
||||
titleState
|
||||
if #downHeld input then {focus = OPTIONS_BUTTON}
|
||||
else titleState
|
||||
in
|
||||
GameType.TITLE titleState
|
||||
end
|
||||
@@ -24,17 +22,14 @@ struct
|
||||
end
|
||||
| OPTIONS_BUTTON =>
|
||||
let
|
||||
val mode =
|
||||
val mode =
|
||||
if #attackHeld input orelse #jumpHeld input then
|
||||
(* placeholder: go to configure screen instead once that is implemented *)
|
||||
GameType.TITLE titleState
|
||||
else
|
||||
let
|
||||
val titleState =
|
||||
if #upHeld input then
|
||||
{focus = START_BUTTON}
|
||||
else
|
||||
titleState
|
||||
if #upHeld input then {focus = START_BUTTON} else titleState
|
||||
in
|
||||
GameType.TITLE titleState
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user