-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[gd_scene load_steps=6 format=2] | ||
|
||
[ext_resource path="res://sprites/particles/HealPointHeart.png" type="Texture" id=1] | ||
[ext_resource path="res://scripts/objects/HealPoint.gd" type="Script" id=2] | ||
|
||
[sub_resource type="Curve" id=2] | ||
_data = [ Vector2( 0, 0 ), 0.0, 1.9381, 0, 0, Vector2( 0.131579, 1 ), 20.4941, 0.0, 0, 0, Vector2( 0.921053, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.190909 ), -18.3782, 0.0, 0, 0 ] | ||
|
||
[sub_resource type="Gradient" id=1] | ||
offsets = PoolRealArray( 0.0123457, 0.152263, 0.753086, 1 ) | ||
colors = PoolColorArray( 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ) | ||
|
||
[sub_resource type="RectangleShape2D" id=3] | ||
extents = Vector2( 64, 80 ) | ||
|
||
[node name="HealPoint" type="Area2D"] | ||
collision_layer = 0 | ||
collision_mask = 64 | ||
monitorable = false | ||
script = ExtResource( 2 ) | ||
|
||
[node name="CPUParticles2D" type="CPUParticles2D" parent="."] | ||
amount = 6 | ||
lifetime = 2.0 | ||
speed_scale = 0.75 | ||
texture = ExtResource( 1 ) | ||
emission_shape = 2 | ||
emission_rect_extents = Vector2( 48, 32 ) | ||
direction = Vector2( 0, 1 ) | ||
spread = 90.0 | ||
gravity = Vector2( 0, -60 ) | ||
initial_velocity = 30.0 | ||
initial_velocity_random = 0.5 | ||
scale_amount_curve = SubResource( 2 ) | ||
color_ramp = SubResource( 1 ) | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] | ||
position = Vector2( 0, -32 ) | ||
shape = SubResource( 3 ) | ||
|
||
[connection signal="body_entered" from="." to="." method="_body_entered"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends Area2D | ||
|
||
func _body_entered(body): | ||
HeartInventoryHandle.change_hearts_on(body, 99) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/HealPointHeart.png-8ec51f621312cc5bedc69312b8505241.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://sprites/particles/HealPointHeart.png" | ||
dest_files=[ "res://.import/HealPointHeart.png-8ec51f621312cc5bedc69312b8505241.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=false | ||
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=false | ||
svg/scale=1.0 |
8e6ffce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://pr-664--little-mario.netlify.app