made everything more accurate

This commit is contained in:
Adam Burns 2026-02-11 15:43:20 -05:00
parent 9f03753f8d
commit 28f8bfa8e4
15 changed files with 326 additions and 65 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://vfxgx3oc6nm1"
path="res://.godot/imported/ball-kenney-accurate.png-0756708f1c1144f4e204fcfb7addc497.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/ball/ball-kenney-accurate.png"
dest_files=["res://.godot/imported/ball-kenney-accurate.png-0756708f1c1144f4e204fcfb7addc497.ctex"]
[params]
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
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
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://qq1gvnw7an1s"
path="res://.godot/imported/court-lines.png-ebae5a0593199d780b630d750ccafba4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/court/court-lines.png"
dest_files=["res://.godot/imported/court-lines.png-ebae5a0593199d780b630d750ccafba4.ctex"]
[params]
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
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
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="1510"
height="1410"
version="1.1"
id="svg10"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<title
id="title1">Basketball court dimensions</title>
<desc
id="desc1">Basketball court. written by maix (Marian Sigler). License: CreativeCommons ShareAlike (http://creativecommons.org/licenses/sa/1.0/)</desc>
<style
type="text/css"
id="style1">
rect, circle, line, path { fill:none; stroke:black; stroke-width:10px; }
.basket { stroke:black }
.freethrow_lane_line_dashed { stroke-dasharray:0,175,10,85,40,85,10,85,10,999; }
text { font-family:sans-serif; font-size:50px; }
#captions line { stroke-width:5px; stroke-linecap:round; }
marker * { stroke-width:1; }
#dimensions line { stroke-width:3px; marker-start:url(#dimensions_linecap); marker-end:url(#dimensions_linecap);}
#dimensions text { text-anchor:middle; }
</style>
<defs
id="defs1" />
<metadata
id="metadata1">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:title>Basketball court dimensions</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="myLines">
<rect
style="fill:none;fill-opacity:0.458265;stroke:#000000;stroke-width:5.0172;stroke-dasharray:none;stroke-opacity:1"
id="halfcourt"
width="1504.9828"
height="1404.9828"
x="2.5086"
y="2.5086" />
<rect
style="fill:none;fill-opacity:0.458265;stroke:#000000;stroke-width:5.00011;stroke-dasharray:none;stroke-opacity:1"
id="key"
width="484.99988"
height="579.99988"
x="512.50598"
y="2.5000556" />
<path
id="freethrow_circle_a"
d="m 927.03425,574.5 c 0,97.9989 -79.53535,177.53425 -177.53425,177.53425 -97.9989,0 -177.53425,-79.53535 -177.53425,-177.53425"
style="stroke-width:4.93151;stroke-dasharray:none"
transform="translate(5.5,5.5)" />
<line
id="three_point_line_left"
x1="82"
y1="-0.5"
x2="82"
y2="157"
style="stroke-width:5;stroke-dasharray:none"
transform="translate(5.5,5.5)" />
<line
id="three_point_line_right"
x1="1427"
y1="-0.5"
x2="1427"
y2="157"
style="stroke-width:5;stroke-dasharray:none"
transform="translate(5.5,5.5)" />
<path
id="three_point_line_circle"
d="M 1427,157 C 1427,528.21998 1125.72,829.49998 754.49997,829.49998 383.27999,829.49998 82.000005,528.21998 82.000005,157"
style="stroke-width:5.00001;stroke-dasharray:none"
transform="translate(5.5,5.5)" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://itt5cfktry8p"
path="res://.godot/imported/court-lines.svg-b9f665f61329fddc51d5bbe8f8b0aaf9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/court/court-lines.svg"
dest_files=["res://.godot/imported/court-lines.svg-b9f665f61329fddc51d5bbe8f8b0aaf9.ctex"]
[params]
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
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
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dwgdxhba5p8xk"
path="res://.godot/imported/hoop-sprite-accurate.png-6fec8b047602eaedc475e1c8aacbf362.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/court/hoop-sprite-accurate.png"
dest_files=["res://.godot/imported/hoop-sprite-accurate.png-6fec8b047602eaedc475e1c8aacbf362.ctex"]
[params]
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
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
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ctakygdw82fs2"
path="res://.godot/imported/orange-45.png-ccec7bbce707c05643b204e9db0810d8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/players/top-down/orange-45.png"
dest_files=["res://.godot/imported/orange-45.png-ccec7bbce707c05643b204e9db0810d8.ctex"]
[params]
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
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
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -1,7 +1,7 @@
[gd_scene format=3 uid="uid://cbqaj6trvqat0"]
[ext_resource type="Script" uid="uid://3c5arbqbgr2l" path="res://scripts/ball.gd" id="1_x8fbi"]
[ext_resource type="Texture2D" uid="uid://ot6gbcnca0lu" path="res://assets/ball/ball_basket2.png" id="2_41u45"]
[ext_resource type="Texture2D" uid="uid://vfxgx3oc6nm1" path="res://assets/ball/ball-kenney-accurate.png" id="2_41u45"]
[node name="Ball" type="Node2D" unique_id=1245529605]
script = ExtResource("1_x8fbi")

View File

@ -1,20 +1,48 @@
[gd_scene format=3 uid="uid://cxbu51aedxg3c"]
[ext_resource type="Script" uid="uid://bpyti0u3ig8rs" path="res://scripts/court.gd" id="1_ih5bv"]
[ext_resource type="Texture2D" uid="uid://cf4vy3j12ydus" path="res://assets/court/half-court-custom.png" id="2_ih5bv"]
[ext_resource type="Texture2D" uid="uid://qq1gvnw7an1s" path="res://assets/court/court-lines.png" id="2_ih5bv"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_klx28"]
vertices = PackedVector2Array(1500, 1400, 10, 1400, 10, 10, 1500, 10)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(0, 0, 1510, 0, 1510, 1410, 0, 1410)])
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ih5bv"]
size = Vector2(490, 585)
[sub_resource type="CircleShape2D" id="CircleShape2D_ih5bv"]
radius = 675.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_acrlw"]
size = Vector2(1350, 157.5)
[node name="Court" type="Node2D" unique_id=1870443472]
script = ExtResource("1_ih5bv")
[node name="CourtSprite" type="Sprite2D" parent="." unique_id=401540171]
[node name="CourtLines" type="Sprite2D" parent="." unique_id=401540171]
modulate = Color(1, 1, 1, 0.4627451)
texture = ExtResource("2_ih5bv")
centered = false
[node name="NavigationRegion2D" type="NavigationRegion2D" parent="." unique_id=1617904918]
navigation_polygon = SubResource("NavigationPolygon_klx28")
[node name="KeyArea" type="Area2D" parent="." unique_id=538903225]
position = Vector2(755, 292)
[node name="CollisionShape2D" type="CollisionShape2D" parent="KeyArea" unique_id=1398173864]
shape = SubResource("RectangleShape2D_ih5bv")
debug_color = Color(1, 1, 0, 0.41960785)
[node name="TwoPointArea" type="Area2D" parent="." unique_id=1591376341]
position = Vector2(760, 162.5)
[node name="TwoPointArc" type="CollisionShape2D" parent="TwoPointArea" unique_id=704197509]
shape = SubResource("CircleShape2D_ih5bv")
debug_color = Color(0.9843137, 0.35686275, 0.49019608, 0.41960785)
[node name="TwoPointBox" type="CollisionShape2D" parent="TwoPointArea" unique_id=1263644238]
position = Vector2(0, -78.75)
shape = SubResource("RectangleShape2D_acrlw")
debug_color = Color(0.9843137, 0.35686275, 0.49019608, 0.41960785)

View File

@ -3,17 +3,10 @@
[ext_resource type="Script" uid="uid://0xvlu81d8a01" path="res://scripts/game_manager.gd" id="1_7jktm"]
[ext_resource type="PackedScene" uid="uid://cxbu51aedxg3c" path="res://court.tscn" id="1_e2o6t"]
[ext_resource type="PackedScene" uid="uid://boqs7k6ia532h" path="res://player.tscn" id="2_feb5d"]
[ext_resource type="Texture2D" uid="uid://cdisx65vqrn21" path="res://assets/players/red_wing.png" id="3_fc0e3"]
[ext_resource type="Script" uid="uid://bbey5ttwv5utd" path="res://scripts/custom resources/player_attributes.gd" id="4_7jktm"]
[ext_resource type="PackedScene" uid="uid://i0ijmmchb3s1" path="res://hoop.tscn" id="4_215e1"]
[ext_resource type="Texture2D" uid="uid://46vgqxp2imyw" path="res://assets/players/blue_guard.png" id="4_j5wjh"]
[ext_resource type="Script" uid="uid://c7dxj0ifl687s" path="res://scripts/custom resources/team_attributes.gd" id="4_mfdv2"]
[ext_resource type="PackedScene" uid="uid://cbqaj6trvqat0" path="res://ball.tscn" id="6_ryrav"]
[ext_resource type="Texture2D" uid="uid://df7cknvvngtij" path="res://assets/players/blue_big.png" id="6_vef74"]
[ext_resource type="Texture2D" uid="uid://dl54l4wvub6ro" path="res://assets/players/blue_wing.png" id="7_hve3p"]
[ext_resource type="PackedScene" uid="uid://cfq463kejcp2m" path="res://team.tscn" id="11_mfdv2"]
[ext_resource type="Texture2D" uid="uid://cn2xfwvejclvo" path="res://assets/players/red_guard.png" id="12_iotsf"]
[ext_resource type="Texture2D" uid="uid://w10nqq5ng8n5" path="res://assets/players/red_big.png" id="14_215e1"]
[sub_resource type="Resource" id="Resource_e8heu"]
script = ExtResource("4_mfdv2")
@ -21,52 +14,12 @@ team_name = "Royals"
team_color = Color(1, 0, 0, 1)
metadata/_custom_type_script = "uid://c7dxj0ifl687s"
[sub_resource type="Resource" id="Resource_215e1"]
script = ExtResource("4_7jktm")
player_name = "Stevie"
player_texture = ExtResource("12_iotsf")
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
[sub_resource type="Resource" id="Resource_7sc4i"]
script = ExtResource("4_7jktm")
player_name = "Dave"
player_position = 1
player_texture = ExtResource("3_fc0e3")
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
[sub_resource type="Resource" id="Resource_80cx4"]
script = ExtResource("4_7jktm")
player_name = "Brendan"
player_position = 2
player_texture = ExtResource("14_215e1")
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
[sub_resource type="Resource" id="Resource_lc2xo"]
script = ExtResource("4_mfdv2")
team_name = "Blue Devils"
team_color = Color(0, 0, 1, 1)
metadata/_custom_type_script = "uid://c7dxj0ifl687s"
[sub_resource type="Resource" id="Resource_ryrav"]
script = ExtResource("4_7jktm")
player_name = "Kirt"
player_texture = ExtResource("4_j5wjh")
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
[sub_resource type="Resource" id="Resource_mfdv2"]
script = ExtResource("4_7jktm")
player_name = "Greg"
player_position = 1
player_texture = ExtResource("7_hve3p")
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
[sub_resource type="Resource" id="Resource_iotsf"]
script = ExtResource("4_7jktm")
player_name = "Cheryl"
player_position = 2
player_texture = ExtResource("6_vef74")
metadata/_custom_type_script = "uid://bbey5ttwv5utd"
[node name="Game" type="Node2D" unique_id=980666470 node_paths=PackedStringArray("ball", "court")]
script = ExtResource("1_7jktm")
ball = NodePath("Ball")
@ -75,37 +28,31 @@ court = NodePath("Court")
[node name="Court" parent="." unique_id=1870443472 instance=ExtResource("1_e2o6t")]
[node name="Ball" parent="." unique_id=1245529605 instance=ExtResource("6_ryrav")]
position = Vector2(748, 857)
position = Vector2(792, 838)
[node name="Hoop" parent="." unique_id=567327541 instance=ExtResource("4_215e1")]
position = Vector2(760, 78)
position = Vector2(755, 120)
[node name="RedTeam" parent="." unique_id=1449767365 instance=ExtResource("11_mfdv2")]
attributes = SubResource("Resource_e8heu")
[node name="Red1" parent="RedTeam" unique_id=1614241571 instance=ExtResource("2_feb5d")]
position = Vector2(778, 858)
attributes = SubResource("Resource_215e1")
[node name="Red2" parent="RedTeam" unique_id=812999974 instance=ExtResource("2_feb5d")]
position = Vector2(164, 571)
attributes = SubResource("Resource_7sc4i")
[node name="Red3" parent="RedTeam" unique_id=142493116 instance=ExtResource("2_feb5d")]
position = Vector2(1358, 484)
attributes = SubResource("Resource_80cx4")
[node name="BlueTeam" parent="." unique_id=1689836688 instance=ExtResource("11_mfdv2")]
attributes = SubResource("Resource_lc2xo")
[node name="Blue1" parent="BlueTeam" unique_id=1267043713 instance=ExtResource("2_feb5d")]
position = Vector2(770, 758)
attributes = SubResource("Resource_ryrav")
[node name="Blue2" parent="BlueTeam" unique_id=1850933619 instance=ExtResource("2_feb5d")]
position = Vector2(348, 489)
attributes = SubResource("Resource_mfdv2")
[node name="Blue3" parent="BlueTeam" unique_id=75794271 instance=ExtResource("2_feb5d")]
position = Vector2(1209, 468)
attributes = SubResource("Resource_iotsf")

View File

@ -1,7 +1,7 @@
[gd_scene format=3 uid="uid://i0ijmmchb3s1"]
[ext_resource type="Script" uid="uid://ba66m7qpokeib" path="res://scripts/hoop.gd" id="1_ivl1g"]
[ext_resource type="Texture2D" uid="uid://dclxeeo08l7rj" path="res://assets/court/hoop-sprite-custom-2.png" id="2_ivl1g"]
[ext_resource type="Texture2D" uid="uid://dwgdxhba5p8xk" path="res://assets/court/hoop-sprite-accurate.png" id="2_ivl1g"]
[node name="Hoop" type="Node2D" unique_id=567327541]
script = ExtResource("1_ivl1g")
@ -9,5 +9,4 @@ script = ExtResource("1_ivl1g")
[node name="HoopSprite" type="Sprite2D" parent="." unique_id=334585636]
texture_filter = 1
texture = ExtResource("2_ivl1g")
centered = false
offset = Vector2(-42, 0)
offset = Vector2(0, 30)

View File

@ -1,13 +1,15 @@
[gd_scene format=3 uid="uid://boqs7k6ia532h"]
[ext_resource type="Texture2D" uid="uid://46vgqxp2imyw" path="res://assets/players/blue_guard.png" id="1_4flbx"]
[ext_resource type="Script" uid="uid://bs8r5rqnt33rf" path="res://scripts/player.gd" id="1_onrkg"]
[ext_resource type="Texture2D" uid="uid://ctakygdw82fs2" path="res://assets/players/top-down/orange-45.png" id="2_onrkg"]
[node name="Player" type="Node2D" unique_id=1267043713]
script = ExtResource("1_onrkg")
[node name="PlayerSprite" type="Sprite2D" parent="." unique_id=1692351563]
texture = ExtResource("1_4flbx")
texture_filter = 1
rotation = -1.5707964
texture = ExtResource("2_onrkg")
[node name="PlayerNav" type="NavigationAgent2D" parent="." unique_id=1205813043]
avoidance_enabled = true
@ -20,9 +22,9 @@ anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -48.0
offset_top = 24.0
offset_top = 16.0
offset_right = 47.0
offset_bottom = 47.0
offset_bottom = 39.0
grow_horizontal = 2
grow_vertical = 0
text = "PlayerName"