Skip to content

Commit

Permalink
✨ (GEKExample): Add robot screen action exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Jan 7, 2025
1 parent 02a94c7 commit 31b55cb
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,22 @@ struct ActionThenDnDGridExercises: View {
let viewModel = DnDGridViewModel(coordinator: coordinator)

return DnDGridView(viewModel: viewModel)
.navigationTitle("Robot")
.navigationTitle("Robot Color")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot & Associate", color: .yellow)
ExerciseNavigationButtonLabel(text: "Robot Color & Associate", color: .yellow)
}

NavigationLink {
let gameplay = NewGameplayAssociateCategories(choices: NewGameplayAssociateCategories.kDefaultChoices)
let coordinator = DnDGridCoordinatorAssociateCategories(gameplay: gameplay, action: .robot(type: .image("robotFaceHappy")))
let viewModel = DnDGridViewModel(coordinator: coordinator)

return DnDGridView(viewModel: viewModel)
.navigationTitle("Robot Screen")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot Screen & Associate", color: .yellow)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,23 @@ struct ActionThenDnDGridWithZoneExercises: View {
let viewModel = DnDGridWithZonesViewModel(coordinator: coordinator)

return DnDGridWithZonesView(viewModel: viewModel)
.navigationTitle("Listen Robot")
.navigationTitle("Robot Color")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot & Associate", color: .orange)
ExerciseNavigationButtonLabel(text: "Robot Color & Associate", color: .orange)
}

NavigationLink {
let gameplay = NewGameplayAssociateCategories(choices: NewGameplayAssociateCategories.kDefaultChoicesWithZones)
let coordinator = DnDGridWithZonesCoordinatorAssociateCategories(gameplay: gameplay,
action: .robot(type: .image("robotFaceHappy")))
let viewModel = DnDGridWithZonesViewModel(coordinator: coordinator)

return DnDGridWithZonesView(viewModel: viewModel)
.navigationTitle("Robot Screen")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot Screen & Associate", color: .orange)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,23 @@ struct ActionThenDnDOneToOneExercises: View {
let viewModel = DnDOneToOneViewModel(coordinator: coordinator)

return DnDOneToOneView(viewModel: viewModel)
.navigationTitle("Listen Robot Then Drag & Drop One To One")
.navigationTitle("Robot Color & Right Order")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot & Right Order", color: .red)
ExerciseNavigationButtonLabel(text: "Robot Color & Right Order", color: .red)
}

NavigationLink {
let gameplay = NewGameplayFindTheRightOrder(choices: NewGameplayFindTheRightOrder.kDefaultImageChoicesWithZones)
let coordinator = DnDOneToOneCoordinatorFindTheRightOrder(gameplay: gameplay,
action: .robot(type: .image("robotFaceHappy")))
let viewModel = DnDOneToOneViewModel(coordinator: coordinator)

return DnDOneToOneView(viewModel: viewModel)
.navigationTitle("Robot Screen & Right Order")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot Screen & Right Order", color: .red)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,22 @@ struct ActionThenTTSExercises: View {
let viewModel = TTSViewViewModel(coordinator: coordinator)

return TTSView(viewModel: viewModel)
.navigationTitle("Robot Then Find The Right Answers")
.navigationTitle("Robot Color & Right Answers")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot & Right Answers", color: .blue)
ExerciseNavigationButtonLabel(text: "Robot Color & Right Answers", color: .blue)
}

NavigationLink {
let gameplay = NewGameplayFindTheRightAnswers(choices: NewGameplayFindTheRightAnswers.kDefaultChoices)
let coordinator = TTSCoordinatorFindTheRightAnswers(gameplay: gameplay, action: .robot(type: .image("robotFaceHappy")))
let viewModel = TTSViewViewModel(coordinator: coordinator)

return TTSView(viewModel: viewModel)
.navigationTitle("Robot Screen & Right Answers")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot Screen & Right Answers", color: .blue)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,23 @@ struct ActionThenTTSThenValidateExercises: View {
let viewModel = TTSThenValidateViewViewModel(coordinator: coordinator)

return TTSThenValidateView(viewModel: viewModel)
.navigationTitle("Robot")
.navigationTitle("Robot Color")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot & Right Answers", color: .mint)
}

NavigationLink {
let gameplay = NewGameplayFindTheRightAnswers(choices: NewGameplayFindTheRightAnswers.kDefaultChoices)
let coordinator = TTSThenValidateCoordinatorFindTheRightAnswers(gameplay: gameplay, action: .robot(type: .image("robotFaceHappy")))

Check warning on line 80 in Modules/GameEngineKit/Examples/GameEngineKitExample/Sources/App/Exercises/ActionThenTTSThenValidateExercises.swift

View workflow job for this annotation

GitHub Actions / swiftlint

Line should be 150 characters or less; currently it has 151 characters (line_length)
let viewModel = TTSThenValidateViewViewModel(coordinator: coordinator)

return TTSThenValidateView(viewModel: viewModel)
.navigationTitle("Robot Screen")
.navigationBarTitleDisplayMode(.large)
} label: {
ExerciseNavigationButtonLabel(text: "Robot Screen & Right Answer", color: .mint)
}
}
}
}
Expand Down

0 comments on commit 31b55cb

Please sign in to comment.