[gd_scene load_steps=6 format=2] [ext_resource path="res://objects/environment/zball/zball.gd" type="Script" id=1] [ext_resource path="res://graphics/secret/zball.png" type="Texture" id=2] [ext_resource path="res://graphics/secret/zball_glow.png" type="Texture" id=3] [sub_resource type="PhysicsMaterial" id=2] bounce = 0.75 [sub_resource type="CircleShape2D" id=1] radius = 4.0 [node name="ZBall" type="RigidBody2D"] mass = 5.0 physics_material_override = SubResource( 2 ) continuous_cd = 2 script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource( 1 ) [node name="Sprite" type="Sprite" parent="."] light_mask = 9 texture = ExtResource( 2 ) [node name="Glow" type="Light2D" parent="."] texture = ExtResource( 3 ) energy = 5.0 range_item_cull_mask = 8 [node name="Hurtbox" type="Area2D" parent="."] collision_mask = 5 [node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"] shape = SubResource( 1 ) [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]