Compare commits
2 Commits
f2b58d7314
...
27540988fd
| Author | SHA1 | Date | |
|---|---|---|---|
| 27540988fd | |||
| cc0a4cb71b |
BIN
evolve-die-repeat/molecular/assets/player-sprite-attacking.png
Normal file
BIN
evolve-die-repeat/molecular/assets/player-sprite-attacking.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 281 B |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://du1lb4nr47kvl"
|
||||||
|
path="res://.godot/imported/player-sprite-attacking.png-6189c8275a257517c87cdb65abf5639a.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://molecular/assets/player-sprite-attacking.png"
|
||||||
|
dest_files=["res://.godot/imported/player-sprite-attacking.png-6189c8275a257517c87cdb65abf5639a.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
BIN
evolve-die-repeat/molecular/assets/player-sprite-attacking2.png
Normal file
BIN
evolve-die-repeat/molecular/assets/player-sprite-attacking2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 308 B |
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bsd1qtw50esai"
|
||||||
|
path="res://.godot/imported/player-sprite-attacking2.png-3e4e9a47129b5ac21e61c82e331ba03f.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://molecular/assets/player-sprite-attacking2.png"
|
||||||
|
dest_files=["res://.godot/imported/player-sprite-attacking2.png-3e4e9a47129b5ac21e61c82e331ba03f.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
BIN
evolve-die-repeat/molecular/assets/player-sprite.png
Normal file
BIN
evolve-die-repeat/molecular/assets/player-sprite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 253 B |
40
evolve-die-repeat/molecular/assets/player-sprite.png.import
Normal file
40
evolve-die-repeat/molecular/assets/player-sprite.png.import
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cd0iv6hsi3fad"
|
||||||
|
path="res://.godot/imported/player-sprite.png-f2c28aefaf4a8e7293c46f17a4267bc1.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://molecular/assets/player-sprite.png"
|
||||||
|
dest_files=["res://.godot/imported/player-sprite.png-f2c28aefaf4a8e7293c46f17a4267bc1.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
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/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
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
|
||||||
@@ -101,6 +101,7 @@ func handle_damage(dmg: int, src: Node) -> void:
|
|||||||
hasiframes = true
|
hasiframes = true
|
||||||
invulnerable_cooldown_timer.start()
|
invulnerable_cooldown_timer.start()
|
||||||
if healthPoints <= 0:
|
if healthPoints <= 0:
|
||||||
|
print("Player died. Respawn button not implemented.")
|
||||||
isAlive = false
|
isAlive = false
|
||||||
|
|
||||||
func collect_resource(damnt: int) -> void:
|
func collect_resource(damnt: int) -> void:
|
||||||
|
|||||||
@@ -1,14 +1,21 @@
|
|||||||
[gd_scene format=3 uid="uid://dxluckxdkpv4f"]
|
[gd_scene format=3 uid="uid://dxluckxdkpv4f"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://di7eglnrnqm6i" path="res://molecular/molecular_player.gd" id="1_0ix7k"]
|
[ext_resource type="Script" uid="uid://di7eglnrnqm6i" path="res://molecular/molecular_player.gd" id="1_0ix7k"]
|
||||||
[ext_resource type="Texture2D" uid="uid://boknmstvkc0a2" path="res://molecular/assets/player-sprite-placeholder-attacking-crop.png" id="2_5hxmy"]
|
[ext_resource type="Texture2D" uid="uid://du1lb4nr47kvl" path="res://molecular/assets/player-sprite-attacking.png" id="2_rq1v6"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cxwvga07sm3yl" path="res://molecular/assets/player-sprite-placeholder-crop.png" id="2_en8op"]
|
[ext_resource type="Texture2D" uid="uid://bsd1qtw50esai" path="res://molecular/assets/player-sprite-attacking2.png" id="3_xiwfn"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cd0iv6hsi3fad" path="res://molecular/assets/player-sprite.png" id="4_rq1v6"]
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id="SpriteFrames_onrkg"]
|
[sub_resource type="SpriteFrames" id="SpriteFrames_onrkg"]
|
||||||
animations = [{
|
animations = [{
|
||||||
"frames": [{
|
"frames": [{
|
||||||
"duration": 1.0,
|
"duration": 0.5,
|
||||||
"texture": ExtResource("2_5hxmy")
|
"texture": ExtResource("2_rq1v6")
|
||||||
|
}, {
|
||||||
|
"duration": 4.0,
|
||||||
|
"texture": ExtResource("3_xiwfn")
|
||||||
|
}, {
|
||||||
|
"duration": 0.5,
|
||||||
|
"texture": ExtResource("2_rq1v6")
|
||||||
}],
|
}],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": &"attacking",
|
"name": &"attacking",
|
||||||
@@ -16,7 +23,7 @@ animations = [{
|
|||||||
}, {
|
}, {
|
||||||
"frames": [{
|
"frames": [{
|
||||||
"duration": 5.0,
|
"duration": 5.0,
|
||||||
"texture": ExtResource("2_en8op")
|
"texture": ExtResource("4_rq1v6")
|
||||||
}],
|
}],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": &"default",
|
"name": &"default",
|
||||||
@@ -36,8 +43,9 @@ script = ExtResource("1_0ix7k")
|
|||||||
|
|
||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1745800698]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1745800698]
|
||||||
visibility_layer = 2
|
visibility_layer = 2
|
||||||
scale = Vector2(0.5, 0.5)
|
scale = Vector2(30, 30)
|
||||||
sprite_frames = SubResource("SpriteFrames_onrkg")
|
sprite_frames = SubResource("SpriteFrames_onrkg")
|
||||||
|
animation = &"attacking"
|
||||||
|
|
||||||
[node name="AttackArea" type="Area2D" parent="." unique_id=187975387]
|
[node name="AttackArea" type="Area2D" parent="." unique_id=187975387]
|
||||||
position = Vector2(0, 56)
|
position = Vector2(0, 56)
|
||||||
|
|||||||
Reference in New Issue
Block a user