godot-ultimate-tutorial/scenes/projectiles/grenade.tscn
2023-10-08 19:29:32 +02:00

27 lines
870 B
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://co5gar3lhitem"]
[ext_resource type="Script" path="res://scenes/projectiles/grenade.gd" id="1_58m1a"]
[ext_resource type="Texture2D" uid="uid://birx8coj2by66" path="res://graphics/projectiles/grenade.png" id="1_vp0od"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_il4va"]
friction = 10.0
bounce = 0.4
[sub_resource type="CircleShape2D" id="CircleShape2D_meux2"]
radius = 30.0
[node name="Grenade" type="RigidBody2D"]
collision_layer = 8
collision_mask = 15
physics_material_override = SubResource("PhysicsMaterial_il4va")
gravity_scale = 0.0
linear_damp = 1.6
script = ExtResource("1_58m1a")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.4, 0.4)
texture = ExtResource("1_vp0od")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_meux2")