diff --git a/Root.tscn b/Root.tscn index 50c0612..ecf3ee8 100644 --- a/Root.tscn +++ b/Root.tscn @@ -1,19 +1,21 @@ -[gd_scene load_steps=24 format=3 uid="uid://4whij2hmts0t"] +[gd_scene load_steps=29 format=3 uid="uid://4whij2hmts0t"] [ext_resource type="Script" path="res://Player.gd" id="1_wt4gx"] [ext_resource type="Material" uid="uid://dondfiavgo2ws" path="res://Unshaded.material" id="2_upp15"] [ext_resource type="Texture2D" uid="uid://uogmi4pvp64t" path="res://addons/bisio.png" id="3_27tel"] -[ext_resource type="Texture2D" uid="uid://bwiymy4ls5l8a" path="res://addons/kenney_prototype_textures/red/texture_05.png" id="3_gtnhv"] [ext_resource type="FontFile" uid="uid://cseshyj4yw2f5" path="res://fonts/FiraSans-Medium.ttf" id="3_p3wyc"] [ext_resource type="Script" path="res://GameTimer.gd" id="3_y362g"] [ext_resource type="Script" path="res://TextBox.gd" id="4_gpkq6"] [ext_resource type="FontFile" uid="uid://qf3uxmta6lpw" path="res://fonts/FiraCode-Medium.ttf" id="5_yvnu2"] [ext_resource type="PackedScene" uid="uid://4i2c481rpxe3" path="res://models/cinno.glb" id="8_32hx2"] [ext_resource type="Script" path="res://Camera3D.gd" id="8_auifr"] +[ext_resource type="Texture2D" uid="uid://ct6sngef76p35" path="res://addons/grass.png" id="9_i8cb1"] [ext_resource type="PackedScene" uid="uid://dp7p16vtxd1xr" path="res://obstacles/house_c.tscn" id="9_xyam4"] [ext_resource type="PackedScene" uid="uid://ccs202pcy4pce" path="res://obstacles/dialog.tscn" id="10_6ihn6"] +[ext_resource type="PlaneMesh" uid="uid://b2jhvncq5j8pe" path="res://road_mesh_something.tres" id="10_7jwjs"] [ext_resource type="Script" path="res://Buccia.gd" id="12_7dfpx"] [ext_resource type="PackedScene" uid="uid://72q4p7x8l08y" path="res://models/banana.glb" id="13_ecp45"] +[ext_resource type="Texture2D" uid="uid://d0hvok3thbj6l" path="res://addons/goal.png" id="14_apr3d"] [sub_resource type="Theme" id="Theme_hkcet"] Label/fonts/font = ExtResource("3_p3wyc") @@ -32,15 +34,43 @@ size = Vector3(0.3, 0.3, 0.3) material = ExtResource("2_upp15") size = Vector3(1, 0.1, 3) -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lkb30"] -albedo_texture = ExtResource("3_gtnhv") - -[sub_resource type="PlaneMesh" id="PlaneMesh_opk07"] -material = SubResource("StandardMaterial3D_lkb30") -size = Vector2(200, 200) - [sub_resource type="BoxShape3D" id="BoxShape3D_2bm1d"] -size = Vector3(200, 4, 200) +size = Vector3(100000, 4, 100000) + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ox173"] +albedo_texture = ExtResource("9_i8cb1") + +[sub_resource type="PlaneMesh" id="PlaneMesh_jacs4"] +material = SubResource("StandardMaterial3D_ox173") + +[sub_resource type="MeshLibrary" id="MeshLibrary_hklma"] +item/0/name = "Grass" +item/0/mesh = SubResource("PlaneMesh_jacs4") +item/0/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) +item/0/shapes = [] +item/0/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) +item/0/navigation_layers = 1 +item/1/name = "AsphaltV" +item/1/mesh = ExtResource("10_7jwjs") +item/1/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) +item/1/shapes = [] +item/1/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) +item/1/navigation_layers = 1 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hhace"] +render_priority = 100 +transparency = 1 +no_depth_test = true +shading_mode = 0 +albedo_texture = ExtResource("14_apr3d") +texture_filter = 0 +billboard_mode = 1 +billboard_keep_scale = true + +[sub_resource type="PlaneMesh" id="PlaneMesh_i87og"] +material = SubResource("StandardMaterial3D_hhace") +size = Vector2(0.5, 0.5) +orientation = 2 [sub_resource type="BoxShape3D" id="BoxShape3D_p1ebg"] size = Vector3(1.5, 1.5, 1.5) @@ -167,13 +197,19 @@ skeleton = NodePath("../..") [node name="Plane" type="StaticBody3D" parent="."] -[node name="MeshInstance3D" type="MeshInstance3D" parent="Plane"] -mesh = SubResource("PlaneMesh_opk07") - [node name="CollisionShape3D" type="CollisionShape3D" parent="Plane"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0) shape = SubResource("BoxShape3D_2bm1d") +[node name="GridMap" type="GridMap" parent="Plane"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0) +mesh_library = SubResource("MeshLibrary_hklma") +cell_size = Vector3(16, 2, 16) +cell_scale = 8.0 +data = { +"cells": PackedInt32Array(65533, 65535, 1, 65533, 0, 1) +} + [node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("target")] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 21.3066, 18.1673) script = ExtResource("8_auifr") @@ -202,6 +238,9 @@ transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, -7) text = "uno" duration = 1.0 +[node name="GoalBillboard" type="MeshInstance3D" parent="Dialog"] +mesh = SubResource("PlaneMesh_i87og") + [node name="Dialog2" parent="." instance=ExtResource("10_6ihn6")] transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, -16) text = "due" diff --git a/addons/asphalt.png b/addons/asphalt.png new file mode 100644 index 0000000..1604572 Binary files /dev/null and b/addons/asphalt.png differ diff --git a/addons/asphalt.png.import b/addons/asphalt.png.import new file mode 100644 index 0000000..b486444 --- /dev/null +++ b/addons/asphalt.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://2cuubqxj75u6" +path.s3tc="res://.godot/imported/asphalt.png-3e65ac69213480c761c57143e40284dd.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://addons/asphalt.png" +dest_files=["res://.godot/imported/asphalt.png-3e65ac69213480c761c57143e40284dd.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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=0 diff --git a/addons/goal.png b/addons/goal.png new file mode 100644 index 0000000..24e1490 Binary files /dev/null and b/addons/goal.png differ diff --git a/addons/goal.png.import b/addons/goal.png.import new file mode 100644 index 0000000..dbe0c06 --- /dev/null +++ b/addons/goal.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d0hvok3thbj6l" +path.s3tc="res://.godot/imported/goal.png-9eb3689ba6826748bdd2bb9a752c7f05.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://addons/goal.png" +dest_files=["res://.godot/imported/goal.png-9eb3689ba6826748bdd2bb9a752c7f05.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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=0 diff --git a/addons/grass.png b/addons/grass.png new file mode 100644 index 0000000..d26487b Binary files /dev/null and b/addons/grass.png differ diff --git a/addons/grass.png.import b/addons/grass.png.import new file mode 100644 index 0000000..969be38 --- /dev/null +++ b/addons/grass.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ct6sngef76p35" +path.s3tc="res://.godot/imported/grass.png-5c99d76235825ded6c6cafea039fd814.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://addons/grass.png" +dest_files=["res://.godot/imported/grass.png-5c99d76235825ded6c6cafea039fd814.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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=0 diff --git a/road_mesh_something.tres b/road_mesh_something.tres new file mode 100644 index 0000000..39aaa47 --- /dev/null +++ b/road_mesh_something.tres @@ -0,0 +1,9 @@ +[gd_resource type="PlaneMesh" load_steps=3 format=3 uid="uid://b2jhvncq5j8pe"] + +[ext_resource type="Texture2D" uid="uid://2cuubqxj75u6" path="res://addons/asphalt.png" id="1_6yda2"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_30fli"] +albedo_texture = ExtResource("1_6yda2") + +[resource] +material = SubResource("StandardMaterial3D_30fli")