diff --git a/assets-raw/star.xcf b/assets-raw/star.xcf new file mode 100644 index 0000000..7777585 Binary files /dev/null and b/assets-raw/star.xcf differ diff --git a/assets/star.png b/assets/star.png new file mode 100644 index 0000000..417f315 Binary files /dev/null and b/assets/star.png differ 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"]