From 6f558788063ced4cf5e1dbbe64785c9a8bd806d1 Mon Sep 17 00:00:00 2001 From: Mista317 Date: Sun, 5 Apr 2026 17:15:32 -0400 Subject: [PATCH] [ADD] floor, player, ball, and camera --- Escena.tscn | 34 ++++++++++++++++++++++++++++++++++ ball.tscn | 15 +++++++++++++++ icon.svg.import | 6 ++++++ lobby/lobby_theme.tres | 2 +- player.tscn | 17 +++++++++++++++++ project.godot | 6 +++++- 6 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 Escena.tscn create mode 100644 ball.tscn create mode 100644 player.tscn diff --git a/Escena.tscn b/Escena.tscn new file mode 100644 index 000000000..56ceeef4c --- /dev/null +++ b/Escena.tscn @@ -0,0 +1,34 @@ +[gd_scene format=3 uid="uid://dvq3f3lgbn2w2"] + +[ext_resource type="PackedScene" uid="uid://bqpjkukohh2sn" path="res://ball.tscn" id="1_u2bpn"] +[ext_resource type="PackedScene" uid="uid://bfotyicask2r2" path="res://player.tscn" id="2_1wh3i"] + +[sub_resource type="PlaneMesh" id="PlaneMesh_gpcq5"] +size = Vector2(15, 20) + +[sub_resource type="BoxShape3D" id="BoxShape3D_324th"] +size = Vector3(15, 0.001, 20) + +[node name="Escena" type="Node3D" unique_id=1303625090] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=482136501] +mesh = SubResource("PlaneMesh_gpcq5") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D" unique_id=387364672] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D" unique_id=1763965659] +shape = SubResource("BoxShape3D_324th") + +[node name="Camera3D" type="Camera3D" parent="." unique_id=1511802282] +transform = Transform3D(1, 0, 0, 0, -0.00022694468, 1, 0, -1, -0.00022694468, 0, 5.513579, 0) + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1301504848] +transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 7.2112, 0) +light_color = Color(0.8106425, 0.9996781, 0.84131616, 1) +light_energy = 0.525 + +[node name="Ball" parent="." unique_id=2005105486 instance=ExtResource("1_u2bpn")] +transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0.5641097, 1.3124999, -0.4209944) + +[node name="Player" parent="." unique_id=531167561 instance=ExtResource("2_1wh3i")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6738801, 1.3716722, 1.8097532) diff --git a/ball.tscn b/ball.tscn new file mode 100644 index 000000000..7b3b1983c --- /dev/null +++ b/ball.tscn @@ -0,0 +1,15 @@ +[gd_scene format=3 uid="uid://bqpjkukohh2sn"] + +[sub_resource type="SphereMesh" id="SphereMesh_cbx31"] + +[sub_resource type="SphereShape3D" id="SphereShape3D_x8fbi"] + +[node name="Ball" type="Node3D" unique_id=2005105486] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1283054121] +mesh = SubResource("SphereMesh_cbx31") + +[node name="RigidBody3D" type="RigidBody3D" parent="MeshInstance3D" unique_id=679022217] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/RigidBody3D" unique_id=9153378] +shape = SubResource("SphereShape3D_x8fbi") diff --git a/icon.svg.import b/icon.svg.import index 1f755be8e..254942b0a 100644 --- a/icon.svg.import +++ b/icon.svg.import @@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.cte compress/mode=0 compress/high_quality=false compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 compress/hdr_compression=1 compress/normal_map=0 compress/channel_pack=0 @@ -25,6 +27,10 @@ mipmaps/generate=false mipmaps/limit=-1 roughness/mode=0 roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 process/fix_alpha_border=true process/premult_alpha=false process/normal_map_invert_y=false diff --git a/lobby/lobby_theme.tres b/lobby/lobby_theme.tres index aeab2f9b2..de03ba80b 100644 --- a/lobby/lobby_theme.tres +++ b/lobby/lobby_theme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=4 format=3 uid="uid://bwgdrcgopd0s1"] +[gd_resource type="Theme" format=3 uid="uid://bwgdrcgopd0s1"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3xflx"] bg_color = Color(0, 0, 0, 0.501961) diff --git a/player.tscn b/player.tscn new file mode 100644 index 000000000..d8f19b145 --- /dev/null +++ b/player.tscn @@ -0,0 +1,17 @@ +[gd_scene format=3 uid="uid://bfotyicask2r2"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_sh265"] + +[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_4flbx"] +points = PackedVector3Array(-0.12520654, -0.532801, -0.4805069, 0.022783129, 0.4760704, 0.49888408, 0.16971254, 0.5591441, 0.46417162, 0.23105091, -0.8035912, 0.32045516, 0.40741014, 0.651043, -0.24352328, -0.4827893, 0.59484255, 0.082213186, -0.3628679, -0.68231165, 0.2896967, 0.46904355, -0.65452886, -0.06627126, -0.12744367, 0.8427015, -0.33810276, -0.39343542, -0.6839421, -0.24471663, 0.43825462, 0.62330925, 0.20084947, 0.0841477, 0.977454, 0.11479468, -0.06820232, -0.9764576, -0.12927033, 0.20054972, -0.56312895, -0.4514544, -0.18552664, 0.59545326, -0.4534751, -0.27336287, 0.59226835, 0.40775412, -0.0069364863, -0.47682306, 0.49966025, 0.37582088, -0.5886136, 0.31695515, 0.111579016, 0.5630594, -0.48117727, -0.41725034, 0.5278656, -0.27049688, -0.48454633, -0.59697217, -0.06650971, -0.27974695, 0.90856135, 0.05333608, -0.25019687, -0.8807117, 0.20531891, 0.263647, -0.90277094, -0.1273943, 0.29336792, 0.8715263, -0.15719566, 0.3734115, -0.5263189, -0.32824618, 0.4996626, 0.47664148, -0.0068885577, 0.053105574, 0.8750009, 0.32470253, -0.15454252, -0.5908538, 0.4658794, -0.09727988, -0.7823577, -0.39818847, -0.3876489, -0.49817133, 0.31564978, -0.30067965, -0.58799505, -0.38890144) + +[node name="Player" type="Node3D" unique_id=531167561] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1420936729] +mesh = SubResource("CapsuleMesh_sh265") + +[node name="RigidBody3D" type="RigidBody3D" parent="MeshInstance3D" unique_id=1764176198] +lock_rotation = true + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/RigidBody3D" unique_id=240296017] +shape = SubResource("ConvexPolygonShape3D_4flbx") diff --git a/project.godot b/project.godot index 1c9a5a34c..45080afc1 100644 --- a/project.godot +++ b/project.godot @@ -8,11 +8,15 @@ config_version=5 +[animation] + +compatibility/default_parent_skeleton_in_mesh_instance_3d=true + [application] config/name="multiplayer_example" run/main_scene="res://ui/main_menu.tscn" -config/features=PackedStringArray("4.4", "Forward Plus") +config/features=PackedStringArray("4.6", "Forward Plus") config/icon="res://icon.svg" [autoload]