Added the start of particles

This commit is contained in:
Rain Clark 2022-04-22 23:31:58 -04:00
parent 2d4396540e
commit 671896be77
4 changed files with 52 additions and 1 deletions

BIN
assets-raw/star.xcf Normal file

Binary file not shown.

BIN
assets/star.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

35
assets/star.png.import Normal file
View 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

View File

@ -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://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-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=1]
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"]
script = ExtResource( 1 )
speed = Vector2( 200, 100 )
@ -39,4 +51,8 @@ stream = ExtResource( 3 )
[node name="BounceSound-2" type="AudioStreamPlayer" parent="SFX"]
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"]