-
Notifications
You must be signed in to change notification settings - Fork 3
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
6428cb7
commit f15932b
Showing
16 changed files
with
318 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
extends CanvasLayer | ||
|
||
var sentences = [] | ||
var current = 0 | ||
|
||
func say(text): | ||
sentences = text | ||
current = 0 | ||
$MarginContainer/HBoxContainer/Label.text = sentences[0] | ||
$MarginContainer/HBoxContainer/VBoxContainer/Label.text = str(current+1) + "/" + str(len(sentences)) | ||
$AnimationPlayer.play("show") | ||
|
||
func next_page(): | ||
current += 1 | ||
if current >= len(sentences): | ||
return false | ||
else: | ||
$MarginContainer/HBoxContainer/Label.text = sentences[current] | ||
$MarginContainer/HBoxContainer/VBoxContainer/Label.text = str(current+1) + "/" + str(len(sentences)) | ||
return true | ||
|
||
|
||
func _process(delta): | ||
if Input.is_action_just_pressed("ui_accept"): | ||
var ok = next_page() | ||
if not ok: | ||
hide() | ||
|
||
|
||
func hide(): | ||
$AnimationPlayer.play("hide") |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,10 @@ | ||
[gd_resource type="DynamicFont" load_steps=2 format=2] | ||
|
||
[sub_resource type="DynamicFontData" id=4] | ||
font_path = "res://assets/fonts/Mr. JUNKER MSX.ttf" | ||
|
||
[resource] | ||
size = 10 | ||
extra_spacing_char = 4 | ||
extra_spacing_space = 2 | ||
font_data = SubResource( 4 ) |
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,7 @@ | ||
Mr. JUNKER MSX | ||
Accurate text/dialogue/menu font from Hideo Kojima's videogame SNATCHER (Konami 1988). MSX2 version. 2x screenshot. | ||
|
||
Mr. JUNKER MSX Pixel/Bitmap Font. | ||
|
||
Mr. JUNKER MSX.ttf | ||
License: Attribution 4.0 International (CC BY 4.0) |
Oops, something went wrong.