-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e94f760
commit 2e779da
Showing
15 changed files
with
337 additions
and
45 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
Binary file added
BIN
+525 KB
pic/%E2%80%94Pngtree%E2%80%94original%20cartoon%20done%20old%20yellow_4887212.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
pic/%E2%80%94Pngtree%E2%80%94original%20cartoon%20done%20old%20yellow_4887212.png.import
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/%E2%80%94Pngtree%E2%80%94original%20cartoon%20done%20old%20yellow_4887212.png-b948793917b20f90cc061feefebfddfe.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://pic/%E2%80%94Pngtree%E2%80%94original%20cartoon%20done%20old%20yellow_4887212.png" | ||
dest_files=[ "res://.import/%E2%80%94Pngtree%E2%80%94original%20cartoon%20done%20old%20yellow_4887212.png-b948793917b20f90cc061feefebfddfe.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/blank-parchment-texture-3.jpg-4303567a0382ad4f14de62d43187feda.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://pic/blank-parchment-texture-3.jpg" | ||
dest_files=[ "res://.import/blank-parchment-texture-3.jpg-4303567a0382ad4f14de62d43187feda.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/overview-pages-1.png-016055bbbd3c60678f261edd29f706f1.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://pic/overview-pages-1.png" | ||
dest_files=[ "res://.import/overview-pages-1.png-016055bbbd3c60678f261edd29f706f1.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
resources/audio/Lord of the Land - Kevin MacLeod.wav.import
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,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Lord of the Land - Kevin MacLeod.wav-b6dbe354d4b0015f9c39c9a32859d51f.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://resources/audio/Lord of the Land - Kevin MacLeod.wav" | ||
dest_files=[ "res://.import/Lord of the Land - Kevin MacLeod.wav-b6dbe354d4b0015f9c39c9a32859d51f.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=false | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
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,20 @@ | ||
extends StaticBody2D | ||
|
||
signal hear(value) | ||
# Declare member variables here. Examples: | ||
# var a = 2 | ||
# var b = "text" | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass # Replace with function body. | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
#func _process(delta): | ||
# pass | ||
|
||
|
||
func _on_Area2D_body_entered(body,value): | ||
emit_signal('hear',value) |
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,55 @@ | ||
extends CanvasLayer | ||
|
||
onready var system = $Control | ||
onready var dialogue = $Control/dialogue | ||
onready var speaker = $Control/speaker | ||
onready var box = $Control/TextureRect | ||
|
||
signal completed | ||
|
||
var index: int = 0 | ||
var loadedDialogue: Dictionary | ||
|
||
onready var tween: Tween = $Control/Tween | ||
export (String, FILE, "*.json") var dialogue_file_path = "res://resources/dialogue/ayan.json" setget set_dialogue_file_path | ||
|
||
var state: Dictionary = {} setget set_state | ||
|
||
func set_dialogue_file_path(path: String) -> void: | ||
dialogue_file_path = path | ||
DialogueLoader.set_dialogue_file_path(dialogue_file_path) | ||
|
||
func set_state(new_state: Dictionary) -> void: | ||
state = new_state | ||
|
||
func process_state(new_state: Dictionary) -> void: | ||
speaker.text = new_state["character"]+ ":" | ||
dialogue.text = new_state["text"] | ||
tween.interpolate_property(dialogue, "visible_characters", 0, dialogue.text.length(), 0.08 * dialogue.text.length()) | ||
tween.start() | ||
|
||
func _ready() -> void: | ||
system.set_visible(false) | ||
DialogueLoader.set_dialogue_file_path(dialogue_file_path) | ||
# set_state(loadedDialogue[String(index)]) | ||
# process_state(state) | ||
|
||
func _on_Button_button_down() -> void: | ||
tween.stop(dialogue) | ||
dialogue.visible_characters = dialogue.text.length() | ||
index += 1 | ||
if index < loadedDialogue.size(): | ||
set_state(loadedDialogue[String(index)]) | ||
process_state(state) | ||
else: | ||
system.set_visible(false) | ||
emit_signal("completed") | ||
|
||
func start() -> void: | ||
loadedDialogue = DialogueLoader.load_dialogue() | ||
system.set_visible(true) | ||
set_state(loadedDialogue[String(index)]) | ||
print(loadedDialogue[String(index)]) | ||
process_state(state) | ||
|
||
|
Oops, something went wrong.