A basic Godot framework to build my own little rpg horror games. \o/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

511 lines
14 KiB

[gd_scene load_steps=24 format=2]
[ext_resource path="res://addons/rpgh_engine/system/data_management/data_manager.gd" type="Script" id=1]
[ext_resource path="res://addons/rpgh_engine/system/rpgh_engine.gd" type="Script" id=2]
[ext_resource path="res://addons/rpgh_engine/system/ingame/camera/ingame_display.material" type="Material" id=3]
[ext_resource path="res://addons/rpgh_engine/system/ingame/player/player.tscn" type="PackedScene" id=4]
[ext_resource path="res://addons/rpgh_engine/system/ui/textbox.gd" type="Script" id=5]
[ext_resource path="res://addons/rpgh_engine/system/ingame/camera/camera.gd" type="Script" id=6]
[ext_resource path="res://game/maps/hobby_room_corrupted/ako_shocked.png" type="Texture" id=7]
[ext_resource path="res://addons/rpgh_engine/system/ui/dialog.gd" type="Script" id=8]
[ext_resource path="res://addons/rpgh_engine/system/ui/pause.gd" type="Script" id=9]
[ext_resource path="res://addons/rpgh_engine/system/ingame/map_manager/map_manager.gd" type="Script" id=10]
[ext_resource path="res://addons/rpgh_engine/system/data_management/command_system.gd" type="Script" id=11]
[sub_resource type="ViewportTexture" id=1]
flags = 4
viewport_path = NodePath("Ingame/Viewport")
[sub_resource type="Animation" id=2]
resource_name = "DespawnBust"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( -50, 0 ), Vector2( -511.111, 0 ) ]
}
[sub_resource type="Animation" id=3]
resource_name = "SpawnBust"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( -511.111, 0 ), Vector2( -50, 0 ) ]
}
[sub_resource type="Animation" id=4]
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 472, 0 ), Vector2( 936, 0 ) ]
}
[sub_resource type="Animation" id=5]
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath(".:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 936, 0 ), Vector2( 472, 0 ) ]
}
[sub_resource type="DynamicFontData" id=6]
font_path = "res://addons/rpgh_engine/assets/fonts/brass_mono.otf"
[sub_resource type="DynamicFont" id=7]
size = 36
font_data = SubResource( 6 )
[sub_resource type="Animation" id=8]
tracks/0/type = "value"
tracks/0/path = NodePath("../../Ingame/Viewport/CanvasModulate:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0.254902, 0.254902, 0.254902, 1 ), Color( 1, 1, 1, 1 ) ]
}
[sub_resource type="Animation" id=9]
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("TextboxBackground:polygon")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ PoolVector2Array( 0, 440, 0, 600, 1024, 600, 1024, 408 ), PoolVector2Array( 0, 712, 0, 600, 1024, 936, 1024, 1200 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Textbox:percent_visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0.0 ]
}
[sub_resource type="Animation" id=10]
tracks/0/type = "value"
tracks/0/path = NodePath("Textbox:grow_vertical")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 2 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Textbox:fit_content_height")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Textbox:margin_top")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0.0 ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Textbox:margin_bottom")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0.0 ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("Textbox:anchor_top")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0.5 ]
}
tracks/5/type = "value"
tracks/5/path = NodePath("Textbox:anchor_bottom")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0.5 ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("../../Ingame/Viewport/CanvasModulate:color")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 0.254902, 0.254902, 0.254902, 1 ) ]
}
[sub_resource type="Animation" id=11]
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("TextboxBackground:polygon")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ PoolVector2Array( 0, 712, 0, 600, 1024, 936, 1024, 1200 ), PoolVector2Array( 0, 440, 0, 600, 1024, 600, 1024, 408 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Textbox:anchor_top")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 1.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Textbox:anchor_bottom")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 1.0 ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("Textbox:margin_top")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ -144.0 ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("Textbox:margin_bottom")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ -16.0 ]
}
[sub_resource type="Animation" id=12]
length = 0.64
step = 0.01
tracks/0/type = "value"
tracks/0/path = NodePath("TextureRect:anchor_top")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.55, 0.64 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.5, 0.0, 0.0, 0.5 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("TextureRect:anchor_bottom")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.55, 0.64 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.5, 1.0, 1.0, 0.5 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("TextureRect:rect_position")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0.1, 0.15, 0.21, 0.26, 0.31, 0.36, 0.41, 0.46, 0.5, 0.52 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( -24, 8 ), Vector2( 8, -16 ), Vector2( 32, 16 ), Vector2( -16, -8 ), Vector2( -8, 16 ), Vector2( 16, -24 ), Vector2( -8, 8 ), Vector2( 8, 0 ), Vector2( 0, 0 ) ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("TextureRect:margin_top")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0.54 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0.0 ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("TextureRect:margin_bottom")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0.54 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 6.10352e-05 ]
}
[node name="RPGH Engine" type="Node"]
script = ExtResource( 2 )
[node name="DataManager" type="Node" parent="."]
script = ExtResource( 1 )
[node name="CommandSystem" type="Node" parent="DataManager"]
script = ExtResource( 11 )
[node name="Ingame" type="Node" parent="."]
[node name="Viewport" type="Viewport" parent="Ingame"]
size = Vector2( 640, 360 )
render_target_v_flip = true
[node name="CanvasModulate" type="CanvasModulate" parent="Ingame/Viewport"]
position = Vector2( 16, 456 )
z_index = -1
[node name="MapManager" type="YSort" parent="Ingame/Viewport"]
script = ExtResource( 10 )
__meta__ = {
"_editor_description_": "Test"
}
[node name="Player" parent="Ingame/Viewport/MapManager" instance=ExtResource( 4 )]
[node name="Camera" type="Camera2D" parent="Ingame/Viewport/MapManager"]
current = true
script = ExtResource( 6 )
[node name="Display" type="TextureRect" parent="Ingame"]
material = ExtResource( 3 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = -0.00012207
rect_pivot_offset = Vector2( 512, 300 )
texture = SubResource( 1 )
expand = true
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="UI" type="Node" parent="."]
[node name="Dialog" type="Control" parent="UI"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LeftBust" type="TextureRect" parent="UI/Dialog"]
margin_left = 286.0
margin_right = 886.0
margin_bottom = 600.0
expand = true
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="UI/Dialog/LeftBust"]
anims/DespawnBust = SubResource( 2 )
anims/SpawnBust = SubResource( 3 )
[node name="RightBust" type="TextureRect" parent="UI/Dialog"]
margin_left = 472.0
margin_right = 1072.0
margin_bottom = 600.0
expand = true
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="UI/Dialog/RightBust"]
anims/DespawnBust = SubResource( 4 )
anims/SpawnBust = SubResource( 5 )
[node name="TextboxBackground" type="Polygon2D" parent="UI/Dialog"]
color = Color( 0.0627451, 0.0588235, 0.0627451, 0.721569 )
antialiased = true
polygon = PoolVector2Array( 0, 712, 0, 600, 1024, 936, 1024, 1200 )
[node name="Textbox" type="RichTextLabel" parent="UI/Dialog"]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = 16.0
margin_right = -16.0
grow_vertical = 2
custom_fonts/normal_font = SubResource( 7 )
bbcode_enabled = true
visible_characters = 0
percent_visible = 0.0
fit_content_height = true
scroll_active = false
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="UI/Dialog"]
pause_mode = 2
anims/DespawnScreenText = SubResource( 8 )
anims/DespawnTextbox = SubResource( 9 )
anims/SpawnScreenText = SubResource( 10 )
anims/SpawnTextbox = SubResource( 11 )
[node name="Insertion" type="Control" parent="UI"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="UI/Insertion"]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_right = -0.000732422
margin_bottom = 6.10352e-05
texture = ExtResource( 7 )
expand = true
stretch_mode = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="UI/Insertion"]
anims/FadeInInsertion = SubResource( 12 )
[node name="Button" type="Button" parent="UI"]
margin_left = 10.3942
margin_top = 11.3813
margin_right = 144.394
margin_bottom = 31.3813
text = "Save"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Pause" type="Popup" parent="UI"]
pause_mode = 2
margin_right = 40.0
margin_bottom = 40.0
script = ExtResource( 9 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="UI/Pause"]
margin_right = 40.0
margin_bottom = 14.0
[node name="Unpause" type="Button" parent="UI/Pause"]
margin_left = 111.702
margin_top = 218.0
margin_right = 327.702
margin_bottom = 238.0
text = "Resume"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="button_down" from="UI/Button" to="DataManager" method="_on_Button_button_down"]
[connection signal="button_down" from="UI/Pause/Unpause" to="UI/Pause" method="_pause_manager"]