2023-05-05 16:26:33 +02:00
|
|
|
[gd_scene load_steps=22 format=2]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[ext_resource path="res://scenes/StreamContainer.cs" type="Script" id=1]
|
|
|
|
[ext_resource path="res://components/NavigationComponent.cs" type="Script" id=2]
|
|
|
|
[ext_resource path="res://entities/Player.cs" type="Script" id=3]
|
2023-05-01 18:37:35 +02:00
|
|
|
[ext_resource path="res://components/MovableComponent.tscn" type="PackedScene" id=4]
|
2023-02-12 16:30:56 +01:00
|
|
|
[ext_resource path="res://utils/TileHighlight.tscn" type="PackedScene" id=5]
|
|
|
|
[ext_resource path="res://components/WorldInfoComponent.cs" type="Script" id=6]
|
2023-02-12 21:10:28 +01:00
|
|
|
[ext_resource path="res://entities/Chest.tscn" type="PackedScene" id=7]
|
2023-05-05 16:26:33 +02:00
|
|
|
[ext_resource path="res://scenes/TileWorld.tscn" type="PackedScene" id=8]
|
2023-02-12 16:30:56 +01:00
|
|
|
[ext_resource path="res://scenes/Game.cs" type="Script" id=9]
|
|
|
|
[ext_resource path="res://scenes/DebugCamera.gd" type="Script" id=10]
|
2023-04-30 14:17:10 +02:00
|
|
|
[ext_resource path="res://assets/CreatusPiratePack/Models/Characters/gltf/Pirate1final.glb" type="PackedScene" id=11]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[sub_resource type="CubeMesh" id=1]
|
|
|
|
size = Vector3( 1, 1, 1 )
|
|
|
|
|
|
|
|
[sub_resource type="SpatialMaterial" id=2]
|
|
|
|
params_blend_mode = 3
|
|
|
|
albedo_color = Color( 1, 1, 1, 0.156863 )
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape" id=9]
|
|
|
|
extents = Vector3( 20, 1, 20 )
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape" id=7]
|
2023-02-12 16:44:48 +01:00
|
|
|
radius = 0.3
|
2023-02-12 16:30:56 +01:00
|
|
|
height = 0.2
|
|
|
|
|
|
|
|
[sub_resource type="SpatialMaterial" id=20]
|
|
|
|
albedo_color = Color( 0.741176, 0.529412, 0.32549, 1 )
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleMesh" id=8]
|
|
|
|
material = SubResource( 20 )
|
|
|
|
radius = 0.2
|
|
|
|
mid_height = 0.5
|
|
|
|
radial_segments = 16
|
|
|
|
|
|
|
|
[sub_resource type="CubeMesh" id=14]
|
|
|
|
|
|
|
|
[sub_resource type="PrismMesh" id=15]
|
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[sub_resource type="CylinderShape" id=24]
|
|
|
|
height = 0.2
|
|
|
|
|
|
|
|
[sub_resource type="SphereShape" id=23]
|
|
|
|
radius = 0.1
|
|
|
|
|
2023-02-12 16:30:56 +01:00
|
|
|
[node name="Game" type="Spatial"]
|
|
|
|
script = ExtResource( 9 )
|
|
|
|
|
|
|
|
[node name="TileHighlight" parent="." instance=ExtResource( 5 )]
|
2023-05-05 16:26:33 +02:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0 )
|
2023-02-12 16:30:56 +01:00
|
|
|
visible = false
|
|
|
|
|
|
|
|
[node name="MouseTileHighlight" parent="." instance=ExtResource( 5 )]
|
2023-05-05 16:26:33 +02:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0 )
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-05-05 16:26:33 +02:00
|
|
|
[node name="TileWorld" parent="." instance=ExtResource( 8 )]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
|
|
margin_right = 40.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
mouse_filter = 2
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Control"]
|
2023-05-05 16:26:33 +02:00
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 158.0
|
2023-02-12 16:30:56 +01:00
|
|
|
mouse_filter = 2
|
|
|
|
alignment = 2
|
|
|
|
|
2023-05-05 16:26:33 +02:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Control/HBoxContainer"]
|
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = 158.0
|
|
|
|
alignment = 2
|
|
|
|
|
|
|
|
[node name="WorldTextureRect" type="TextureRect" parent="Control/HBoxContainer/VBoxContainer"]
|
|
|
|
margin_top = 34.0
|
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = 134.0
|
|
|
|
rect_min_size = Vector2( 100, 100 )
|
|
|
|
stretch_mode = 1
|
|
|
|
|
|
|
|
[node name="WorldGenerateButton" type="Button" parent="Control/HBoxContainer/VBoxContainer"]
|
|
|
|
margin_top = 138.0
|
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = 158.0
|
|
|
|
text = "Generate"
|
|
|
|
|
2023-02-12 16:30:56 +01:00
|
|
|
[node name="GridContainer" type="GridContainer" parent="Control/HBoxContainer"]
|
2023-05-05 16:26:33 +02:00
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 231.0
|
2023-02-12 16:30:56 +01:00
|
|
|
margin_bottom = 158.0
|
|
|
|
mouse_filter = 2
|
|
|
|
columns = 2
|
|
|
|
|
|
|
|
[node name="Label9" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "FPS"
|
|
|
|
|
|
|
|
[node name="fps_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "0,0"
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 32.0
|
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "Tile"
|
|
|
|
|
|
|
|
[node name="tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 32.0
|
|
|
|
text = "0,0"
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 36.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 50.0
|
|
|
|
text = "Tile Offset"
|
|
|
|
|
|
|
|
[node name="tile_offset_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 36.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 50.0
|
|
|
|
text = "0,0"
|
|
|
|
|
|
|
|
[node name="Label4" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 54.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 68.0
|
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "Mouse World"
|
|
|
|
|
|
|
|
[node name="mouse_world_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 54.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 68.0
|
|
|
|
text = "0,0"
|
|
|
|
|
|
|
|
[node name="Label6" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 72.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 86.0
|
|
|
|
rect_pivot_offset = Vector2( -335, -33 )
|
|
|
|
text = "Mouse Tile"
|
|
|
|
|
|
|
|
[node name="mouse_tile_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 72.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 86.0
|
|
|
|
text = "0,0"
|
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 90.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 104.0
|
|
|
|
text = "#Tiles"
|
|
|
|
|
|
|
|
[node name="num_tiles_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 90.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 104.0
|
|
|
|
text = "0"
|
|
|
|
|
|
|
|
[node name="Label5" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 108.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 122.0
|
|
|
|
text = "#Active"
|
|
|
|
|
|
|
|
[node name="num_active_tiles_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 108.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 122.0
|
|
|
|
text = "0"
|
|
|
|
|
|
|
|
[node name="Label7" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 126.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 140.0
|
|
|
|
text = "#Tiles Added"
|
|
|
|
|
|
|
|
[node name="num_coords_added_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 126.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 140.0
|
|
|
|
text = "0"
|
|
|
|
|
|
|
|
[node name="Label8" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_top = 144.0
|
|
|
|
margin_right = 103.0
|
|
|
|
margin_bottom = 158.0
|
|
|
|
text = "#Tiles Removed"
|
|
|
|
|
|
|
|
[node name="num_coords_removed_label" type="Label" parent="Control/HBoxContainer/GridContainer"]
|
|
|
|
margin_left = 107.0
|
|
|
|
margin_top = 144.0
|
|
|
|
margin_right = 127.0
|
|
|
|
margin_bottom = 158.0
|
|
|
|
text = "0"
|
|
|
|
|
|
|
|
[node name="StreamContainer" type="Spatial" parent="."]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
Dimensions = Vector2( 18, 17 )
|
|
|
|
World = NodePath("../TileWorld")
|
|
|
|
|
|
|
|
[node name="ActiveTiles" type="Spatial" parent="StreamContainer"]
|
|
|
|
|
|
|
|
[node name="Bounds" type="MeshInstance" parent="StreamContainer"]
|
|
|
|
transform = Transform( 4, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0 )
|
|
|
|
visible = false
|
|
|
|
mesh = SubResource( 1 )
|
|
|
|
skeleton = NodePath("../..")
|
|
|
|
material/0 = SubResource( 2 )
|
|
|
|
|
|
|
|
[node name="Area" type="Area" parent="StreamContainer"]
|
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="StreamContainer/Area"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
|
|
|
|
shape = SubResource( 9 )
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 0.511698, 0.859165, 0, -0.859165, 0.511698, -4.76837e-07, 4.79787, 2.99071 )
|
|
|
|
current = true
|
|
|
|
fov = 60.0
|
|
|
|
script = ExtResource( 10 )
|
|
|
|
|
|
|
|
[node name="Player" type="KinematicBody" parent="."]
|
2023-04-28 14:19:48 +02:00
|
|
|
collision_mask = 0
|
2023-02-12 16:44:48 +01:00
|
|
|
axis_lock_motion_y = true
|
|
|
|
move_lock_y = true
|
2023-02-12 16:30:56 +01:00
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Player"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, 0 )
|
|
|
|
shape = SubResource( 7 )
|
|
|
|
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Player"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, 0 )
|
|
|
|
mesh = SubResource( 8 )
|
|
|
|
|
|
|
|
[node name="Arrow" type="Spatial" parent="Player/MeshInstance"]
|
|
|
|
transform = Transform( 3, -1.51264e-15, -9.91796e-22, 0, -8.74228e-09, 3, -2.26897e-14, -0.2, -1.31134e-07, 0, -0.253289, 0.32602 )
|
2023-04-30 13:41:38 +02:00
|
|
|
visible = false
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Player/MeshInstance/Arrow"]
|
|
|
|
transform = Transform( 0.1, 0, 3.72529e-09, 0, 0.1, 0, -3.72529e-09, 0, 0.1, 0, 0, 0 )
|
|
|
|
visible = false
|
|
|
|
mesh = SubResource( 14 )
|
|
|
|
skeleton = NodePath("../../..")
|
|
|
|
|
|
|
|
[node name="MeshInstance2" type="MeshInstance" parent="Player/MeshInstance/Arrow"]
|
|
|
|
transform = Transform( 0.1, 3.72529e-09, -1.62838e-16, 0, -4.37114e-09, -0.1, -3.72529e-09, 0.1, -4.37114e-09, 0, 0, 0.191322 )
|
2023-04-30 13:41:38 +02:00
|
|
|
visible = false
|
2023-02-12 16:30:56 +01:00
|
|
|
mesh = SubResource( 15 )
|
|
|
|
skeleton = NodePath("../../..")
|
|
|
|
|
2023-05-01 18:37:35 +02:00
|
|
|
[node name="Movable" parent="Player" instance=ExtResource( 4 )]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[node name="Geometry" type="Spatial" parent="Player"]
|
2023-04-30 14:17:10 +02:00
|
|
|
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-04-30 14:17:10 +02:00
|
|
|
[node name="Pirate1final" parent="Player/Geometry" instance=ExtResource( 11 )]
|
2023-02-12 16:30:56 +01:00
|
|
|
|
|
|
|
[node name="WorldInfo" type="Node" parent="Player"]
|
|
|
|
script = ExtResource( 6 )
|
|
|
|
World = NodePath("../../TileWorld")
|
|
|
|
|
|
|
|
[node name="Navigation" type="Node" parent="Player"]
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="ItemAttractorArea" type="Area" parent="Player"]
|
|
|
|
collision_layer = 0
|
|
|
|
collision_mask = 8
|
|
|
|
monitorable = false
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Player/ItemAttractorArea"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.123516, 0 )
|
|
|
|
shape = SubResource( 24 )
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="ItemPickupArea" type="Area" parent="Player"]
|
|
|
|
collision_layer = 0
|
|
|
|
collision_mask = 8
|
|
|
|
monitorable = false
|
2023-04-27 23:56:06 +02:00
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Player/ItemPickupArea"]
|
|
|
|
shape = SubResource( 23 )
|
2023-04-27 23:56:06 +02:00
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="Entities" type="Spatial" parent="."]
|
2023-04-27 23:56:06 +02:00
|
|
|
|
2023-04-28 14:19:48 +02:00
|
|
|
[node name="Chest" parent="Entities" instance=ExtResource( 7 )]
|
2023-05-01 18:37:35 +02:00
|
|
|
transform = Transform( -0.510903, 0, 0.859639, 0, 1, 0, -0.859639, 0, -0.510903, 0.0770743, 0, 2.60865 )
|
2023-04-27 23:56:06 +02:00
|
|
|
|
2023-02-12 21:10:28 +01:00
|
|
|
[node name="Chest3" parent="Entities" instance=ExtResource( 7 )]
|
|
|
|
transform = Transform( 0.550568, 0, -0.83479, 0, 1, 0, 0.83479, 0, 0.550568, 4.88275, 0, -1.70504 )
|
2023-02-12 16:30:56 +01:00
|
|
|
|
2023-02-12 21:10:28 +01:00
|
|
|
[node name="Chest2" parent="Entities" instance=ExtResource( 7 )]
|
|
|
|
transform = Transform( 0.793576, 0, -0.608471, 0, 1, 0, 0.608471, 0, 0.793576, 2.79265, 0, -5.36551 )
|
2023-04-27 23:56:06 +02:00
|
|
|
|
|
|
|
[editable path="Entities/Chest"]
|