diff --git a/Modules/GameEngineKit/Examples/GameEngineKitExample/Resources/activity-touchToSelect-one_right_answer-image.yml b/Modules/GameEngineKit/Examples/GameEngineKitExample/Resources/activity-touchToSelect-one_right_answer-image.yml new file mode 100644 index 0000000000..3c78464f14 --- /dev/null +++ b/Modules/GameEngineKit/Examples/GameEngineKitExample/Resources/activity-touchToSelect-one_right_answer-image.yml @@ -0,0 +1,99 @@ +# Leka - iOS Monorepo +# Copyright 2023 APF France handicap +# SPDX-License-Identifier: Apache-2.0 + +id: 6be7fcc5e32942d5804ec336ef127d03 +name: Touch To Select - One Right Answer - Image +description: L'objectif est de trouver la bonne image ou des les rassembler par famille +image: activity_image_recognition_1 +sequence: + - exercises: + - instructions: Touche les animaux + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-animals + type: image + isRightAnswer: true + + - instructions: Touche le portrait + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-food + type: image + - value: image-placeholder-portrait + type: image + isRightAnswer: true + + - instructions: Touche le paysage + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-landscape + type: image + isRightAnswer: true + - value: image-placeholder-animals + type: image + - value: image-placeholder-food + type: image + + - instructions: Touche la nourriture + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-animals + type: image + - value: image-placeholder-portrait + type: image + - value: image-placeholder-food + type: image + isRightAnswer: true + - value: image-placeholder-landscape + type: image + + - instructions: Touche les animaux + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-animals + type: image + - value: image-placeholder-food + type: image + isRightAnswer: true + - value: image-placeholder-landscape + type: image + - value: image-placeholder-portrait + type: image + - value: image-placeholder-food + type: image + + - instructions: Touche le portrait + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-animals + type: image + - value: image-placeholder-food + type: image + - value: image-placeholder-landscape + type: image + - value: image-placeholder-food + type: image + - value: image-placeholder-portrait + type: image + isRightAnswer: true + - value: image-placeholder-animals + type: image diff --git a/Modules/GameEngineKit/Examples/GameEngineKitExample/Resources/activity-touchToSelect-one_right_answer-mixed.yml b/Modules/GameEngineKit/Examples/GameEngineKitExample/Resources/activity-touchToSelect-one_right_answer-mixed.yml new file mode 100644 index 0000000000..4e1c92131f --- /dev/null +++ b/Modules/GameEngineKit/Examples/GameEngineKitExample/Resources/activity-touchToSelect-one_right_answer-mixed.yml @@ -0,0 +1,57 @@ +# Leka - iOS Monorepo +# Copyright 2023 APF France handicap +# SPDX-License-Identifier: Apache-2.0 + +id: 9a5431d4a5084ce4abc48109f90b8504 +name: Touch To Select - One Right Answer - Mixed +description: L'objectif est de trouver la bonne réponse ou des les rassembler par famille +image: activity_mixed_recognition_1 +sequence: + - exercises: + - instructions: Touche l'image + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: image-placeholder-food + type: image + isRightAnswer: true + - value: blue + type: color + + - instructions: Touche les images + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: blue + type: color + isRightAnswer: true + - value: image-placeholder-animals + type: image + - value: green + type: color + - value: image-placeholder-portrait + type: image + isRightAnswer: true + + - instructions: Touche toutes les items + type: selection + interface: touchToSelect + gameplay: selectAllRightAnswers + payload: + choices: + - value: blue + type: color + isRightAnswer: true + - value: image-placeholder-food + type: image + isRightAnswer: true + - value: green + type: color + isRightAnswer: true + - value: image-placeholder-landscape + type: image + isRightAnswer: true diff --git a/Modules/GameEngineKit/Examples/GameEngineKitExample/Sources/ContentView.swift b/Modules/GameEngineKit/Examples/GameEngineKitExample/Sources/ContentView.swift index 935d09db95..745810c9b1 100644 --- a/Modules/GameEngineKit/Examples/GameEngineKitExample/Sources/ContentView.swift +++ b/Modules/GameEngineKit/Examples/GameEngineKitExample/Sources/ContentView.swift @@ -12,7 +12,8 @@ let kActivities: [Activity] = [ // ? dragAndDrop: activity-dragAndDrop--- ContentKit.decodeActivity("activity-touchToSelect-one_right_answer-colors"), - // ContentKit.decodeActivity("activity-touchToSelect-one_right_answer-image"), + ContentKit.decodeActivity("activity-touchToSelect-one_right_answer-image"), + ContentKit.decodeActivity("activity-touchToSelect-one_right_answer-mixed"), // ContentKit.decodeActivity("activity-touchToSelect-multipe_right_answers-mixed"), // ContentKit.decodeActivity("activity-touchToSelect-multipe_right_answers-colors"), // ContentKit.decodeActivity("activity-touchToSelect-multipe_right_answers-images"),