Spaces:
Sleeping
Sleeping
import streamlit as st | |
# App Title | |
st.title("StoryForage") | |
# App Description | |
st.write(""" | |
Welcome to StoryForage! This app helps game developers generate a game design document by crafting a story outline based on your inputs. Simply provide details about your game's environment, protagonist, and antagonist, and let StoryForage do the rest. | |
""") | |
# Sidebar for User Input | |
st.sidebar.header("Game Design Inputs") | |
environment = st.sidebar.text_input("Game Environment", | |
"Describe the world or setting where your game takes place. (e.g., a post-apocalyptic city, a magical forest, etc.)") | |
protagonist = st.sidebar.text_input("Protagonist", | |
"Describe the main character of your game. (e.g., a brave knight, a cunning thief, etc.)") | |
antagonist = st.sidebar.text_input("Antagonist", | |
"Describe the primary adversary or villain in your game. (e.g., an evil sorcerer, a corrupt king, etc.)") | |
# Main App Layout with Two Columns | |
col1, col2 = st.columns(2) | |
# Column 1 Content | |
with col1: | |
st.subheader("Game Story") | |
if environment and protagonist: | |
st.write(f"Environment: {environment}") | |
st.write(f"Protagonist: {protagonist}") | |
else: | |
st.write("Please fill out the environment and protagonist details.") | |
# Column 2 Content | |
with col2: | |
st.subheader("Protagonist and Antagonist") | |
if protagonist and antagonist: | |
st.write(f"Protagonist: {protagonist}") | |
st.write(f"Antagonist: {antagonist}") | |
else: | |
st.write("Please fill out both the protagonist and antagonist details.") | |