forked from team-sg/hero-mark-2
create bubble environmental particle
This commit is contained in:
parent
6028efa329
commit
71134758af
3 changed files with 42 additions and 0 deletions
20
objects/environment/bubble/bubble.tscn
Normal file
20
objects/environment/bubble/bubble.tscn
Normal file
|
@ -0,0 +1,20 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://graphics/particles/bubble.png" type="Texture" id=1]
|
||||
[ext_resource path="res://objects/environment/bubble/bubble.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 2, 2 )
|
||||
|
||||
[node name="Bubble" type="Area2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 4
|
||||
vframes = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
Loading…
Add table
Add a link
Reference in a new issue