feature/refactor-npc-handling-to-desition-handling #3
@@ -47,33 +47,83 @@ local function get_initial_data()
|
|||||||
game_in_progress = false, -- New flag
|
game_in_progress = false, -- New flag
|
||||||
screens = clone_table({
|
screens = clone_table({
|
||||||
{
|
{
|
||||||
name = "Screen 1",
|
name = "Home",
|
||||||
|
decisions = {
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_toilet",
|
||||||
|
"Go to Toilet",
|
||||||
|
function() Context.current_screen = 2; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_walking_to_office",
|
||||||
|
"Go to Walking to office",
|
||||||
|
function() Context.current_screen = 3; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Toilet",
|
||||||
|
decisions = {
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_home",
|
||||||
|
"Go to Home",
|
||||||
|
function() Context.current_screen = 1; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Walking to office",
|
||||||
|
decisions = {
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_home",
|
||||||
|
"Go to Home",
|
||||||
|
function() Context.current_screen = 1; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_office",
|
||||||
|
"Go to Office",
|
||||||
|
function() Context.current_screen = 4; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Office",
|
||||||
decisions = {
|
decisions = {
|
||||||
Util.create_decision(
|
Util.create_decision(
|
||||||
"play_button_mash",
|
"play_button_mash",
|
||||||
"Play Button Mash",
|
"Play Button Mash",
|
||||||
function() Desitions.start_minigame_mash() end
|
function() Desitions.start_minigame_mash() end
|
||||||
),
|
),
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "Screen 2",
|
|
||||||
decisions = {
|
|
||||||
Util.create_decision(
|
Util.create_decision(
|
||||||
"play_rhythm",
|
"play_rhythm",
|
||||||
"Play Rhythm Game",
|
"Play Rhythm Game",
|
||||||
function() Desitions.start_minigame_rhythm() end
|
function() Desitions.start_minigame_rhythm() end
|
||||||
),
|
),
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "Screen 3",
|
|
||||||
decisions = {
|
|
||||||
Util.create_decision(
|
Util.create_decision(
|
||||||
"play_ddr",
|
"play_ddr",
|
||||||
"Play DDR (Random)",
|
"Play DDR (Random)",
|
||||||
function() Desitions.start_minigame_ddr(nil) end
|
function() Desitions.start_minigame_ddr(nil) end
|
||||||
),
|
),
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_walking_to_home",
|
||||||
|
"Go to Walking to home",
|
||||||
|
function() Context.current_screen = 5; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Walking to home",
|
||||||
|
decisions = {
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_home",
|
||||||
|
"Go to Home",
|
||||||
|
function() Context.current_screen = 1; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
|
Util.create_decision(
|
||||||
|
"go_to_office",
|
||||||
|
"Go to Office",
|
||||||
|
function() Context.current_screen = 4; Context.selected_desition_index = 1 end
|
||||||
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user