1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-08 04:37:13 +08:00

Add import configuration for Chomp.wav audio effect

This commit is contained in:
2025-08-27 10:23:57 +08:00
parent 5b2c2f5cf7
commit 730f732ef1
27 changed files with 387 additions and 73 deletions
+7 -4
View File
@@ -3,15 +3,18 @@ class_name ItemStore
enum ItemType {
BASEBALL,
BASKETBALL
BASKETBALL,
APPLE
}
static var nameMap = {
ItemType.BASEBALL: "棒球",
ItemType.BASKETBALL: "篮球"
ItemType.BASKETBALL: "篮球",
ItemType.APPLE: "苹果"
}
static var idMap = {
ItemType.BASEBALL: "baseball",
ItemType.BASKETBALL: "basketball"
ItemType.BASKETBALL: "basketball",
ItemType.APPLE: "apple"
}
static func getTexture(type: ItemType) -> Texture2D:
return load("res://resources/items/%s.svg" % idMap[type])
return load("res://resources/items/%s.svg" % idMap[type])