Compare commits

...

3 commits

Author SHA1 Message Date
7878e4bd14 tweak hit collision 2025-11-18 13:31:18 -03:00
af28d94448 add ball spawn point object 2025-11-18 13:29:33 -03:00
69ee1ad197 add player spawn object 2025-11-18 13:28:05 -03:00
7 changed files with 27 additions and 4 deletions

View file

@ -4,8 +4,8 @@
[ext_resource type="Texture2D" uid="uid://c6a62gvw7218s" path="res://scenes/hit/assets/hit.png" id="1_rmj1p"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_fxeki"]
radius = 11.0
height = 24.0
radius = 15.0
height = 34.0
[node name="SmallHit2D" type="Area2D" groups=["hit"]]
collision_layer = 64
@ -15,8 +15,7 @@ metadata/_custom_type_script = "uid://b440ri3521uio"
metadata/power_hit = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(4, 1)
rotation = 1.5707964
position = Vector2(1, 6)
shape = SubResource("CapsuleShape2D_fxeki")
debug_color = Color(0.6205005, 0.42311785, 0.8432588, 0.41960785)

View file

@ -0,0 +1,4 @@
extends Marker2D
@onready var ball_scene: PackedScene = preload("res://scenes/ball/ball.tscn")

View file

@ -0,0 +1 @@
uid://bemuqfgi28ffn

View file

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://c6p40lasv2m2k"]
[ext_resource type="Script" uid="uid://bemuqfgi28ffn" path="res://scenes/markers/ball_spawn_point.gd" id="1_tu1hv"]
[node name="BallSpawnPoint" type="Marker2D"]
script = ExtResource("1_tu1hv")

View file

@ -0,0 +1,5 @@
extends Marker2D
@export_range(1,2) var player_id: int
@onready var player_scene: PackedScene = preload("res://scenes/player/player.tscn")

View file

@ -0,0 +1 @@
uid://bvokstchph1vk

View file

@ -0,0 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://b2pq6fwt4ge21"]
[ext_resource type="Script" uid="uid://bvokstchph1vk" path="res://scenes/markers/player_spawn_point.gd" id="1_qvk6i"]
[node name="PlayerSpawnPoint" type="Marker2D"]
gizmo_extents = 18.6
script = ExtResource("1_qvk6i")