My first 2D game in Godot 4.4
This commit is contained in:
22
bullet.tscn
Normal file
22
bullet.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://luwdantua0vh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b1og3ublo2loc" path="res://bullet.gd" id="1_v8qja"]
|
||||
[ext_resource type="Texture2D" uid="uid://dftkbqwsfd68r" path="res://pistol/projectile.png" id="2_t4vbm"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2b2rl"]
|
||||
radius = 15.0333
|
||||
|
||||
[node name="Bullet" type="Area2D"]
|
||||
top_level = true
|
||||
collision_layer = 0
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_v8qja")
|
||||
|
||||
[node name="Projectile" type="Sprite2D" parent="."]
|
||||
position = Vector2(-11, -1)
|
||||
texture = ExtResource("2_t4vbm")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_2b2rl")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
Reference in New Issue
Block a user