diff --git a/crates/vina_story/src/content.rs b/crates/vina_story/src/content.rs index ff5f225..bcd811d 100644 --- a/crates/vina_story/src/content.rs +++ b/crates/vina_story/src/content.rs @@ -37,7 +37,7 @@ pub struct Character { #[derive(Serialize, Deserialize, Debug)] pub struct Scene { /// Name of the scene - pub title: String, + pub title: Option, /// Description of the physical location the scene takes place in pub location: Location, pub script: Vec, diff --git a/images/bg bg_0.png b/images/bg bg_0.png index f28b5bd..42cd379 100644 Binary files a/images/bg bg_0.png and b/images/bg bg_0.png differ diff --git a/images/bg bg_1.png b/images/bg bg_1.png index c57084d..831457c 100644 Binary files a/images/bg bg_1.png and b/images/bg bg_1.png differ diff --git a/images/bg bg_2.png b/images/bg bg_2.png index 7c1d7e6..6727043 100644 Binary files a/images/bg bg_2.png and b/images/bg bg_2.png differ diff --git a/images/bg bg_3.png b/images/bg bg_3.png index 1c9219b..9e80f7b 100644 Binary files a/images/bg bg_3.png and b/images/bg bg_3.png differ diff --git a/images/bg bg_4.png b/images/bg bg_4.png index 5e662b6..754e8e1 100644 Binary files a/images/bg bg_4.png and b/images/bg bg_4.png differ diff --git a/src/main.rs b/src/main.rs index 11c7688..00b96f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ use codegen::generate_proj; #[derive(Parser)] struct Cli { - // prompt: String, + prompt: String, // /// Override the output path of project out: std::path::PathBuf, /// Save the generated game data to file @@ -107,8 +107,7 @@ fn generate_game(args: &Cli, openai_token: &str) -> Game { // Otherwise generate game from scratch println!("Generating game..."); - let prompt = "Write a love story about two gay individuals falling in love and overcoming stigma and hardships."; - let game = generate_story(openai_token, prompt).unwrap(); + let game = generate_story(openai_token, args.prompt.as_str()).unwrap(); println!("{:?}", game); // Write completed game to file to be reloaded