Started implementing prologue

This commit is contained in:
Segey Lapin
2019-08-19 23:38:12 +03:00
parent 005ef6cf6d
commit a339140e0c
55 changed files with 4633 additions and 709 deletions

View File

@@ -10,6 +10,7 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
var delay: float = 8.0
var sg = 1.0
func _process(delta):
if delay < 0.0:
var sc = load("res://main.tscn")

View File

@@ -29,21 +29,21 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="Panel" type="Panel" parent="."]
[node name="p" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="v" type="VBoxContainer" parent="Panel"]
[node name="v" type="VBoxContainer" parent="p"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Panel/v"]
[node name="Label" type="Label" parent="p/v"]
margin_right = 1024.0
margin_bottom = 506.0
size_flags_vertical = 7
@@ -51,7 +51,7 @@ custom_fonts/font = SubResource( 1 )
text = "Act I"
align = 1
[node name="Label2" type="Label" parent="Panel/v"]
[node name="Label2" type="Label" parent="p/v"]
margin_top = 510.0
margin_right = 1024.0
margin_bottom = 563.0
@@ -60,7 +60,7 @@ custom_fonts/font = SubResource( 2 )
text = "\"Here goes our hero\""
align = 1
[node name="Label3" type="Label" parent="Panel/v"]
[node name="Label3" type="Label" parent="p/v"]
margin_top = 567.0
margin_right = 1024.0
margin_bottom = 600.0

View File

@@ -7,7 +7,7 @@ extends Control
# Called when the node enters the scene tree for the first time.
func start_game():
var sc = load("res://ui/act1_start.tscn")
var sc = load("res://prologue.tscn")
world.init_data()
roadmap.build(444444)
get_tree().change_scene_to(sc)

View File

@@ -0,0 +1,5 @@
extends Control
func display_notification(message):
$msg.text = message
show()

View File

@@ -0,0 +1,30 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://ui/narration_notification.gd" type="Script" id=1]
[ext_resource path="res://fonts/DroidSansFallback.ttf" type="DynamicFontData" id=2]
[sub_resource type="DynamicFont" id=1]
size = 30
font_data = ExtResource( 2 )
[node name="narration_notification" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="msg" type="Label" parent="."]
anchor_left = 0.00390625
anchor_top = 0.89
anchor_right = 1.00391
anchor_bottom = 1.0
margin_top = -14.0
rect_min_size = Vector2( 0, 80 )
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 1, 0.701961, 0.701961, 1 )
text = "Test"
__meta__ = {
"_edit_use_anchors_": true
}