initial
This commit is contained in:
BIN
scenes/bedroom/background.png
LFS
Normal file
BIN
scenes/bedroom/background.png
LFS
Normal file
Binary file not shown.
34
scenes/bedroom/background.png.import
Normal file
34
scenes/bedroom/background.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cktp0m4teeswo"
|
||||
path="res://.godot/imported/background.png-4964d1e0db075da121c266d5b2c0693c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/bedroom/background.png"
|
||||
dest_files=["res://.godot/imported/background.png-4964d1e0db075da121c266d5b2c0693c.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
24
scenes/bedroom/bedroom.gd
Normal file
24
scenes/bedroom/bedroom.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# 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():
|
||||
super()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_entranceexit_interacted():
|
||||
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"entrance-exit-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path)).and_then(ScriptBuilder.transition(self, load("res://scenes/entrance/entrance.tscn"), "bedroom-exit-point")).can_interrupt().build(self, "_on_script_complete"))
|
||||
52
scenes/bedroom/bedroom.tscn
Normal file
52
scenes/bedroom/bedroom.tscn
Normal file
@@ -0,0 +1,52 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ba1v540jrjhc8"]
|
||||
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://scenes/bedroom/bedroom.gd" id="2"]
|
||||
[ext_resource type="Script" path="res://SetPiece_.gd" id="3"]
|
||||
[ext_resource type="Texture2D" uid="uid://gvm7exe71yo6" path="res://scenes/bedroom/big-bedroom.png" id="4"]
|
||||
[ext_resource type="Texture2D" uid="uid://dgwv2tlexbc33" path="res://scenes/bedroom/left_wall.png" id="5"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="5"]
|
||||
vertices = PackedVector2Array(3273, 1876, 3515, 1847, 3411, 1921, 2439, 2027, 347, 2003, 751.25, 1775.25, 582, 1730, 253.25, 1736.25, 275, 1671, 506, 1694, 933.25, 1644.25, 1548.25, 1698.25, 2437, 1662, 2962, 1823, 3401, 2031)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5), PackedInt32Array(6, 7, 8, 9), PackedInt32Array(3, 5, 6, 9, 10, 11), PackedInt32Array(3, 11, 12, 13, 14), PackedInt32Array(14, 13, 0, 2)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(3273, 1876, 2962, 1823, 2437, 1662, 1548.25, 1698.25, 933.25, 1644.25, 506, 1694, 275, 1671, 253.25, 1736.25, 582, 1730, 751.25, 1775.25, 347, 2003, 2439, 2027, 3401, 2031, 3411, 1921, 3515, 1847)])
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
script = ExtResource("2")
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
background_scale = 0.55
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("5")
|
||||
|
||||
[node name="entrance-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(90, 1735)
|
||||
|
||||
[node name="entrance-exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(-2685, -795)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(2941, 1998, 2938.57, 2175.71, 2934, 2560, 3211, 2525, 3395, 2567, 3430, 2164.29, 3391.43, 1940, 3430.83, 1609.17, 3207.5, 1565.83, 2914.17, 1689.17)
|
||||
script = ExtResource("3")
|
||||
label = "To entrance"
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1766, 1622)
|
||||
script = ExtResource("1")
|
||||
target_scale = 1.4
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1832, 2060)
|
||||
script = ExtResource("1")
|
||||
target_scale = 1.8
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("4")
|
||||
centered = false
|
||||
|
||||
[node name="LeftWall" type="Sprite2D" parent="."]
|
||||
position = Vector2(358, 1800)
|
||||
texture = ExtResource("5")
|
||||
centered = false
|
||||
offset = Vector2(-358, -1227)
|
||||
BIN
scenes/bedroom/big-bedroom.png
LFS
Normal file
BIN
scenes/bedroom/big-bedroom.png
LFS
Normal file
Binary file not shown.
34
scenes/bedroom/big-bedroom.png.import
Normal file
34
scenes/bedroom/big-bedroom.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://gvm7exe71yo6"
|
||||
path="res://.godot/imported/big-bedroom.png-8977065e6f5e88948db888046dfa6e78.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/bedroom/big-bedroom.png"
|
||||
dest_files=["res://.godot/imported/big-bedroom.png-8977065e6f5e88948db888046dfa6e78.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
scenes/bedroom/left_wall.png
LFS
Normal file
BIN
scenes/bedroom/left_wall.png
LFS
Normal file
Binary file not shown.
34
scenes/bedroom/left_wall.png.import
Normal file
34
scenes/bedroom/left_wall.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dgwv2tlexbc33"
|
||||
path="res://.godot/imported/left_wall.png-b549cf09f0a3f02188452538dab49773.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/bedroom/left_wall.png"
|
||||
dest_files=["res://.godot/imported/left_wall.png-b549cf09f0a3f02188452538dab49773.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Reference in New Issue
Block a user