From 4ce7ba917d1c1cde3b953df203f20ff4f3c69939 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 25 Nov 2023 18:01:15 +0100 Subject: [PATCH] sdhxcvuiadfhuigvbuig45uy458u --- Root.tscn | 65 ++++++++++++++++++++++++++++++-------- addons/asphalt.png | Bin 0 -> 2263 bytes addons/asphalt.png.import | 35 ++++++++++++++++++++ addons/goal.png | Bin 0 -> 1999 bytes addons/goal.png.import | 35 ++++++++++++++++++++ addons/grass.png | Bin 0 -> 3012 bytes addons/grass.png.import | 35 ++++++++++++++++++++ road_mesh_something.tres | 9 ++++++ 8 files changed, 166 insertions(+), 13 deletions(-) create mode 100644 addons/asphalt.png create mode 100644 addons/asphalt.png.import create mode 100644 addons/goal.png create mode 100644 addons/goal.png.import create mode 100644 addons/grass.png create mode 100644 addons/grass.png.import create mode 100644 road_mesh_something.tres 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 0000000000000000000000000000000000000000..160457215c3edada1c2a8d02f2b6482f998d78fb GIT binary patch literal 2263 zcmV;|2q^c7P)EX>4Tx04R}tkv&MmKpe$iQ^lec1v{uXWN4i%h>AFB6^c-y)C#RSm|Xe=O&XFE z7e~Rh;NZt%)xpJCR|i)?5c~jfb#YR3krMxx6k5c1aNLh~_a1le0HI!Hs@X9PsG4P@ z;xRFkT@|}t(SsrMBY=p+OnokyOu%z|-NVP%yC~1{KKJM7RdOZ+d?N8I(+!JwgLrz= z(mC%FhgeZkh|h_~47wokBiCh@-#8Z>7IWAqf#Oswklh3sG7%QcR?1Kjz^dcKk_l$>b`5 zkz)ZBsE`~#_#gc4*33^%xJkhn(D`E99}%Ey7iiRM`}^3o8z+GO8Mx9~{z@H~`6Rv8 z(!xhT-!^b@-O}Ve;Bp5Te9|RDawI=ZA)g1{&*+=7z`!lgz2^4T+{ftykfyE@H^9Lm zFj}DOb&q!k+I#!=OtZfqWKVLT++6-!00006VoOIv03HAy03OODA%y?{010qNS#tmY zE+YT{E+YYWr9XB6000McNliru=L;DS3n?HpN=X0!02y>eSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{00yr~L_t(o!+lq4bDKI4J-iHl$FYH61L7g^|Nl;>b=oFr zQs4G=rjMj?6Z_l`AY$zFGNbWeR?_P1*|RGEV5JlRuqX-wI2l3+R#ipc_bH`hndcl1 zhfLFyX_~fn7g5AsuSdsm2!Lf-ve)ZT?-3_SXH5WvQWXJEO4)u)Mb^Gsmc@R*&#J1J zWqHT0-T2~yd7iV#>jTW^^Op^pQI_?*B#G%b4waHTJDU*zs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sKCUM+BK$a!@P0ALsWSXX& zo=rKOP8mhfNuN=3BY&xe^TmS8gKFr9VOLHMIshJ`EQ5xJde=Y z-S7A5dLBh4UhRC3n-AG^xfd4^Ez4rB*JFP$U{U0p&1Q__n1jK9s*+68gr4WM9P@pj zLI|!_%Nl|4c-$!>@}LXS^e>$;THD}`#gjA)uB z9miprcQ@7-3;?W}ejtux8iv6<&s(QQqfr;BRCHQ&!!SBBo+Jrn)u61ZF5KZk{B>`q z`+2>Hl(Hq^YhraMT6LpRHYZl>ISz#oZ8vRbCazX142MJ9+}z;dp)SK&mf^#P53h=o z7NSZjtl!sylBNk9r-$`=4FJgV9JXDT8yW%F8X$BuIa-2$sq&>9LSMfa0 lnIv&r7kuBR=Xq_t`42GeqI*}Gi}wHk002ovPDHLkV1lqSJXZh! literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..24e14900bdf8351734ad6e1fbed55389eec350fa GIT binary patch literal 1999 z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