sal-maq commited on
Commit
f2b8031
·
verified ·
1 Parent(s): b6e84ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -0
app.py CHANGED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Sidebar for user inputs
4
+ st.sidebar.header("Input Your Game Details")
5
+ st.sidebar.text("Please provide detailed and creative descriptions.")
6
+
7
+ game_environment = st.sidebar.text_input("🌍 Game Environment",
8
+ "Describe the setting of your game. Include details like time period, location, and atmosphere.")
9
+ protagonist = st.sidebar.text_input("🦸 Protagonist",
10
+ "Describe the main character. Include their background, motivations, and abilities.")
11
+ antagonist = st.sidebar.text_input("🦹 Antagonist",
12
+ "Describe the main enemy. Include their backstory, goals, and relationship with the protagonist.")
13
+
14
+ # Main app title and description
15
+ st.title("Story Forger")
16
+ st.write("Developed by Salman Maqbool")
17
+ st.write("**Story Forger** is a tool for game developers to easily create detailed game design documents. Input your game environment, protagonist, and antagonist, and generate a solid foundation for your game's story.")
18
+
19
+ # Columns for displaying game details
20
+ col1, col2 = st.columns(2)
21
+
22
+ with col1:
23
+ st.subheader("🌍 Game Environment")
24
+ st.write(game_environment)
25
+
26
+ st.subheader("🦸 Protagonist")
27
+ st.write(protagonist)
28
+
29
+ with col2:
30
+ st.subheader("📖 Game Story")
31
+ st.write("Your generated game story will appear here.")
32
+
33
+ st.subheader("🦹 Antagonist")
34
+ st.write(antagonist)