From 671896be7794b7f1772e2983c0eb6fae0d01fba2 Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Fri, 22 Apr 2022 23:31:58 -0400 Subject: [PATCH] Added the start of particles --- assets-raw/star.xcf | Bin 0 -> 1145 bytes assets/star.png | Bin 0 -> 703 bytes assets/star.png.import | 35 +++++++++++++++++++++++++++++++++++ src/Actors/Ball.tscn | 18 +++++++++++++++++- 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 assets-raw/star.xcf create mode 100644 assets/star.png create mode 100644 assets/star.png.import diff --git a/assets-raw/star.xcf b/assets-raw/star.xcf new file mode 100644 index 0000000000000000000000000000000000000000..7777585afe213f617923f398b4eb5c75dbf3ebf2 GIT binary patch literal 1145 zcmYe#%q>u;NKR8IGcYt{00Mp}2C=6Bu^XhyXDQ5VHcY7?jNj zq(y=FGZ6Ep1C7>A&d<$F%_{-&89d_5|gvji}FkJQb6t;PLT(V7?8I>fW-ttgGpErK-I8- evoTa2CI`}!0n-DDJPFpt2_ify3=GUI42%F0nz7pe literal 0 HcmV?d00001 diff --git a/assets/star.png b/assets/star.png new file mode 100644 index 0000000000000000000000000000000000000000..417f31597ec0dde8df951e142bfc50fee21a1b1a GIT binary patch literal 703 zcmV;w0zmzVP)EX>4Tx04R}tkv&MmKpe$i(@I4u4i*$~2w0sgh>GZ@RVYG*QY*CTU~=gfG-*gu zTpR`0f`cE6RR5kMaV%wR}jraqTUCg3@~?&0I>U6f~epZjxkD>;(^K9P8q>4rtTK|Hl- z>74h8!>lMN#OK7L23?T&k?XR{Z=4Gb3p_Jyq*L?6VPdh+#&R38qM;H`5=RtOqkJLb zvch?bvs$jQ<~{ifLpg0_nd>wM5yv8ykc0>sRg_SMg($5WDJD|1AM@}JIQ}HLWO9|j z$gzM5R7j2={11M2Yvw1$-K0OtZfqon~^lqqH~!00006VoOIv00000008+zyMF)x010qNS#tmY zE+YT{E+YYWr9XB6000McNliru<^&f52Q@DeSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{005UsL_t(2&z+LN6~Z78M2DQQ018M0p{67)sXe6uz1u(v z_#VXfR-ReGx$t(Dfn^5C0kG*`0C@eu5nk=ud+W{%d#^C_iTrI}09Hv$#h)aNroKz6 zCs+g|V5Scf5Z`0QLNp1F-a7RNLr=CLgwT|83x+x(Q*M&7q>JgVUcNWu=2*C7ym)xx l^O2k7fY}qLA3rbJ`U!>k_fH9?bj|<(002ovPDHLkV1l-?BT)bV literal 0 HcmV?d00001 diff --git a/assets/star.png.import b/assets/star.png.import new file mode 100644 index 0000000..47cd6ce --- /dev/null +++ b/assets/star.png.import @@ -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 diff --git a/src/Actors/Ball.tscn b/src/Actors/Ball.tscn index d1a9cce..c0812bf 100644 --- a/src/Actors/Ball.tscn +++ b/src/Actors/Ball.tscn @@ -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"]