mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 02:11:58 +02:00
Add several boards per level, CM1/CM2 levels and the CE1 'plage des sons' pilot board (0.6.0)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
extends Control
|
||||
## Decor plein ecran derriere un ecran (illustration vectorielle provisoire,
|
||||
## voir assets/CREDITS.md). "forest" pour le CE1, "marsh" pour le CE2.
|
||||
## voir assets/CREDITS.md). Le decor est celui du « tableau » (BackdropKinds) ;
|
||||
## un identifiant inconnu retombe sur la foret.
|
||||
|
||||
const TEXTURES := {
|
||||
"forest": "res://assets/environments/forest_backdrop.svg",
|
||||
"marsh": "res://assets/environments/marsh_backdrop.svg",
|
||||
}
|
||||
|
||||
@export_enum("forest", "marsh") var kind: String = "forest":
|
||||
@export var kind: String = "forest":
|
||||
set(value):
|
||||
kind = value
|
||||
_apply()
|
||||
@@ -21,4 +17,5 @@ func _ready() -> void:
|
||||
|
||||
func _apply() -> void:
|
||||
if _picture != null:
|
||||
_picture.texture = load(TEXTURES.get(kind, TEXTURES["forest"]))
|
||||
var path: String = BackdropKinds.TEXTURES.get(kind, BackdropKinds.TEXTURES["forest"])
|
||||
_picture.texture = load(path)
|
||||
|
||||
Reference in New Issue
Block a user