Skip to content

Commit

Permalink
(master) last
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinmuthukumar committed Jun 18, 2023
1 parent 02afef1 commit 4a28b0b
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/vina_story/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct Character {
#[derive(Serialize, Deserialize, Debug)]
pub struct Scene {
/// Name of the scene
pub title: String,
pub title: Option<String>,
/// Description of the physical location the scene takes place in
pub location: Location,
pub script: Vec<Dialogue>,
Expand Down
Binary file modified images/bg bg_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/bg bg_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/bg bg_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/bg bg_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/bg bg_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a28b0b

Please sign in to comment.