Spaces:
Runtime error
Runtime error
kwabs22
commited on
Commit
·
c03c154
1
Parent(s):
8bf306e
Test mermaid editor load
Browse files- app.py +8 -2
- relatively_constant_variables.py +56 -0
app.py
CHANGED
|
@@ -826,8 +826,14 @@ with gr.Blocks() as demo:
|
|
| 826 |
|
| 827 |
with gr.Accordion("Decisions / Timeline Creation to Story to Config Conversation", open=False):
|
| 828 |
with gr.Tab("Structures for interesting timeline progression"):
|
| 829 |
-
gr.
|
| 830 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 831 |
with gr.Tab("Timeline Guide for Config Generation or evelution"):
|
| 832 |
with gr.Accordion("Empty Config shape for explaining to LLM", open=False):
|
| 833 |
gr.HTML(f"placeholder for current empty JSON config shape")
|
|
|
|
| 826 |
|
| 827 |
with gr.Accordion("Decisions / Timeline Creation to Story to Config Conversation", open=False):
|
| 828 |
with gr.Tab("Structures for interesting timeline progression"):
|
| 829 |
+
with gr.Tab("Some Example Structures and considerations"):
|
| 830 |
+
gr.HTML(f"Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story<br><br>{mermaidstorystructures[0]}")
|
| 831 |
+
|
| 832 |
+
with gr.Tab(""):
|
| 833 |
+
gr.HTML("Placeholder for mermaid diagrams")
|
| 834 |
+
mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
|
| 835 |
+
mermaideditoriframe = gr.HTML("")
|
| 836 |
+
mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
|
| 837 |
with gr.Tab("Timeline Guide for Config Generation or evelution"):
|
| 838 |
with gr.Accordion("Empty Config shape for explaining to LLM", open=False):
|
| 839 |
gr.HTML(f"placeholder for current empty JSON config shape")
|
relatively_constant_variables.py
CHANGED
|
@@ -1173,6 +1173,39 @@ bonus_features = [
|
|
| 1173 |
"Community-driven development roadmap voting system"
|
| 1174 |
]
|
| 1175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1176 |
# Create a list of all the idea lists for easy import and use
|
| 1177 |
all_idea_lists = [
|
| 1178 |
gta_heist_inspired,
|
|
@@ -1187,8 +1220,31 @@ all_idea_lists = [
|
|
| 1187 |
bonus_features
|
| 1188 |
]
|
| 1189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1190 |
#-------------------------#-------------------------#-------------------------#-------------------------
|
| 1191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1192 |
|
| 1193 |
#-------------------------#-------------------------#-------------------------#-------------------------
|
| 1194 |
|
|
|
|
| 1173 |
"Community-driven development roadmap voting system"
|
| 1174 |
]
|
| 1175 |
|
| 1176 |
+
multiplayer_features = [
|
| 1177 |
+
"Real-time cooperative puzzle solving",
|
| 1178 |
+
"Competitive leaderboards for speed runs or high scores",
|
| 1179 |
+
"Shared world events affecting all players simultaneously",
|
| 1180 |
+
"Player-vs-player mini-games or challenges",
|
| 1181 |
+
"Guild or clan system for group activities",
|
| 1182 |
+
"Trading system for in-game items or resources",
|
| 1183 |
+
"Multiplayer-exclusive quests or storylines",
|
| 1184 |
+
"Dynamic difficulty scaling based on group size and composition",
|
| 1185 |
+
"Shared base-building or territory control mechanics",
|
| 1186 |
+
"Cross-player skill or ability synergies"
|
| 1187 |
+
]
|
| 1188 |
+
|
| 1189 |
+
# Categorized lists
|
| 1190 |
+
existing_game_inspirations = [
|
| 1191 |
+
gta_heist_inspired,
|
| 1192 |
+
battlefront_inspired,
|
| 1193 |
+
tekken_casino_inspired,
|
| 1194 |
+
tactics_inspired,
|
| 1195 |
+
chess_inspired,
|
| 1196 |
+
cyberpunk_red_inspired
|
| 1197 |
+
]
|
| 1198 |
+
|
| 1199 |
+
feature_lists = [
|
| 1200 |
+
community_playthrough,
|
| 1201 |
+
random_item_hunt,
|
| 1202 |
+
survival_mechanics,
|
| 1203 |
+
bonus_features
|
| 1204 |
+
]
|
| 1205 |
+
|
| 1206 |
+
# All lists combined
|
| 1207 |
+
all_idea_lists = existing_game_inspirations + feature_lists + [multiplayer_features]
|
| 1208 |
+
|
| 1209 |
# Create a list of all the idea lists for easy import and use
|
| 1210 |
all_idea_lists = [
|
| 1211 |
gta_heist_inspired,
|
|
|
|
| 1220 |
bonus_features
|
| 1221 |
]
|
| 1222 |
|
| 1223 |
+
# List names for reference
|
| 1224 |
+
list_names = [
|
| 1225 |
+
"GTA Heists", "Battlefront", "Tekken Casino", "Tactics Games", "Chess",
|
| 1226 |
+
"Cyberpunk RED", "Community Playthrough", "Random Item Hunt",
|
| 1227 |
+
"Survival Mechanics", "Bonus Features", "Multiplayer Features"
|
| 1228 |
+
]
|
| 1229 |
+
|
| 1230 |
#-------------------------#-------------------------#-------------------------#-------------------------
|
| 1231 |
|
| 1232 |
+
mermaidstorystructures = {
|
| 1233 |
+
"Parallel Storylines Progression":
|
| 1234 |
+
"""graph TD
|
| 1235 |
+
A[Start] --> B[Character 1 Introduction]
|
| 1236 |
+
A --> C[Character 2 Introduction]
|
| 1237 |
+
B --> D[Character 1 Event 1]
|
| 1238 |
+
C --> E[Character 2 Event 1]
|
| 1239 |
+
D --> F[Character 1 Event 2]
|
| 1240 |
+
E --> G[Character 2 Event 2]
|
| 1241 |
+
F --> H[Characters Meet]
|
| 1242 |
+
G --> H
|
| 1243 |
+
H --> I[Climax]
|
| 1244 |
+
I --> J[Resolution]
|
| 1245 |
+
""",
|
| 1246 |
+
}
|
| 1247 |
+
|
| 1248 |
|
| 1249 |
#-------------------------#-------------------------#-------------------------#-------------------------
|
| 1250 |
|