This commit is contained in:
Tabby 2025-07-18 22:41:26 +10:00
parent 1a5c9d3425
commit bcbe8ab287
6 changed files with 53 additions and 22 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3 uid="uid://crrbht7mwhgyc"]
[gd_scene load_steps=6 format=3 uid="uid://crrbht7mwhgyc"]
[ext_resource type="Script" uid="uid://cd54ktlkabbla" path="res://ship.gd" id="1_do8h0"]
[ext_resource type="Texture2D" uid="uid://bd5oswedqnenh" path="res://Sprites/LanderArt.png" id="2_do8h0"]
@ -10,6 +10,9 @@ size = Vector2(8, 2)
offsets = PackedFloat32Array(0, 0.0886699, 1)
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_do8h0"]
height = 32.0
[node name="Lander" type="RigidBody2D" node_paths=PackedStringArray("particles_l", "particles_r")]
gravity_scale = 0.2
script = ExtResource("1_do8h0")
@ -56,3 +59,8 @@ damping_max = 60.8
scale_amount_min = 6.0
scale_amount_max = 6.0
color_ramp = SubResource("Gradient_do8h0")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="."]
position = Vector2(0, -3)
rotation = -1.57079
shape = SubResource("CapsuleShape2D_do8h0")

View file

@ -1,12 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://cfdsa5scvso6m"]
[ext_resource type="Texture2D" uid="uid://1uqioi3jaw62" path="res://Sprites/batteryOutline.png" id="1_extsq"]
[ext_resource type="Texture2D" uid="uid://1gx13iy21l2a" path="res://Sprites/batteryfull.png" id="2_n31ms"]
[ext_resource type="Texture2D" uid="uid://wkhhifawnhew" path="res://Sprites/fullAlt.png" id="2_extsq"]
[node name="Battery2" type="TextureProgressBar"]
max_value = 16.0
step = 0.0
value = 16.0
fill_mode = 3
texture_under = ExtResource("1_extsq")
texture_progress = ExtResource("2_n31ms")
texture_progress = ExtResource("2_extsq")
tint_progress = Color(0, 1, 0, 1)