-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge branch 'hugo/feature/Add-HideAndSeek'
- Loading branch information
Showing
25 changed files
with
455 additions
and
219 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
Apps/LekaActivityUIExplorer/Resources/GEKNewSystem/activities/activity-hideAndSeek.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Leka - iOS Monorepo | ||
# Copyright 2023 APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
id: 4843737a16e348c183551db21053cd8d | ||
name: Hide and Seek | ||
description: L'objectif est de trouver Leka, caché quelque part dans la pièce | ||
image: activity_color_recognition_1 | ||
sequence: | ||
- exercises: | ||
- instructions: Trouves Leka qui est caché et qui fait du bruit et de la lumière | ||
interface: hideAndSeek | ||
payload: | ||
instructions: | ||
text_main_instructions: Appuyer sur "OK" lorsque Leka est caché | ||
text_sub_instructions: | | ||
Incites la personne accompagnée à chercher Leka. | ||
Tu peux lancer un renforçateur pour lui donner | ||
un indice visuel et/ou sonore. | ||
Appuies sur "TROUVÉ !" une fois le robot trouvé. | ||
text_button_ok: OK | ||
text_button_robot_found: Trouvé |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
Modules/ContentKit/Sources/Exercise/Exercice+HideAndSeek.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Leka - iOS Monorepo | ||
// Copyright 2023 APF France handicap | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
public enum HideAndSeek { | ||
|
||
public struct Payload: Codable { | ||
|
||
public struct Instructions: Codable { | ||
public let textMainInstructions: String | ||
public let textSubInstructions: String | ||
public let textButtonOk: String | ||
public let textButtonRobotFound: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case textMainInstructions = "text_main_instructions" | ||
case textSubInstructions = "text_sub_instructions" | ||
case textButtonOk = "text_button_ok" | ||
case textButtonRobotFound = "text_button_robot_found" | ||
} | ||
|
||
public init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
|
||
self.textMainInstructions = try container.decode(String.self, forKey: .textMainInstructions) | ||
self.textSubInstructions = try container.decode(String.self, forKey: .textSubInstructions) | ||
self.textButtonOk = try container.decode(String.self, forKey: .textButtonOk) | ||
self.textButtonRobotFound = try container.decode(String.self, forKey: .textButtonRobotFound) | ||
} | ||
} | ||
|
||
public let instructions: Instructions | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case instructions | ||
} | ||
|
||
public init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
self.instructions = try container.decode(Instructions.self, forKey: .instructions) | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ extension Exercise { | |
case danceFreeze | ||
case remoteStandard | ||
case remoteArrow | ||
case hideAndSeek | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Modules/GameEngineKit/Resources/Exercises.xcassets/HideAndSeek/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"provides-namespace" : true | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...it/Resources/Exercises.xcassets/HideAndSeek/icon-stimulation-light.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon-stimulation-light.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...xcassets/HideAndSeek/icon-stimulation-light.imageset/icon-stimulation-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
...t/Resources/Exercises.xcassets/HideAndSeek/icon-stimulation-motion.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon-stimulation-motion.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...assets/HideAndSeek/icon-stimulation-motion.imageset/icon-stimulation-motion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
...ineKit/Resources/Exercises.xcassets/HideAndSeek/image-illustration.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "image-illustration.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ercises.xcassets/HideAndSeek/image-illustration.imageset/image-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 0 additions & 40 deletions
40
Modules/GameEngineKit/Sources/Staging/HideAndSeek/HiddenView.swift
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
Modules/GameEngineKit/Sources/Staging/HideAndSeek/HideAndSeekLauncher.swift
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
Modules/GameEngineKit/Sources/Staging/HideAndSeek/HideAndSeekPlayer.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.