2 Commits

Author SHA1 Message Date
27540988fd Updated player sprite 2026-02-21 10:16:52 +01:00
cc0a4cb71b Added logs 2026-02-21 09:30:50 +01:00
8 changed files with 135 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

View 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

View File

@@ -101,6 +101,7 @@ func handle_damage(dmg: int, src: Node) -> void:
hasiframes = true
invulnerable_cooldown_timer.start()
if healthPoints <= 0:
print("Player died. Respawn button not implemented.")
isAlive = false
func collect_resource(damnt: int) -> void:

View File

@@ -1,14 +1,21 @@
[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="Texture2D" uid="uid://boknmstvkc0a2" path="res://molecular/assets/player-sprite-placeholder-attacking-crop.png" id="2_5hxmy"]
[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://du1lb4nr47kvl" path="res://molecular/assets/player-sprite-attacking.png" id="2_rq1v6"]
[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"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_5hxmy")
"duration": 0.5,
"texture": ExtResource("2_rq1v6")
}, {
"duration": 4.0,
"texture": ExtResource("3_xiwfn")
}, {
"duration": 0.5,
"texture": ExtResource("2_rq1v6")
}],
"loop": true,
"name": &"attacking",
@@ -16,7 +23,7 @@ animations = [{
}, {
"frames": [{
"duration": 5.0,
"texture": ExtResource("2_en8op")
"texture": ExtResource("4_rq1v6")
}],
"loop": true,
"name": &"default",
@@ -36,8 +43,9 @@ script = ExtResource("1_0ix7k")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1745800698]
visibility_layer = 2
scale = Vector2(0.5, 0.5)
scale = Vector2(30, 30)
sprite_frames = SubResource("SpriteFrames_onrkg")
animation = &"attacking"
[node name="AttackArea" type="Area2D" parent="." unique_id=187975387]
position = Vector2(0, 56)