Skip to content

Commit 4a28b0b

Browse files
(master) last
1 parent 02afef1 commit 4a28b0b

File tree

7 files changed

+3
-4
lines changed

7 files changed

+3
-4
lines changed

crates/vina_story/src/content.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct Character {
3737
#[derive(Serialize, Deserialize, Debug)]
3838
pub struct Scene {
3939
/// Name of the scene
40-
pub title: String,
40+
pub title: Option<String>,
4141
/// Description of the physical location the scene takes place in
4242
pub location: Location,
4343
pub script: Vec<Dialogue>,

images/bg bg_0.png

174 KB
Loading

images/bg bg_1.png

-97.1 KB
Loading

images/bg bg_2.png

-133 KB
Loading

images/bg bg_3.png

-91.8 KB
Loading

images/bg bg_4.png

5.23 KB
Loading

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use codegen::generate_proj;
2020

2121
#[derive(Parser)]
2222
struct Cli {
23-
// prompt: String,
23+
prompt: String,
2424
// /// Override the output path of project
2525
out: std::path::PathBuf,
2626
/// Save the generated game data to file
@@ -107,8 +107,7 @@ fn generate_game(args: &Cli, openai_token: &str) -> Game {
107107
// Otherwise generate game from scratch
108108

109109
println!("Generating game...");
110-
let prompt = "Write a love story about two gay individuals falling in love and overcoming stigma and hardships.";
111-
let game = generate_story(openai_token, prompt).unwrap();
110+
let game = generate_story(openai_token, args.prompt.as_str()).unwrap();
112111
println!("{:?}", game);
113112

114113
// Write completed game to file to be reloaded

0 commit comments

Comments
 (0)