This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
2DHackAndSlay/Scenes/Test Scene.tscn

59 lines
8.9 KiB
Text
Raw Normal View History

[gd_scene load_steps=6 format=3 uid="uid://yitiyfwr4txh"]
2023-01-31 01:06:04 +00:00
2023-01-31 11:17:59 +00:00
[ext_resource type="TileSet" uid="uid://bf1eb4aogv8ru" path="res://Assets/Tilesets/colony.tres" id="2"]
[ext_resource type="Texture2D" uid="uid://dp4tdg3fxe5bf" path="res://Assets/Textures/color_cube.png" id="2_0flm2"]
2023-02-03 12:31:23 +00:00
[ext_resource type="Script" path="res://Scripts/Player/PlayerController.gd" id="2_pk6k4"]
[ext_resource type="Texture2D" uid="uid://dx5k5qa1pwbfl" path="res://Assets/Textures/basic_enemy.png" id="4_4sn7h"]
2023-02-03 12:31:23 +00:00
[ext_resource type="Script" path="res://Scripts/Enemy/EnemyController.gd" id="5_5xgcv"]
2023-01-30 23:25:56 +00:00
[node name="Test Scene" type="Node2D"]
2023-01-31 01:06:04 +00:00
[node name="TileMap" type="TileMap" parent="."]
2023-01-31 13:22:09 +00:00
position = Vector2(0, 1)
scale = Vector2(0.898075, 0.866089)
2023-01-31 11:17:59 +00:00
tile_set = ExtResource("2")
format = 2
layer_0/name = "Ground"
layer_0/tile_data = PackedInt32Array(1114138, 262144, 1, 1048602, 0, 1, 983066, 0, 1, 1114137, 65536, 0, 1114136, 65536, 0, 1048603, 131072, 1, 1179675, 131072, 2, 1114139, 589824, 0, 983067, 131072, 1, 917531, 589824, 0, 1179674, 65536, 2, 917530, 262144, 0, 1179673, 1572864, 3, 917529, 65536, 2, 1179672, 65536, 2, 917528, 65536, 2, 1179671, 0, 2, 1114135, 655360, 3, 1048599, 131072, 1, 983063, 131072, 1, 917527, 196608, 0, 851995, 131072, 1, 851994, 196608, 3, 851993, 65536, 1, 851992, 196608, 3, 851991, 65536, 1, 917532, 327680, 2, 917533, 458752, 1, 983069, 327680, 1, 1048605, 327680, 1, 1114141, 458752, 2, 1114140, 327680, 2, 917525, 0, 0, 983061, 1769472, 1, 1048597, 0, 1, 1114133, 0, 2, 1114134, 65536, 2, 786456, 196608, 3, 786457, 196608, 2, 720921, 262144, 3, 720920, 262144, 3, 720919, 262144, 2, 655383, 262144, 2, 655382, 0, 1, 589848, 65536, 1, 589849, 196608, 2, 655385, 65536, 1, 655384, 262144, 3, 655386, 65536, 1, 720922, 65536, 1, 589850, 65536, 1, 524313, 65536, 1, 524312, 196608, 2, 524311, 262144, 1, 524310, 65536, 0, 589846, 262144, 0, 589847, 65536, 1, 524314, 196608, 1, 655387, 131072, 1, 589851, 131072, 1, 458776, 1638400, 1, 458777, 65536, 0, 458778, 131072, 0, 524315, 131072, 0, 458775, 0, 0, 720916, 983040, 3, 655380, 983040, 1, 589844, 917504, 1, 524308, 917504, 1, 458772, 983040, 0, 458771, 851968, 1, 524307, 1048576, 2, 589843, 851968, 1, 655379, 1048576, 3, 720915, 851968, 1, 589845, 0, 2, 524309, 0, 0, 524306, 786432, 1, 458770, 1048576, 0, 589842, 786432, 1, 655378, 1048576, 1, 655377, 851968, 0, 458769, 851968, 2, 720914, 851968, 1, 720913, 983040, 2, 655376, 851968, 0, 589839, 917504, 1, 655375, 1441792, 3, 524303, 917504, 1, 524302, 786432, 1, 589838, 786432, 1, 458768, 851968, 2, 458767, 983040, 0, 393233, 1048576, 1, 393234, 983040, 2, 393235, 851968, 1, 393236, 983040, 3, 458773, 851968, 2, 720917, 2031616, 2, 655381, 917504, 0, 393237, 851968, 1, 786452, 851968, 1, 786453, 2031616, 3, 720918, 2097152, 2, 786454, 2097152, 3, 851990, 0, 1, 851989, 917504, 2, 851988, 983040, 0, 851987, 983040, 2, 786451, 983040, 2, 458774, 917504, 2, 393238, 983040, 0, 393239, 851968, 2, 393240, 1638400, 0, 393241, 851968, 2, 393242, 917504, 2, 327706, 917504, 0, 327705, 851968, 0, 327704, 851968, 0, 327703, 851968, 0, 327702, 851968, 0, 327701, 851968, 0, 327700, 851968, 0, 327699, 851968, 0, 327698, 983040, 1, 786455, 196608, 3, 786450, 851968, 1, 917522, 786432, 2, 917524, 917504, 1, 917523, 1048576, 0, 1048596, 917504, 2, 983059, 786432, 1, 1048595, 786432, 2, 851986, 1048576, 0, 851985, 786432, 2, 786449, 1048576, 0, 786448, 786432, 2, 720912, 1048576, 0, 720911, 786432, 2, 655374, 786432, 2, 458766, 786432, 1, 393231, 983040, 1, 393232, 851968, 0, 327697, 786432, 1, 327694, 851968, 1, 327693, 1310720, 0, 262157, 786432, 1, 262158, 851968, 1, 393230, 1048576, 0, 393229, 786432, 2, 262159, 983040, 0, 262160, 851968, 2, 262161, 1048576, 0, 196625, 851968, 1, 196624, 1048576, 3, 196623, 851968, 1, 196622, 1048576, 1, 262162, 917504, 1, 196626, 983040, 0, 196627, 851968, 2, 196628, 851968, 2, 196629, 917504, 2, 131093, 917504, 0, 131092, 851968, 0, 131091, 851968, 0, 131090, 851968, 0, 131089, 851968, 0, 131088, 851968, 0, 131086, 786432, 0, 131087, 851968, 0, 196621, 786432, 0, 327692, 1114112, 2, 327691, 1114112, 2, 262154, 917504, 0, 327690, 1376256, 0, 393226, 917504, 2, 262153, 851968, 0, 327689, 851968, 1, 393225, 851968, 2, 393224, 786432, 2, 327688, 786432, 1, 262152, 786432, 0, 589855, 0, 0, 655391, 0, 2, 589856, 65536, 0, 655393, 131072, 2, 589857, 131072, 0, 786464, 851968, 1, 786463, 1048576, 3, 786465, 917504, 1, 917537, 917504, 2, 852001, 917504, 1, 852000, 983040, 2, 851999, 1048576, 0, 917535, 786432, 2, 917536, 851968, 2, 720927, 851968, 0, 720929, 917504, 0, 720928, 1572864, 1, 655392, 1572864, 0, 786462, 851968, 1, 786461, 983040, 3, 786460, 1769472, 0, 720924, 786432, 0, 720925, 851968, 0, 720926, 851968, 0, 851996, 786432, 2, 851997, 851968, 2, 851998, 851968, 2, 786458, 65536, 1, 786459, 1703936, 0, 720923, 131072, 1, 983062, 65536, 1, 1048598, 65536, 1, 983060, 1703936, 1, 91752
[node name="Player" type="CharacterBody2D" parent="."]
position = Vector2(203, 60)
collision_layer = 2
2023-02-03 12:31:23 +00:00
script = ExtResource("2_pk6k4")
[node name="Sprite2D" type="Sprite2D" parent="Player"]
texture = ExtResource("2_0flm2")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Player"]
position = Vector2(-2, -2)
polygon = PackedVector2Array(-1, 0, 0, -1, 4, -1, 5, 0, 5, 4, 4, 5, 0, 5, -1, 4)
[node name="Camera2D" type="Camera2D" parent="Player"]
zoom = Vector2(8, 8)
2023-02-01 12:28:53 +00:00
position_smoothing_enabled = true
drag_horizontal_enabled = true
drag_vertical_enabled = true
editor_draw_limits = true
editor_draw_drag_margin = true
[node name="Enemy" type="RigidBody2D" parent="." node_paths=PackedStringArray("ray")]
position = Vector2(298, 42)
rotation = 2.93722
gravity_scale = 0.0
linear_damp = 5.0
2023-02-03 12:31:23 +00:00
script = ExtResource("5_5xgcv")
ray = NodePath("RayCast2D")
[node name="Sprite2D" type="Sprite2D" parent="Enemy"]
z_index = 1
texture = ExtResource("4_4sn7h")
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Enemy"]
position = Vector2(-2, -1.99998)
polygon = PackedVector2Array(-1, 0, 0, -1, 4, -1, 5, 0, 5, 4, 4, 5, 0, 5, -1, 4)
2023-02-03 12:31:23 +00:00
[node name="RayCast2D" type="RayCast2D" parent="Enemy"]
target_position = Vector2(15, 0)
collision_mask = 3
hit_from_inside = true