This commit is contained in:
2026-06-17 18:49:48 +02:00
parent b67042d47d
commit 7d7c225700
11 changed files with 140 additions and 1 deletions

BIN
assets/emission.aseprite Normal file

Binary file not shown.

BIN
assets/emission.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dmq7bntf6p6tg"
path="res://.godot/imported/emission.png-37ad2823c71ccc45c75a37fd6891dad8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/emission.png"
dest_files=["res://.godot/imported/emission.png-37ad2823c71ccc45c75a37fd6891dad8.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.

BIN
assets/energy_package.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bjl6gqj0bvhhp"
path="res://.godot/imported/energy_package.png-15476a02b693f9f2afae94d3f9eb2ffa.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/energy_package.png"
dest_files=["res://.godot/imported/energy_package.png-15476a02b693f9f2afae94d3f9eb2ffa.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

@@ -23,7 +23,6 @@ public partial class NoduleManager
public void Update()
{
GD.Print("UPDATE");
UpdateNoduleConnections();
UpdateTubes();
}

View File

@@ -0,0 +1,20 @@
using Godot;
namespace Slimepire.Gameplay.Nodules;
[SceneTree]
public partial class Mitochondria : Node2D
{
public float Energy { get; set; } = 0;
public float MaxEnergy { get; set; } = 100;
public float EnergyRegenRate { get; set; } = 1;
public override void _Process(double delta)
{
if (Energy < MaxEnergy)
{
Energy += EnergyRegenRate * (float)delta;
}
GPUParticles2D.Amount = (int)Energy;
}
}

View File

@@ -0,0 +1 @@
uid://h50qndjmmq4d

File diff suppressed because one or more lines are too long

View File

@@ -2,6 +2,7 @@
[ext_resource type="Script" uid="uid://cmpl0if164dba" path="res://src/Gameplay/Nodules/Nodule.cs" id="1_yembh"]
[ext_resource type="Texture2D" uid="uid://cecg47efx7gw8" path="res://assets/Sprite-0001.png" id="2_7qt20"]
[ext_resource type="PackedScene" uid="uid://c11xdoiv2ch3w" path="res://src/Gameplay/Nodules/Mitochondria.tscn" id="3_x44k2"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7qt20"]
radius = 15.0
@@ -64,3 +65,5 @@ collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="TubeConnectionArea" unique_id=234655540]
shape = SubResource("CircleShape2D_x44k2")
debug_color = Color(0.38922516, 0.6054754, 0.25354394, 0.41960785)
[node name="Mitochondria" parent="." unique_id=954228490 instance=ExtResource("3_x44k2")]