Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,6 +73,15 @@ WORLD_STATE_FILE_MD_PREFIX = "๐_" # Prefix for world save files
|
|
| 73 |
# File Emojis
|
| 74 |
FILE_EMOJIS = {"md": "๐", "mp3": "๐ต", "png": "๐ผ๏ธ", "mp4": "๐ฅ", "zip": "๐ฆ", "json": "๐"}
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
# --- Directories ---
|
| 78 |
for d in [CHAT_DIR, AUDIO_DIR, AUDIO_CACHE_DIR, SAVED_WORLDS_DIR]:
|
|
|
|
| 73 |
# File Emojis
|
| 74 |
FILE_EMOJIS = {"md": "๐", "mp3": "๐ต", "png": "๐ผ๏ธ", "mp4": "๐ฅ", "zip": "๐ฆ", "json": "๐"}
|
| 75 |
|
| 76 |
+
# --- Mapping Emojis to Primitive Types ---
|
| 77 |
+
# Ensure these types match the createPrimitiveMesh function keys in index.html
|
| 78 |
+
PRIMITIVE_MAP = {
|
| 79 |
+
"๐ณ": "Tree", "๐ฟ": "Rock", "๐๏ธ": "Simple House", "๐ฒ": "Pine Tree", "๐งฑ": "Brick Wall",
|
| 80 |
+
"๐ต": "Sphere", "๐ฆ": "Cube", "๐งด": "Cylinder", "๐ฆ": "Cone", "๐ฉ": "Torus",
|
| 81 |
+
"๐": "Mushroom", "๐ต": "Cactus", "๐ฅ": "Campfire", "โญ": "Star", "๐": "Gem",
|
| 82 |
+
"๐ผ": "Tower", "๐ง": "Barrier", "โฒ": "Fountain", "๐ฎ": "Lantern", "ํป": "Sign Post"
|
| 83 |
+
# Add more pairs up to ~20 if desired
|
| 84 |
+
}
|
| 85 |
|
| 86 |
# --- Directories ---
|
| 87 |
for d in [CHAT_DIR, AUDIO_DIR, AUDIO_CACHE_DIR, SAVED_WORLDS_DIR]:
|