virtualx-engine/demos/2d/isometric_light/map.tscn

262 lines
13 KiB
Text
Raw Normal View History

[gd_scene load_steps=10 format=1]
[ext_resource path="res://map.gd" type="Script" id=1]
[ext_resource path="res://tileset.tres" type="TileSet" id=2]
[ext_resource path="res://cubio.tscn" type="PackedScene" id=3]
[ext_resource path="res://torch.tscn" type="PackedScene" id=4]
[ext_resource path="res://column.tscn" type="PackedScene" id=5]
[ext_resource path="res://cubio/idle0001.png" type="Texture" id=6]
[ext_resource path="res://light2.png" type="Texture" id=7]
[sub_resource type="CircleShape2D" id=1]
custom_solver_bias = 0.0
radius = 100.0
[sub_resource type="CanvasItemMaterial" id=2]
shader/shading_mode = 1
[node name="node" type="Node2D"]
transform/pos = Vector2( -0.735077, -20.5826 )
script/script = ExtResource( 1 )
[node name="floor_map" type="TileMap" parent="."]
mode = 1
tile_set = ExtResource( 2 )
cell/size = Vector2( 192, 88 )
cell/quadrant_size = 16
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
cell/half_offset = 2
cell/tile_origin = 1
cell/y_sort = true
collision/use_kinematic = false
collision/friction = 1.0
collision/bounce = 0.0
collision/layers = 1
collision/mask = 1
occluder/light_mask = 1
tile_data = IntArray( -1900531, 0, -1900530, 1, -1900529, 0, -1900528, 0, -1900527, 0, -1834995, 0, -1834994, 0, -1834993, 0, -1834992, 1, -1834991, 0, -1769459, 0, -1769458, 0, -1769457, 0, -1769456, 1, -1769455, 0, -1703923, 0, -1703922, 0, -1703921, 0, -1703920, 0, -1703919, 1, -1638387, 0, -1638386, 0, -1638385, 0, -1638384, 0, -1638383, 0, -1572855, 0, -1572854, 0, -1572853, 0, -1572852, 0, -1572851, 0, -1572850, 0, -1572849, 1, -1572848, 0, -1572847, 0, -1507319, 0, -1507318, 0, -1507317, 0, -1507316, 0, -1507315, 1, -1507314, 1, -1507313, 1, -1507312, 0, -1507311, 0, -1441783, 0, -1441782, 0, -1441781, 0, -1441780, 0, -1441779, 0, -1441778, 0, -1441777, 0, -1441776, 0, -1441775, 0, -1376247, 0, -1376246, 0, -1376245, 0, -1376244, 0, -1310711, 1, -1310710, 0, -1310709, 0, -1310708, 0, -1245175, 0, -1245174, 0, -1245173, 0, -1245172, 0, -1179639, 0, -1179638, 0, -1179637, 1, -1179636, 0, -1114103, 0, -1114102, 0, -1114101, 0, -1114100, 0, -1048567, 0, -1048566, 0, -1048565, 0, -1048564, 0, -983031, 0, -983030, 0, -983029, 0, -983028, 0, -917495, 0, -917494, 1, -917493, 1, -917492, 0, -851959, 0, -851958, 0, -851957, 0, -851956, 0, -786423, 0, -786422, 0, -786421, 0, -786420, 0, -720894, 0, -720893, 0, -720892, 0, -720891, 0, -720890, 0, -720889, 0, -720888, 0, -720887, 0, -720886, 0, -720885, 0, -720884, 0, -720883, 0, -720882, 0, -720881, 0, -655358, 0, -655357, 0, -655356, 0, -655355, 0, -655354, 0, -655353, 0, -655352, 0, -655351, 0, -655350, 0, -655349, 0, -655348, 0, -655347, 0, -655346, 0, -655345, 0, -589822, 0, -589821, 0, -589820, 0, -589819, 0, -589818, 0, -589817, 0, -589816, 0, -589815, 0, -589814, 0, -589813, 0, -589812, 0, -589811, 0, -589810, 0, -589809, 0, -524286, 0, -524285, 0, -524284, 1, -524283, 0, -524282, 0, -524281, 0, -524280, 0, -524279, 1, -524278, 1, -524277, 1, -524276, 1, -524275, 0, -524274, 0, -524273, 0, -458750, 0, -458749, 0, -458748, 1, -458747, 0, -458746, 0, -458745, 0, -458744, 0, -458743, 0, -458742, 0, -458741, 0, -458740, 0, -458739, 0, -458738, 1, -458737, 0, -393214, 0, -393213, 0, -393212, 0, -393211, 0, -393210, 0, -393209, 0, -393208, 0, -393207, 0, -393206, 0, -393205, 0, -393204, 0, -393203, 0, -393202, 0, -393201, 0, -262149, 0, -262148, 0, -262147, 0, -262146, 0, -262145, 0, -327680, 0, -327679, 0, -327678, 0, -327677, 0, -327676, 0, -327675, 0, -196613, 0, -196612, 0, -196611, 0, -196610, 0, -196609, 0, -262144, 0, -262143, 0, -262142, 0, -262141, 0, -262140, 0, -262139, 0, -131077, 0, -131076, 0, -131075, 0, -131074, 0, -131073, 0, -196608, 0, -196607, 0, -196606, 0, -196605, 0, -196604, 0, -196603, 0, -65541, 0, -65540, 0, -65539, 0, -65538, 0, -65537, 0, -131072, 0, -131071, 0, -131070, 0, -131069, 1, -131068, 0, -131067, 0, -5, 0, -4, 0, -3, 0, -2, 0, -1, 0, -65536, 0, -65535, 0, -65534, 0, -65533, 0, -65532, 1, -65531, 0, 65531, 0, 65532, 1, 65533, 0, 65534, 0, 65535, 1, 0, 0, 1, 0, 2, 0, 3, 0, 4, 1, 5, 0, 131067, 0, 131068, 1, 131069, 0, 131070, 0, 131071, 0, 65536, 0, 65537, 0, 65538, 0, 65539, 0, 65540, 0, 65541, 0, 196603, 0, 196604, 0, 196605, 0, 196606, 1, 196607, 0, 131072, 0, 131073, 0, 131074, 0, 131075, 0, 131076, 1, 131077, 0, 262139, 0, 262140, 0, 262141, 0, 262142, 0, 262143, 0, 196608, 0, 196609, 0, 196610, 0, 196611, 0, 196612, 0, 196613, 0, 327676, 0, 327677, 0, 327678, 0, 327679, 0, 262144, 0, 262145, 0, 262146, 0, 262147, 0, 262148, 0, 262149, 0 )
[node name="wall_map" type="TileMap" parent="."]
mode = 1
tile_set = ExtResource( 2 )
cell/size = Vector2( 94, 43 )
cell/quadrant_size = 16
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
cell/half_offset = 2
cell/tile_origin = 1
cell/y_sort = true
collision/use_kinematic = false
collision/friction = 1.0
collision/bounce = 0.0
collision/layers = 1
collision/mask = 1
occluder/light_mask = 1
tile_data = IntArray( -3801060, 5, -3801059, 10, -3801058, 10, -3801057, 10, -3801056, 10, -3801055, 10, -3801054, 10, -3801053, 10, -3801052, 536870916, -3735524, 9, -3735516, 7, -3669988, 9, -3669980, 7, -3604452, 9, -3604444, 7, -3538916, 9, -3538908, 7, -3473380, 9, -3473372, 7, -3407844, 9, -3407836, 7, -3342308, 9, -3342300, 7, -3276772, 9, -3276764, 7, -3211236, 9, -3211228, 7, -3145709, 5, -3145708, 10, -3145707, 10, -3145706, 10, -3145705, 10, -3145704, 10, -3145703, 10, -3145702, 10, -3145701, 10, -3145692, 7, -3080173, 9, -3080156, 7, -3014637, 9, -3014634, 2, -3014620, 7, -2949101, 2, -2949084, 7, -2883565, 9, -2883558, 8, -2883557, 8, -2883556, 8, -2883555, 8, -2883554, 8, -2883553, 8, -2883552, 8, -2883551, 8, -2883550, 8, -2883549, 8, -2883548, 6, -2818029, 9, -2818023, 7, -2752493, 9, -2752487, 7, -2686957, 9, -2686955, 2, -2686951, 7, -2621421, 9, -2621415, 7, -2555885, 9, -2555879, 2, -2490349, 2, -2490343, 7, -2424813, 9, -2424807, 7, -2359277, 9, -2359274, 2, -2359271, 7, -2293741, 9, -2293735, 7, -2228205, 4, -2228199, 7, -2162669, 9, -2162668, 10, -2162667, 536870916, -2162663, 7, -2097133, 8, -2097132, 8, -2097131, 6, -2097127, 7, -2031597, 9, -2031591, 7, -1966061, 9, -1966055, 7, -1900525, 9, -1900519, 7, -1834989, 9, -1834986, 8, -1834985, 8, -1834984, 8, -1834983, 7, -1769453, 9, -1769450, 7, -1769447, 7, -1703917, 9, -1703916, 8, -1703915, 8, -1703914, 8, -1703911, 7, -1638381, 9, -1638375, 7, -1572845, 9, -1572839, 7, -1507309, 9, -1507303, 7, -1441787, 5, -1441786, 10, -1441785, 10, -1441784, 10, -1441783, 10, -1441782, 10, -1441781, 10, -1441780, 10, -1441779, 10, -1441778, 10, -1441777, 10, -1441776, 10, -1441775, 10, -1441774, 10, -1441766, 10, -1441765, 10, -1441764, 10, -1441763, 10, -1441762, 10, -1441761, 536870916, -1376251, 9, -1376225, 7, -1310715, 9, -1310689, 7, -1245179, 9, -1245153, 7, -1179643, 9, -1179617, 7, -1114107, 9, -1114081, 7, -1048571, 9, -1048545, 7, -983035, 9, -983009, 7, -917499, 9, -917473, 7, -851963, 9, -851937, 7, -786427, 9, -786401, 7, -720891, 9, -720884, 8, -720883, 8, -720882, 8, -720881, 8, -720880, 8, -720879, 8, -720878, 8, -720877, 8, -720876, 8, -720875, 8, -720874, 8, -720873, 8, -720872, 8, -720871, 8, -720870, 8, -720869, 8, -720868, 8, -720867, 8, -720866, 8, -720865, 6, -589834, 5, -589833, 10, -589832, 10, -589831, 10, -589830, 10, -589829, 10, -589828, 10, -589827, 10, -589826, 10, -589825, 10, -655360, 10, -655359, 10, -655358, 10, -655357, 10, -655356, 10, -655349, 7, -524298, 9, -589813, 7, -458762, 9, -524277, 7, -393226, 9, -458741, 7, -327690, 9, -393205, 7, -262154, 9, -262150, 5, -262149, 10, -262148, 10, -262147, 10, -262146, 10, -262145, 10, -327680, 10, -327679, 10, -327678, 10, -327677, 10, -327676, 3, -327669, 7, -196618, 9, -196614, 9, -262140, 7, -262133, 7, -131082, 9, -131078, 9, -196604, 7, -196597, 7, -65546, 9, -65542, 9, -131068, 7, -131061, 7, -10, 9, -6, 4, -5, 8, -4, 8, -3, 8, -2, 8, -65535, 8, -65534, 8, -65533, 8, -65532, 6, -65525, 7, 65526, 9, 11, 7, 131062, 9, 65547, 7, 196598, 9, 131083, 7, 262134, 9, 196619, 7, 327670, 9, 262155, 7, 393206, 9, 327691, 7, 458742, 9, 393227, 7, 524278, 4, 524279, 8, 458763, 7, 589816, 9, 524299, 7, 655352, 4, 655353, 8, 655354, 8, 655355, 8, 655356, 8, 655357, 8, 655358, 8, 655359, 8, 589824, 8, 589825, 8, 589826, 8, 589827, 8, 589828, 8, 589829, 8, 589830, 8, 589831, 8, 589832, 8, 589833, 8, 589834, 8, 589835, 6 )
__meta__ = { "_editor_collapsed":true }
[node name="cubio" parent="wall_map" instance=ExtResource( 3 )]
transform/pos = Vector2( -184.284, 6.7328 )
collision/margin = 0.08
[node name="toch" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( -42.0531, -74.8855 )
[node name="toch1" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 96.0294, -19.8329 )
[node name="toch2" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 954.802, -147.456 )
[node name="toch3" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 1247.08, 42.9454 )
[node name="toch4" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 1257.11, -167.498 )
[node name="toch5" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 1632.9, -73.9674 )
[node name="toch6" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 1566.09, 113.093 )
[node name="toch7" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 1935.2, 64.6577 )
[node name="toch8" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 2000.34, 258.399 )
[node name="toch9" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 3738.07, -328.247 )
[node name="toch10" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 4034.17, -585.483 )
[node name="toch11" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 4261.79, -472.595 )
[node name="toch12" parent="wall_map" instance=ExtResource( 4 )]
transform/pos = Vector2( 4006.41, -479.998 )
[node name="column" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( -122.203, 119.689 )
[node name="column1" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 95.2993, 99.8337 )
[node name="column2" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 138.619, 246.039 )
[node name="column3" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 324.534, 82.6862 )
[node name="column4" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1046.53, -175.429 )
[node name="column5" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1347.07, -179.039 )
[node name="column6" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1184.62, -261.166 )
[node name="column7" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1520.35, -139.329 )
[node name="column8" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1409.34, 25.8286 )
[node name="column9" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1804.63, -13.8814 )
[node name="column10" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 1782.97, 170.229 )
[node name="column11" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 2223.9, 158.537 )
[node name="column12" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 3744.95, -480.43 )
[node name="column13" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 3838.62, -526.042 )
[node name="column14" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 3937.17, -573.283 )
[node name="column15" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 4123.69, -474.728 )
[node name="column16" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 4027.58, -427.487 )
[node name="column17" parent="wall_map" instance=ExtResource( 5 )]
transform/pos = Vector2( 3935.54, -377.802 )
[node name="prince_area" type="Area2D" parent="wall_map"]
transform/pos = Vector2( 4133.07, -561.046 )
input/pickable = true
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, -37.4897 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
[node name="prince" type="Sprite" parent="wall_map/prince_area"]
material/material = SubResource( 2 )
texture = ExtResource( 6 )
offset = Vector2( -1.10803, -49.8615 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall_map/prince_area"]
transform/pos = Vector2( 0, -37.4897 )
shape = SubResource( 1 )
trigger = false
_update_shape_index = -1
[node name="Light2D" type="Light2D" parent="."]
transform/pos = Vector2( -191.788, 32.4743 )
enabled = true
texture = ExtResource( 7 )
offset = Vector2( 0, 0 )
scale = 8.0
color = Color( 1, 1, 1, 1 )
energy = 1.0
mode = 0
range/height = 60.0
range/z_min = -1024
range/z_max = 1024
range/layer_min = 0
range/layer_max = 0
range/item_mask = 1
shadow/enabled = true
shadow/color = Color( 0, 0, 0, 0 )
shadow/buffer_size = 2048
shadow/esm_multiplier = 80.0
shadow/item_mask = 1
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color( 0.361304, 0.36638, 0.384393, 1 )
[node name="message" type="Label" parent="."]
visibility/visible = false
material/material = SubResource( 2 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
margin/left = 4067.0
margin/top = -597.0
margin/right = 4200.0
margin/bottom = -571.0
text = "Thank You Cubio!\nYou saved The Prince!"
align = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[connection signal="body_enter" from="wall_map/prince_area" to="." method="_on_prince_area_body_enter"]