-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
3186095
commit 57c773d
Showing
20 changed files
with
266 additions
and
5 deletions.
There are no files selected for viewing
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://cy6oy1bruk12e" | ||
path="res://.godot/imported/minus.png-5b934ef2dd2ce7bbd9bede3d39f75148.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://Assets/Art/minus.png" | ||
dest_files=["res://.godot/imported/minus.png-5b934ef2dd2ce7bbd9bede3d39f75148.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
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,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://be3omv1f48wvf" | ||
path="res://.godot/imported/plus.png-619c97f9cfae2c390e6f66fd16af065c.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://Assets/Art/plus.png" | ||
dest_files=["res://.godot/imported/plus.png-619c97f9cfae2c390e6f66fd16af065c.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=false | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=1 |
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
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,16 @@ | ||
extends Node2D | ||
|
||
@export var floatspeed : float | ||
@export_range(0, 10, 1, "or_greater", "or_less") var appeartime : float | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
get_tree().create_timer(appeartime).timeout.connect(endEffect) | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _process(delta): | ||
position.y -= floatspeed * delta | ||
|
||
func endEffect(): | ||
queue_free() |
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,14 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://befhsuoc3yl7n"] | ||
|
||
[ext_resource type="Script" path="res://Scenes/Effects/effect.gd" id="1_7rrqt"] | ||
[ext_resource type="Texture2D" uid="uid://be3omv1f48wvf" path="res://Assets/Art/plus.png" id="2_hd0ar"] | ||
|
||
[node name="heal effect" type="Node2D"] | ||
script = ExtResource("1_7rrqt") | ||
floatspeed = 100.0 | ||
appeartime = 1.0 | ||
|
||
[node name="Sprite2D" type="Sprite2D" parent="."] | ||
z_index = 6 | ||
scale = Vector2(4, 4) | ||
texture = ExtResource("2_hd0ar") |
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,14 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://cvfx11oksqwwa"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://cy6oy1bruk12e" path="res://Assets/Art/minus.png" id="1_g30kn"] | ||
[ext_resource type="Script" path="res://Scenes/Effects/effect.gd" id="1_j5hlh"] | ||
|
||
[node name="hurt effect" type="Node2D"] | ||
script = ExtResource("1_j5hlh") | ||
floatspeed = 100.0 | ||
appeartime = 1.0 | ||
|
||
[node name="Sprite2D" type="Sprite2D" parent="."] | ||
z_index = 6 | ||
scale = Vector2(4, 4) | ||
texture = ExtResource("1_g30kn") |
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,29 @@ | ||
[gd_scene load_steps=6 format=3 uid="uid://bgvujvuvf1w17"] | ||
|
||
[ext_resource type="Script" path="res://Scenes/Entities/Player/Potions/testPotion.gd" id="1_t7wa0"] | ||
[ext_resource type="PackedScene" uid="uid://qeqitvy8ovcn" path="res://Scenes/Entities/Player/Potions/testHealSplash.tscn" id="2_gsdik"] | ||
[ext_resource type="Texture2D" uid="uid://b2d8chun5wo47" path="res://icon.png" id="3_ow4n1"] | ||
[ext_resource type="Script" path="res://Scenes/Entities/Player/Potions/PotionSprite.gd" id="4_137vr"] | ||
|
||
[sub_resource type="SpriteFrames" id="SpriteFrames_ifxp8"] | ||
animations = [{ | ||
"frames": [{ | ||
"duration": 1.0, | ||
"texture": ExtResource("3_ow4n1") | ||
}], | ||
"loop": true, | ||
"name": &"default", | ||
"speed": 5.0 | ||
}] | ||
|
||
[node name="TestHealPotion" type="Node2D"] | ||
z_index = 3 | ||
script = ExtResource("1_t7wa0") | ||
splashScene = ExtResource("2_gsdik") | ||
|
||
[node name="PotionSprite" type="AnimatedSprite2D" parent="."] | ||
modulate = Color(0.235294, 0.572549, 0.45098, 1) | ||
position = Vector2(1, -1) | ||
scale = Vector2(0.773438, 0.773438) | ||
sprite_frames = SubResource("SpriteFrames_ifxp8") | ||
script = ExtResource("4_137vr") |
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,44 @@ | ||
[gd_scene load_steps=7 format=3 uid="uid://qeqitvy8ovcn"] | ||
|
||
[ext_resource type="Script" path="res://Scenes/Entities/Player/Potions/testSplash.gd" id="1_xkjtr"] | ||
[ext_resource type="Script" path="res://Scenes/Entity systems/Health system/AttackResource.gd" id="2_7qahc"] | ||
[ext_resource type="Texture2D" uid="uid://b2d8chun5wo47" path="res://icon.png" id="3_is0x8"] | ||
|
||
[sub_resource type="Resource" id="Resource_151t7"] | ||
script = ExtResource("2_7qahc") | ||
HealthChange = 10 | ||
|
||
[sub_resource type="SpriteFrames" id="SpriteFrames_f6cvd"] | ||
animations = [{ | ||
"frames": [{ | ||
"duration": 1.0, | ||
"texture": ExtResource("3_is0x8") | ||
}], | ||
"loop": true, | ||
"name": &"default", | ||
"speed": 5.0 | ||
}] | ||
|
||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_25eby"] | ||
size = Vector2(133, 133) | ||
|
||
[node name="TestHealSplash" type="Node2D"] | ||
z_index = 1 | ||
script = ExtResource("1_xkjtr") | ||
attack = SubResource("Resource_151t7") | ||
|
||
[node name="SplashSprite" type="AnimatedSprite2D" parent="."] | ||
modulate = Color(0.235294, 0.572549, 0.45098, 1) | ||
visibility_layer = 2 | ||
sprite_frames = SubResource("SpriteFrames_f6cvd") | ||
|
||
[node name="SplashCollision" type="Area2D" parent="."] | ||
collision_layer = 3 | ||
collision_mask = 3 | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="SplashCollision"] | ||
position = Vector2(-0.5, -1.5) | ||
shape = SubResource("RectangleShape2D_25eby") | ||
|
||
[connection signal="body_shape_entered" from="SplashCollision" to="." method="_on_splash_collision_body_shape_entered"] | ||
[connection signal="body_shape_exited" from="SplashCollision" to="." method="_on_splash_collision_body_shape_exited"] |
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
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
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 |
---|---|---|
|
@@ -18,4 +18,5 @@ func reset() -> void: | |
print(position) | ||
|
||
func killed() -> void: | ||
GameVariables.score += 1 | ||
queue_free() |
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
Oops, something went wrong.