Added the start of particles
This commit is contained in:
parent
2d4396540e
commit
671896be77
BIN
assets-raw/star.xcf
Normal file
BIN
assets-raw/star.xcf
Normal file
Binary file not shown.
BIN
assets/star.png
Normal file
BIN
assets/star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 703 B |
35
assets/star.png.import
Normal file
35
assets/star.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/star.png-db40ec76fb3fd808480ce0481255e27b.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/star.png"
|
||||||
|
dest_files=[ "res://.import/star.png-db40ec76fb3fd808480ce0481255e27b.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
@ -1,15 +1,27 @@
|
|||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/Actors/Ball.gd" type="Script" id=1]
|
[ext_resource path="res://src/Actors/Ball.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://assets/Ball.png" type="Texture" id=2]
|
[ext_resource path="res://assets/Ball.png" type="Texture" id=2]
|
||||||
[ext_resource path="res://assets/bounce_sfx-01.ogg" type="AudioStream" id=3]
|
[ext_resource path="res://assets/bounce_sfx-01.ogg" type="AudioStream" id=3]
|
||||||
[ext_resource path="res://assets/bounce_sfx-02.ogg" type="AudioStream" id=4]
|
[ext_resource path="res://assets/bounce_sfx-02.ogg" type="AudioStream" id=4]
|
||||||
|
[ext_resource path="res://assets/star.png" type="Texture" id=5]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=2]
|
[sub_resource type="RectangleShape2D" id=2]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 14.25, 15 )
|
extents = Vector2( 14.25, 15 )
|
||||||
|
|
||||||
|
[sub_resource type="ParticlesMaterial" id=3]
|
||||||
|
flag_disable_z = true
|
||||||
|
direction = Vector3( -1, 0, 0 )
|
||||||
|
spread = 180.0
|
||||||
|
gravity = Vector3( 0, 0, 0 )
|
||||||
|
initial_velocity = 150.0
|
||||||
|
orbit_velocity = 0.0
|
||||||
|
orbit_velocity_random = 0.0
|
||||||
|
scale = 0.5
|
||||||
|
color = Color( 1, 1, 1, 0.470588 )
|
||||||
|
|
||||||
[node name="Ball" type="KinematicBody2D"]
|
[node name="Ball" type="KinematicBody2D"]
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
speed = Vector2( 200, 100 )
|
speed = Vector2( 200, 100 )
|
||||||
@ -39,4 +51,8 @@ stream = ExtResource( 3 )
|
|||||||
[node name="BounceSound-2" type="AudioStreamPlayer" parent="SFX"]
|
[node name="BounceSound-2" type="AudioStreamPlayer" parent="SFX"]
|
||||||
stream = ExtResource( 4 )
|
stream = ExtResource( 4 )
|
||||||
|
|
||||||
|
[node name="Particles2D" type="Particles2D" parent="."]
|
||||||
|
process_material = SubResource( 3 )
|
||||||
|
texture = ExtResource( 5 )
|
||||||
|
|
||||||
[connection signal="body_entered" from="BounceCheck" to="." method="_on_BounceCheck_body_entered"]
|
[connection signal="body_entered" from="BounceCheck" to="." method="_on_BounceCheck_body_entered"]
|
||||||
|
Loading…
Reference in New Issue
Block a user