Trying to synchronize bullet with fake calculated ship velocity.

This commit is contained in:
Henry 2026-03-22 18:27:15 +00:00
parent 6856dcb172
commit 030304dc48
8 changed files with 75 additions and 6 deletions

View file

@ -1,7 +1,46 @@
[gd_scene format=3 uid="uid://dqd8cxe7aj3b4"]
[ext_resource type="PackedScene" uid="uid://bj4fytc3sy482" path="res://scenes/world.tscn" id="1_uwrxv"]
[ext_resource type="Texture2D" uid="uid://egqbrm636m4h" path="res://graphics/title.png" id="2_yqjtg"]
[node name="Main" type="Node2D" unique_id=1673976895]
[node name="Game" type="Node2D" unique_id=1673976895]
[node name="World" parent="." unique_id=1317852169 instance=ExtResource("1_uwrxv")]
[node name="TitleMenu" type="Control" parent="." unique_id=1792253558]
layout_mode = 3
anchors_preset = 0
offset_right = 216.0
offset_bottom = 384.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="TitleMenu" unique_id=1084707548]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.004
anchor_top = 0.16700001
anchor_right = 1.0
anchor_bottom = 0.609
offset_left = 10.136
offset_top = -0.12800598
offset_right = -10.600006
offset_bottom = 0.4960022
grow_horizontal = 2
grow_vertical = 2
[node name="Title" type="TextureRect" parent="TitleMenu/HBoxContainer" unique_id=1389062363]
layout_mode = 2
size_flags_horizontal = 10
size_flags_vertical = 4
texture = ExtResource("2_yqjtg")
[node name="TextureRect" type="ColorRect" parent="TitleMenu" unique_id=23737797]
z_index = -2
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.67049235, 0.66050816, 0.7086971, 1)

View file

@ -1,12 +1,14 @@
[gd_scene format=3 uid="uid://coix5dqblmu7r"]
[ext_resource type="Script" uid="uid://otm88638j7f8" path="res://scripts/player.gd" id="1_g2els"]
[ext_resource type="PackedScene" uid="uid://ddpclu2vdy2ve" path="res://scenes/stock_weapon.tscn" id="2_dqkch"]
[ext_resource type="Texture2D" uid="uid://cq4we1m1yv22s" path="res://graphics/ship.png" id="2_qhqgy"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dqkch"]
[node name="Player" type="Area2D" unique_id=652131079]
script = ExtResource("1_g2els")
weapon_current = ExtResource("2_dqkch")
[node name="Ship" type="Sprite2D" parent="." unique_id=1155866924]
unique_name_in_owner = true

View file

@ -16,3 +16,7 @@ texture = ExtResource("3_mvdrj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1890946059]
shape = SubResource("RectangleShape2D_mvdrj")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="." unique_id=985862716]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]

View file

@ -7,3 +7,4 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3

View file

@ -1,3 +1,7 @@
[gd_scene format=3 uid="uid://bj4fytc3sy482"]
[ext_resource type="PackedScene" uid="uid://14fhj8834pkq" path="res://scenes/ui.tscn" id="1_nnsk1"]
[node name="World" type="Node2D" unique_id=1317852169]
[node name="UI" parent="." unique_id=480295610 instance=ExtResource("1_nnsk1")]