-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Lamby777/dialogue-logic
Implement Basic Dialogue... (finally omfg)
- Loading branch information
Showing
24 changed files
with
209 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use std::env; | ||
use std::path::PathBuf; | ||
use std::process::Command; | ||
|
||
fn main() { | ||
println!("cargo:rerun-if-changed=./dg/src"); | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
|
||
let dir = env::var("CARGO_MANIFEST_DIR").unwrap(); | ||
let dir = PathBuf::from(&dir); | ||
|
||
let dg_dir = dir.join("dg"); | ||
|
||
Command::new("dg") | ||
.args(&["src/main.dg", "-o", "packed.dgc"]) | ||
.current_dir(&dg_dir) | ||
.status() | ||
.unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ignore compiled dialogue | ||
*.dgc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
% Main | ||
### | ||
|
||
Import ./rodrick.dg | ||
|
||
### | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
% Rodrick Sign #1 | ||
NAME Rodrick Sign Co. | ||
VOX Default | ||
|
||
So... you're reading a sign, eh?\n | ||
Well... | ||
|
||
--- | ||
|
||
Are you smart? | ||
|
||
> Nope | ||
@ Rodrick Sign #1 >> Nope | ||
|
||
> Definitely not | ||
@ Rodrick Sign #1 >> DefNot | ||
|
||
--- | ||
% Rodrick Sign #1 >> Nope | ||
NAME Rodrick Sign Co. | ||
VOX Default | ||
|
||
Yeah, I didn't think so. | ||
|
||
@ Rodrick Sign #1 >> Exit | ||
|
||
--- | ||
% Rodrick Sign #1 >> DefNot | ||
NAME Rodrick Sign Co. | ||
VOX Default | ||
|
||
Yeah, I definitely didn't think so. | ||
|
||
@ Rodrick Sign #1 >> Exit | ||
|
||
--- | ||
% Rodrick Sign #1 >> Exit | ||
NAME Rodrick Sign Co. | ||
VOX Default | ||
|
||
Come back when you're smart. | ||
|
||
$ Exit | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.