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
snoweuph 96df4b3630
Some checks failed
Linux Export
Update Test Scene.tscn
2023-03-23 00:11:03 +01:00

59 lines
7.2 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://yitiyfwr4txh"]
[ext_resource type="TileSet" uid="uid://c72nlq6yw2i4d" path="res://Assets/Tilesets/colony.tres" id="1_boyur"]
[ext_resource type="Texture2D" uid="uid://dp4tdg3fxe5bf" path="res://Assets/Textures/color_cube.png" id="2_0flm2"]
[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"]
[ext_resource type="Script" path="res://Scripts/Enemy/EnemyController.gd" id="5_5xgcv"]
[node name="Test Scene" type="Node2D"]
metadata/_edit_group_ = true
[node name="TileMap" type="TileMap" parent="."]
position = Vector2(0, 1)
scale = Vector2(0.898075, 0.866089)
tile_set = ExtResource("1_boyur")
format = 2
layer_0/name = "Ground"
layer_0/tile_data = PackedInt32Array(262158, 65537, 1, 262157, 65537, 1, 196621, 196609, 3, 196622, 262145, 2, 196623, 196609, 3, 262159, 262145, 3, 327695, 196609, 2, 327694, 65537, 1, 327693, 262145, 0, 327692, 1, 2, 262156, 1507328, 3, 196620, 1310721, 2, 131084, 1, 0, 131085, 262145, 1, 131086, 65537, 1, 131087, 196609, 1, 262160, 131073, 1, 196624, 917505, 3, 327696, 196609, 1, 327697, 131073, 0, 327698, 2, 2, 393233, 131073, 2, 393232, 65537, 2, 393231, 65537, 2, 393230, 65537, 2, 393229, 1, 2, 131088, 131073, 0, 131089, 2, 1, 196625, 983042, 1, 262161, 2, 2, 262162, 262146, 0, 196626, 196610, 2, 131090, 196610, 3, 65553, 262146, 0, 65552, 2, 2, 65551, 131073, 0, 65550, 65537, 0, 65549, 1, 0, 65554, 65538, 1, 14, 131074, 4, 15, 327682, 2, 16, 262146, 6, 17, 65538, 0, 18, 65538, 0, 19, 131074, 0, 65555, 196610, 1, 131091, 262146, 2, 196627, 262146, 3, 196628, 262146, 2, 262164, 262146, 3, 262163, 262146, 3, 327700, 196610, 0, 327699, 262146, 0, 393236, 131074, 2, 393237, 3, 0, 327701, 65538, 2, 327702, 65538, 2, 262166, 196610, 3, 262165, 262146, 2, 196629, 65538, 1, 131093, 196610, 1, 131092, 65538, 1, 65556, 65538, 0, 65557, 131074, 0, 131094, 131074, 0, 196630, 196610, 1, 262167, 1441794, 2, 327703, 1441794, 3, 393239, 65538, 4, 393238, 131075, 0, 262155, 1441792, 3, 196619, 1441792, 2, 131083, 131072, 0, 327691, 131072, 2, 327690, 65536, 2, 262154, 196608, 2, 196618, 262144, 2, 131082, 65536, 0, 131081, 131072, 6, 196617, 0, 1, 262153, 524288, 0, 327689, 393216, 6, 393225, 327680, 1, 458761, 458752, 2, 65545, 458752, 1, 458760, 327680, 2, 262152, 327680, 2, 65544, 327680, 2, 458759, 0, 6, 262151, 327680, 2, 65543, 327680, 2, 458758, 655360, 2, 393222, 327680, 1, 327686, 327680, 1, 262150, 524288, 1, 196614, 327680, 1, 131078, 327680, 1, 65542, 262144, 4, 458757, 327680, 2, 262149, 327680, 2, 65541, 327680, 2, 458756, 327680, 2, 262148, 327680, 2, 65540, 327680, 2, 458755, 327680, 4, 393219, 327680, 1, 327683, 327680, 1, 262147, 524288, 1, 196611, 327680, 1, 131075, 327680, 1, 65539, 262144, 4, 458754, 327680, 2, 262146, 327680, 2, 65538, 327680, 2, 458753, 327680, 2, 262145, 327680, 2, 458752, 393216, 2, 393216, 327680, 1, 327680, 327680, 1, 262144, 393216, 4, 196608, 327680, 1, 131072, 327680, 1, 65536, 393216, 1, 458774, 196611, 1, 458773, 262147, 1, 524309, 262147, 3, 589845, 262147, 3, 589846, 65539, 1, 524310, 262147, 3, 655382, 65539, 2, 655381, 65539, 2, 524308, 3, 1, 589844, 262147, 1, 655380, 196611, 0, 458772, 3, 0, 458775, 65539, 0, 524311, 196611, 2, 65558, 131075, 4, 65559, 262147, 6, 131095, 3, 2, 131096, 655363, 3, 65560, 131075, 0, 131097, 65539, 0, 131098, 65539, 0, 196633, 262147, 2, 196632, 3, 1, 196631, 131074, 0, 196634, 196611, 3, 262171, 65539, 2, 262170, 196611, 0, 262169, 65539, 1, 262168, 1507330, 2, 327704, 1310723, 3, 393240, 3, 1, 458776, 262147, 1, 458777, 262147, 3, 393241, 262147, 3, 393242, 131075, 1, 327706, 131075, 1, 327705, 196611, 2, 393243, 327680, 0, 458778, 196611, 1, 524314, 196611, 3, 589849, 196611, 3, 589848, 65539, 1, 655384, 262147, 3, 589847, 65539, 1, 655383, 262147, 0, 851988, 196611, 1, 851989, 65539, 0, 786455, 3, 1, 720919, 3, 1, 524312, 262147, 2, 786452, 131075, 1, 720916, 131075, 1, 720915, 196611, 2, 786451, 65539, 1, 786450, 262147, 3, 720914, 262147, 1, 851986, 196611, 2, 851987, 262147, 3, 917523, 65539, 2, 917522, 65539, 2, 851985, 196611, 3, 786449, 196611, 3, 720913, 65539, 0, 851984, 1638403, 3, 917520, 3, 2, 917521, 65539, 2, 786448, 1638403, 2, 917525, 262147, 0, 851990, 65539, 0, 655379, 262147, 1, 589843, 3, 0, 655378, 3, 0, 917524, 65539, 2, 983062, 131075, 2, 917527, 65539, 2, 917526, 196611, 0, 983061, 3, 2, 917528, 65539, 2, 851992, 196611, 2, 851991, 262147, 1, 917529, 131075, 2, 851993, 196611, 0, 786457, 196611, 2, 786456, 196611, 3, 851994, 131075, 2, 786458, 131075, 1, 720922, 196611, 0, 720921, 262147, 2, 720920, 65539, 1, 655386, 196611, 3, 589850, 65539, 1, 655385, 196611, 3, 720923, 65539, 2, 720924, 131075, 2, 655388, 131075, 1, 589852, 131075, 1, 589851, 65539, 1, 524315, 196611, 2, 524313, 262147, 3, 655387, 262147, 2, 458779, 65539, 0, 524317, 131075, 2, 458781, 131075, 1, 458780, 262147, 1, 393244, 3, 1, 524316, 196611, 0, 393245, 131075, 1, 327709, 131075, 1, 262173, 131075, 1, 262172, 262147, 0, 196637, 131075, 1, 131101, 131075, 0, 131100, 65539, 0, 196636, 196611, 3, 196635, 262147, 2, 327708, 3, 1, 131099, 65539, 0, 524294, 0, 1, 524295, 131072, 1, 589831, 131072, 1, 589830, 0, 1, 655366, 0, 1, 720902, 0, 1, 720903, 131072, 1, 655367, 131072, 1, 786438, 0, 1, 851974, 0, 2, 786439, 196608, 1, 851975, 65536, 2, 851976, 65536, 2, 786440, 65536, 0, 851977, 65536, 2, 851978, 65536, 2, 851979, 65536, 2, 851980, 65536, 2, 851981, 65536, 2, 851982, 262144, 0, 851983, 1572867, 3, 786447, 1114112, 2, 786446, 262144, 1, 786445, 65536, 0, 786444, 65536, 0, 786443, 65536, 0, 786442, 65536, 0, 786441, 65536, 0, 917519, 131072, 2, 720911, 131072, 0, 720910, 0, 0, 917518, 0, 2, 720912, 3, 0, 393235, 2, 2, 65537, 327680, 2, 196610, 327680, 0, 196609, 327680, 0, 196612, 327680, 0, 196613, 327680, 0, 196616, 327680, 0, 196615, 327680, 0, 393224, 327680, 0, 393223, 327680, 0, 393221, 327680, 0, 393220, 327680, 0, 393218, 327680, 0, 393217, 327680, 0, 786454, 327680, 0, 786453, 327680, 0)
[node name="Player" type="CharacterBody2D" parent="."]
position = Vector2(203, 60)
collision_layer = 2
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)
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
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)
[node name="RayCast2D" type="RayCast2D" parent="Enemy"]
target_position = Vector2(15, 0)
collision_mask = 3
hit_from_inside = true