Update test project for Godot 4.3 (#159)
Co-authored-by: Andi Susanto <and1zero@users.noreply.github.com> Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/Cannon.gd" type="Script" id=1]
|
||||
[ext_resource path="res://resources/img/1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://resources/img/1.png" type="Texture2D" id=2]
|
||||
|
||||
[node name="Cannon" type="Node2D" groups=[
|
||||
"ColoredEntity",
|
||||
]]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="TextureRect" parent="."]
|
||||
[node name="Sprite2D" type="TextureRect" parent="."]
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.5
|
||||
margin_top = -10.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 38.0
|
||||
rect_min_size = Vector2( 150, 24 )
|
||||
rect_pivot_offset = Vector2( 10, 10 )
|
||||
rect_clip_content = false
|
||||
offset_top = -10.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 38.0
|
||||
custom_minimum_size = Vector2( 150, 24 )
|
||||
pivot_offset = Vector2( 10, 10 )
|
||||
clip_contents = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 0
|
||||
@@ -26,11 +26,11 @@ size_flags_vertical = 0
|
||||
texture = ExtResource( 2 )
|
||||
stretch_mode = 2
|
||||
|
||||
[node name="GuideLine" type="Line2D" parent="Sprite"]
|
||||
[node name="GuideLine" type="Line2D" parent="Sprite2D"]
|
||||
modulate = Color( 1, 1, 1, 0.1 )
|
||||
show_behind_parent = true
|
||||
position = Vector2( 0, 10 )
|
||||
points = PoolVector2Array( 135, 2, 2000, 2 )
|
||||
points = PackedVector2Array( 135, 2, 2000, 2 )
|
||||
width = 5.0
|
||||
default_color = Color( 1, 1, 1, 1 )
|
||||
texture_mode = 1
|
||||
@@ -38,10 +38,10 @@ joint_mode = 2
|
||||
sharp_limit = 2.0
|
||||
round_precision = 10
|
||||
|
||||
[node name="CannonTip" type="Position2D" parent="Sprite"]
|
||||
[node name="CannonTip" type="Marker2D" parent="Sprite2D"]
|
||||
position = Vector2( 120, 12 )
|
||||
|
||||
[node name="CannonBase" type="Position2D" parent="Sprite"]
|
||||
[node name="CannonBase" type="Marker2D" parent="Sprite2D"]
|
||||
position = Vector2( 0, 12 )
|
||||
|
||||
[node name="Projectiles" type="Node" parent="."]
|
||||
|
||||
Reference in New Issue
Block a user