diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-14 19:36:06 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-14 19:36:06 +0100 |
| commit | 1b126744d96d61c36eb25e87b5d35cc75b1e7e56 (patch) | |
| tree | 88018e03fdd2402b5d4dbc4eb65c9619b8cc73ec | |
| parent | e48d0f47fac4f6a07a1a851fea7b9ae08154ebb6 (diff) | |
| download | nj26-1b126744d96d61c36eb25e87b5d35cc75b1e7e56.tar.gz | |
WIP
| -rw-r--r-- | Jaula_gato_naro.png | bin | 0 -> 307245 bytes | |||
| -rw-r--r-- | Spatial.gd | 34 | ||||
| -rw-r--r-- | Spatial.tscn | 35 | ||||
| -rw-r--r-- | bg.png | bin | 0 -> 727309 bytes | |||
| -rw-r--r-- | cat.gd | 23 | ||||
| -rw-r--r-- | cat/c0.png | bin | 0 -> 11875 bytes | |||
| -rw-r--r-- | cat/c1.png | bin | 0 -> 9273 bytes | |||
| -rw-r--r-- | cat/c10.png | bin | 0 -> 12606 bytes | |||
| -rw-r--r-- | cat/c11.png | bin | 0 -> 9979 bytes | |||
| -rw-r--r-- | cat/c12.png | bin | 0 -> 11942 bytes | |||
| -rw-r--r-- | cat/c13.png | bin | 0 -> 12669 bytes | |||
| -rw-r--r-- | cat/c14.png | bin | 0 -> 10801 bytes | |||
| -rw-r--r-- | cat/c15.png | bin | 0 -> 11594 bytes | |||
| -rw-r--r-- | cat/c16.png | bin | 0 -> 12821 bytes | |||
| -rw-r--r-- | cat/c17.png | bin | 0 -> 10899 bytes | |||
| -rw-r--r-- | cat/c18.png | bin | 0 -> 13781 bytes | |||
| -rw-r--r-- | cat/c19.png | bin | 0 -> 12899 bytes | |||
| -rw-r--r-- | cat/c2.png | bin | 0 -> 11317 bytes | |||
| -rw-r--r-- | cat/c3.png | bin | 0 -> 11958 bytes | |||
| -rw-r--r-- | cat/c4.png | bin | 0 -> 10173 bytes | |||
| -rw-r--r-- | cat/c5.png | bin | 0 -> 10862 bytes | |||
| -rw-r--r-- | cat/c6.png | bin | 0 -> 12236 bytes | |||
| -rw-r--r-- | cat/c7.png | bin | 0 -> 10199 bytes | |||
| -rw-r--r-- | cat/c8.png | bin | 0 -> 13026 bytes | |||
| -rw-r--r-- | cat/c9.png | bin | 0 -> 12213 bytes | |||
| -rw-r--r-- | jail.tscn | 15 | ||||
| -rw-r--r-- | powerup.gd | 23 | ||||
| -rw-r--r-- | powerup.tscn | 27 | ||||
| -rw-r--r-- | project.godot | 2 | ||||
| -rw-r--r-- | sky.tscn | 15 | ||||
| -rw-r--r-- | speed.png | bin | 0 -> 42407 bytes | |||
| -rw-r--r-- | zombie.gd | 102 | ||||
| -rw-r--r-- | zombie.tscn | 34 |
33 files changed, 211 insertions, 99 deletions
diff --git a/Jaula_gato_naro.png b/Jaula_gato_naro.png Binary files differnew file mode 100644 index 0000000..66ed959 --- /dev/null +++ b/Jaula_gato_naro.png @@ -23,7 +23,7 @@ func set_points(box, points): pink_points += points on_points() - jailpos -= Vector3(0, points * 0.5, 0) + jailpos -= Vector3(0, points * 0.375, 0) func _entered(box): set_points(box, 1) @@ -40,16 +40,15 @@ func _physics_process(delta): var pos = jail.global_transform.origin var diff = jailpos.y - lerp(jailpos.y, pos.y, delta) - for z in zombies: - pass - jail.translate(Vector3(0, diff, 0)) + # jail.move_and_collide() + for z in zombies: - z.run_powerup(boxes) + z.run_powerup(boxes, zombies) func randpos(y = 10): - var maxp = 7.5 + var maxp = 7.0 var minp = 6.0 var x = randf() * maxp var z = randf() * maxp @@ -111,8 +110,25 @@ func create_powerup(): func _on_powerup_timeout(): create_powerup() + $powerup_timer.start(randi() % 31 + 1) + +func game_over(): + pass + +func _process(delta): + var text = "Time left: " + var seconds = $game_time.get_time_left() + var minutes = 0 + + while seconds >= 60: + minutes += 1 + seconds -= 60 + + text += "%02d" % minutes + text += ":%02d" % seconds + $CanvasLayer/time_left.text = text + pass -# Called when the node enters the scene tree for the first time. func _ready(): randomize() jailpos = get_node("jail").global_transform.origin @@ -122,7 +138,7 @@ func _ready(): create_zombie(2, t.Team.PINK, Vector3(6.0, 0, -3)) create_zombie(3, t.Team.PINK, Vector3(6.0, 0, 3)) - for _i in range(randi() % 16 + 1): + for _i in range(randi() % 16 + 8): create_powerup() for _i in range(15): @@ -133,4 +149,6 @@ func _ready(): $powerup_timer.connect("timeout", self, "_on_powerup_timeout") $powerup_timer.start(randi() % 31 + 1) + $game_time.start(120) + $game_time.connect("timeout", self, "game_over") connect("new_points", self, "on_points") diff --git a/Spatial.tscn b/Spatial.tscn index 6a748d5..04ec6c7 100644 --- a/Spatial.tscn +++ b/Spatial.tscn @@ -1,6 +1,7 @@ [gd_scene load_steps=16 format=2] [ext_resource path="res://floor.png" type="Texture" id=1] +[ext_resource path="res://sky.tscn" type="PackedScene" id=2] [ext_resource path="res://jail.tscn" type="PackedScene" id=3] [ext_resource path="res://Spatial.gd" type="Script" id=4] [ext_resource path="res://basefloor.gd" type="Script" id=5] @@ -17,20 +18,18 @@ extents = Vector3( 10, 1, 20 ) [sub_resource type="SpatialMaterial" id=12] albedo_texture = ExtResource( 1 ) -[sub_resource type="ProceduralSky" id=6] -sky_horizon_color = Color( 0.329412, 0.0784314, 0.368627, 1 ) - [sub_resource type="Environment" id=7] -background_mode = 2 -background_sky = SubResource( 6 ) +ambient_light_color = Color( 1, 1, 1, 1 ) +ambient_light_sky_contribution = 0.25 [sub_resource type="BoxShape" id=5] -extents = Vector3( 1, 40, 9 ) +extents = Vector3( 1, 40, 10 ) [sub_resource type="BoxShape" id=3] extents = Vector3( 1, 40, 12 ) [sub_resource type="CylinderShape" id=9] +height = 1.0 radius = 1.8 [sub_resource type="CylinderMesh" id=10] @@ -71,7 +70,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 ) shape = SubResource( 2 ) [node name="Camera" type="Camera" parent="."] -transform = Transform( 1, 0, 0, 0, 0.702315, 0.711867, 0, -0.711867, 0.702315, 0, 7.46512, 8.14918 ) +transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 7.46512, 8.14918 ) environment = SubResource( 7 ) [node name="walls" type="Spatial" parent="."] @@ -88,7 +87,7 @@ shape = SubResource( 5 ) [node name="MeshInstance" type="MeshInstance" parent="walls/Node4"] [node name="Node3" type="StaticBody" parent="walls"] -transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 7 ) +transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 7.5 ) collision_layer = 3 collision_mask = 3 @@ -124,17 +123,17 @@ shadow_enabled = true [node name="jail" parent="." instance=ExtResource( 3 )] transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 15.315, 0 ) -collision_layer = 4 -collision_mask = 4 +continuous_cd = true [node name="reserved" type="RigidBody" parent="."] collision_layer = 4 collision_mask = 4 mode = 1 continuous_cd = true +can_sleep = false [node name="CollisionShape" type="CollisionShape" parent="reserved"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.8, 0 ) +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.16622, 0 ) shape = SubResource( 9 ) [node name="MeshInstance" type="MeshInstance" parent="reserved"] @@ -172,6 +171,15 @@ text = "Team Pink: 0" align = 1 valign = 1 +[node name="time_left" type="Label" parent="CanvasLayer"] +margin_right = 672.0 +margin_bottom = 40.0 +rect_scale = Vector2( 2, 2 ) +custom_colors/font_color = Color( 1, 1, 1, 1 ) +text = "Time left: 00:00" +align = 1 +valign = 1 + [node name="blue" type="Label" parent="CanvasLayer"] margin_left = 1162.0 margin_right = 1237.0 @@ -183,3 +191,8 @@ align = 1 valign = 1 [node name="powerup_timer" type="Timer" parent="."] + +[node name="sky" parent="." instance=ExtResource( 2 )] +transform = Transform( 15, 0, 0, 0, 10.6066, 10.6066, 0, -10.6066, 10.6066, 0, 0, 0 ) + +[node name="game_time" type="Timer" parent="."] Binary files differ@@ -0,0 +1,23 @@ +extends MeshInstance + +var images: Dictionary = {} +var frame_i = 0 +var lastt =0 + +func _process(delta): + lastt += delta + + if lastt >= 0.05: + lastt = 0 + frame_i += 1 + + if frame_i >= 20: + frame_i = 0 + + get_active_material(0).albedo_texture = images[frame_i] + +# Called when the node enters the scene tree for the first time. +func _ready(): + for i in range(20): + images[i] = load("res://cat/c" + str(i) + ".png") + diff --git a/cat/c0.png b/cat/c0.png Binary files differnew file mode 100644 index 0000000..89d24ad --- /dev/null +++ b/cat/c0.png diff --git a/cat/c1.png b/cat/c1.png Binary files differnew file mode 100644 index 0000000..d79cadb --- /dev/null +++ b/cat/c1.png diff --git a/cat/c10.png b/cat/c10.png Binary files differnew file mode 100644 index 0000000..d579ceb --- /dev/null +++ b/cat/c10.png diff --git a/cat/c11.png b/cat/c11.png Binary files differnew file mode 100644 index 0000000..2c030c2 --- /dev/null +++ b/cat/c11.png diff --git a/cat/c12.png b/cat/c12.png Binary files differnew file mode 100644 index 0000000..39089b7 --- /dev/null +++ b/cat/c12.png diff --git a/cat/c13.png b/cat/c13.png Binary files differnew file mode 100644 index 0000000..dd8796a --- /dev/null +++ b/cat/c13.png diff --git a/cat/c14.png b/cat/c14.png Binary files differnew file mode 100644 index 0000000..f726cfa --- /dev/null +++ b/cat/c14.png diff --git a/cat/c15.png b/cat/c15.png Binary files differnew file mode 100644 index 0000000..80d49e1 --- /dev/null +++ b/cat/c15.png diff --git a/cat/c16.png b/cat/c16.png Binary files differnew file mode 100644 index 0000000..18979aa --- /dev/null +++ b/cat/c16.png diff --git a/cat/c17.png b/cat/c17.png Binary files differnew file mode 100644 index 0000000..4702423 --- /dev/null +++ b/cat/c17.png diff --git a/cat/c18.png b/cat/c18.png Binary files differnew file mode 100644 index 0000000..b24097d --- /dev/null +++ b/cat/c18.png diff --git a/cat/c19.png b/cat/c19.png Binary files differnew file mode 100644 index 0000000..91fa9e6 --- /dev/null +++ b/cat/c19.png diff --git a/cat/c2.png b/cat/c2.png Binary files differnew file mode 100644 index 0000000..5454da9 --- /dev/null +++ b/cat/c2.png diff --git a/cat/c3.png b/cat/c3.png Binary files differnew file mode 100644 index 0000000..ac797bf --- /dev/null +++ b/cat/c3.png diff --git a/cat/c4.png b/cat/c4.png Binary files differnew file mode 100644 index 0000000..0996f74 --- /dev/null +++ b/cat/c4.png diff --git a/cat/c5.png b/cat/c5.png Binary files differnew file mode 100644 index 0000000..f735f1f --- /dev/null +++ b/cat/c5.png diff --git a/cat/c6.png b/cat/c6.png Binary files differnew file mode 100644 index 0000000..d28b127 --- /dev/null +++ b/cat/c6.png diff --git a/cat/c7.png b/cat/c7.png Binary files differnew file mode 100644 index 0000000..d5aac8a --- /dev/null +++ b/cat/c7.png diff --git a/cat/c8.png b/cat/c8.png Binary files differnew file mode 100644 index 0000000..000a9d8 --- /dev/null +++ b/cat/c8.png diff --git a/cat/c9.png b/cat/c9.png Binary files differnew file mode 100644 index 0000000..c6dc056 --- /dev/null +++ b/cat/c9.png @@ -1,6 +1,7 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=8 format=2] [ext_resource path="res://Jaula_gato_naro.png" type="Texture" id=1] +[ext_resource path="res://cat.gd" type="Script" id=2] [sub_resource type="PlaneMesh" id=1] size = Vector2( 2, 12 ) @@ -9,10 +10,16 @@ size = Vector2( 2, 12 ) flags_transparent = true albedo_texture = ExtResource( 1 ) +[sub_resource type="PlaneMesh" id=4] + +[sub_resource type="SpatialMaterial" id=5] + [sub_resource type="BoxShape" id=3] extents = Vector3( 0.1, 10.75, 2 ) [node name="RigidBody" type="RigidBody"] +collision_layer = 4 +collision_mask = 4 mode = 1 gravity_scale = 0.0 @@ -24,6 +31,12 @@ transform = Transform( 1.31134e-07, -1, 3.82137e-15, 4.37114e-08, 1.91069e-15, - mesh = SubResource( 1 ) material/0 = SubResource( 2 ) +[node name="cat" type="MeshInstance" parent="Spatial/MeshInstance"] +transform = Transform( 0.5, 0, 0, 0, 0.5, -2.11758e-22, 0, 6.35275e-22, 0.5, 0.0201623, -0.1, 5.11694 ) +mesh = SubResource( 4 ) +material/0 = SubResource( 5 ) +script = ExtResource( 2 ) + [node name="CollisionShape" type="CollisionShape" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.665382, 0 ) shape = SubResource( 3 ) @@ -11,10 +11,26 @@ enum Type { } var mytype +var initpos +var speed = 0 +var toggle = 0 func get_type(): return mytype +func _physics_process(delta): + var curpos = global_transform.origin.y + + if abs(speed) > 0.5 * delta: + toggle ^= 1 + + if toggle: + speed -= 0.01 * delta + else: + speed += 0.01 * delta + + translate(Vector3(0, speed, 0)) + func _ready(): var color = Color(0, 0, 0, 0) @@ -28,7 +44,14 @@ func _ready(): Type.swap: color = Color(0.8, 0.8, 0.8, 1.0) + var material = $MeshInstance.get_active_material(0) + + material.albedo_texture = load("res://speed.png") + $light.light_color = color + initpos = global_transform.origin.y + speed = randf() * 0.01 * (randi() & 1) * -1 + translate(Vector3(0, randf() * 0.1, 0)) func _init(): mytype = randi() % (Type.max_pw - 1) + 1 diff --git a/powerup.tscn b/powerup.tscn index 89ee20e..e8b48e6 100644 --- a/powerup.tscn +++ b/powerup.tscn @@ -1,30 +1,29 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://powerup.gd" type="Script" id=1] -[sub_resource type="CylinderMesh" id=1] -top_radius = 0.25 -bottom_radius = 0.25 -height = 0.5 -radial_segments = 16 +[sub_resource type="PlaneMesh" id=3] + +[sub_resource type="SpatialMaterial" id=4] +flags_transparent = true [sub_resource type="BoxShape" id=2] -extents = Vector3( 0.2, 0.4, 0.2 ) +extents = Vector3( 0.8, 0.9, 0.1 ) [node name="Spatial" type="KinematicBody"] script = ExtResource( 1 ) [node name="MeshInstance" type="MeshInstance" parent="."] -transform = Transform( 0.830813, 0, 0, 0, 1.06244, 0, 0, 0, 1, 0, 0.470752, 0 ) -mesh = SubResource( 1 ) - -[node name="CollisionShape" type="CollisionShape" parent="."] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.456184, 0 ) -shape = SubResource( 2 ) +transform = Transform( 0.830813, 0, 0, 0, -4.64407e-08, -1, 0, 1.06244, -4.37114e-08, 0, 1.4771, 0 ) +mesh = SubResource( 3 ) +material/0 = SubResource( 4 ) [node name="light" type="OmniLight" parent="."] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0 ) light_color = Color( 0, 0.537255, 0.560784, 1 ) light_energy = 7.388 light_indirect_energy = 0.0 omni_attenuation = 6.27667 + +[node name="CollisionShape" type="CollisionShape" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.45153, 0 ) +shape = SubResource( 2 ) diff --git a/project.godot b/project.godot index 8133728..8d51040 100644 --- a/project.godot +++ b/project.godot @@ -163,4 +163,6 @@ common/enable_pause_aware_picking=true quality/driver/driver_name="GLES2" vram_compression/import_etc=true vram_compression/import_etc2=false +quality/filters/msaa=1 +quality/filters/use_fxaa=true environment/default_environment="res://default_env.tres" diff --git a/sky.tscn b/sky.tscn new file mode 100644 index 0000000..cf2bcdc --- /dev/null +++ b/sky.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://bg.png" type="Texture" id=1] + +[sub_resource type="SphereMesh" id=3] +flip_faces = true + +[sub_resource type="SpatialMaterial" id=2] +albedo_texture = ExtResource( 1 ) + +[node name="Spatial" type="Spatial"] + +[node name="MeshInstance" type="MeshInstance" parent="."] +mesh = SubResource( 3 ) +material/0 = SubResource( 2 ) diff --git a/speed.png b/speed.png Binary files differnew file mode 100644 index 0000000..fa6d325 --- /dev/null +++ b/speed.png @@ -27,7 +27,6 @@ var images: Dictionary = {} var speed: Vector3 func expired(): - print("powerup expired") $magnet_light.visible = false $explosion_light.visible = false powerup = pw.Type.none @@ -42,11 +41,14 @@ func _physics_process(delta): var rightleft = ((Input.get_action_strength(id + "right") - Input.get_action_strength(id + "left")) * 2 * delta) var curdir = Dir.none - var vspeed = 2 + var vspeed = 4 if powerup == pw.Type.superspeed: vspeed = 8 + if updown and rightleft: + vspeed = vspeed / sqrt(2) + if rightleft: if rightleft > 0: speed.x = vspeed @@ -114,9 +116,7 @@ func setimg(id: String): mesh.set_surface_material(0, material) func sethealth(): - var high = get_node("HealthBar/high") - - high.scale_object_local(Vector3(health / 100.0, 1, 1)) + pass func _process(delta): var id = "p" + str(myid) + "_" @@ -134,9 +134,6 @@ func _process(delta): tlast = 0 frame_i = 0 - if powerup != pw.Type.none and Input.is_action_just_released(id + "powerup"): - print("powerup!") - lastdir = dir setimg(getid()) sethealth() @@ -156,7 +153,58 @@ func set_team(team): func get_team(): return myteam -func run_powerup(boxes): +func box_explosion(b): + var mypos = global_transform.origin + var bpos = b.global_transform.origin + var dist = bpos.distance_to(mypos) + var force = 100 / dist + var xforce = force + var yforce = force + var zforce = force + + if mypos.x > bpos.x: + xforce = -xforce + if mypos.y > bpos.y: + xforce = -xforce + if mypos.z > bpos.z: + zforce = -zforce + + b.add_central_force(Vector3(xforce, yforce, zforce)) + +func box_magnet(b): + var mypos = global_transform.origin + var bpos = b.global_transform.origin + var dist = bpos.distance_to(mypos) + var force = 2 / dist + var xforce = force + var zforce = force + + if mypos.x > bpos.x: + xforce = -xforce + if mypos.z > bpos.z: + zforce = -zforce + + b.add_central_force(Vector3(-xforce, 0, -zforce)) + +func zombie_explosion(z): + var mypos = global_transform.origin + var bpos = z.global_transform.origin + var dist = bpos.distance_to(mypos) + var force = 100 / dist + var xforce = force + var yforce = force + var zforce = force + + if mypos.x > bpos.x: + xforce = -xforce + if mypos.y > bpos.y: + xforce = -xforce + if mypos.z > bpos.z: + zforce = -zforce + + # z.add_central_force(Vector3(xforce, 0, zforce)) + +func run_powerup(boxes, zombies): match powerup: pw.Type.explosion: var id = "p" + str(myid) + "_" @@ -165,37 +213,15 @@ func run_powerup(boxes): expired() for b in boxes: - var mypos = global_transform.origin - var bpos = b.global_transform.origin - var dist = bpos.distance_to(mypos) - var force = 100 / dist - var xforce = force - var yforce = force - var zforce = force - - if mypos.x > bpos.x: - xforce = -xforce - if mypos.y > bpos.y: - xforce = -xforce - if mypos.z > bpos.z: - zforce = -zforce - - b.add_central_force(Vector3(xforce, yforce, zforce)) + box_explosion(b) + + for z in zombies: + if z != self: + zombie_explosion(z) + pw.Type.magnet: for b in boxes: - var mypos = global_transform.origin - var bpos = b.global_transform.origin - var dist = bpos.distance_to(mypos) - var force = 2 / dist - var xforce = force - var zforce = force - - if mypos.x > bpos.x: - xforce = -xforce - if mypos.z > bpos.z: - zforce = -zforce - - b.add_central_force(Vector3(-xforce, 0, -zforce)) + box_magnet(b) func _ready(): $timer.connect("timeout", self, "_on_timer") diff --git a/zombie.tscn b/zombie.tscn index 1790f55..04b9ce2 100644 --- a/zombie.tscn +++ b/zombie.tscn @@ -1,27 +1,16 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=6 format=2] [ext_resource path="res://zombie0/f1.png" type="Texture" id=1] [ext_resource path="res://zombie.gd" type="Script" id=2] [sub_resource type="PlaneMesh" id=1] -size = Vector2( 1, 2 ) +size = Vector2( 2, 4 ) [sub_resource type="SpatialMaterial" id=2] albedo_texture = ExtResource( 1 ) [sub_resource type="BoxShape" id=3] -extents = Vector3( 0.5, 1, 0.1 ) - -[sub_resource type="QuadMesh" id=6] - -[sub_resource type="SpatialMaterial" id=7] -albedo_color = Color( 1, 0, 0, 1 ) - -[sub_resource type="SpatialMaterial" id=4] -albedo_color = Color( 0, 0.811765, 0.0901961, 1 ) - -[sub_resource type="QuadMesh" id=5] -material = SubResource( 4 ) +extents = Vector3( 1, 2, 0.2 ) [node name="KinematicBody" type="KinematicBody"] collision_layer = 3 @@ -37,27 +26,18 @@ material/0 = SubResource( 2 ) [node name="CollisionShape" type="CollisionShape" parent="."] shape = SubResource( 3 ) -[node name="HealthBar" type="Spatial" parent="."] - -[node name="low" type="MeshInstance" parent="HealthBar"] -transform = Transform( 1, 0, 0, 0, 0.1, 0, 0, 0, 0, 0, 1.3, 0 ) -mesh = SubResource( 6 ) -material/0 = SubResource( 7 ) - -[node name="high" type="MeshInstance" parent="HealthBar"] -transform = Transform( 1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 1.3, 0.001 ) -mesh = SubResource( 5 ) - [node name="root" type="Spatial" parent="."] [node name="timer" type="Timer" parent="."] [node name="magnet_light" type="OmniLight" parent="."] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.182936 ) +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.409452 ) visible = false light_color = Color( 0, 0.741176, 1, 1 ) +light_energy = 3.071 [node name="explosion_light" type="OmniLight" parent="."] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.182936 ) +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.398028 ) visible = false light_color = Color( 1, 0, 0, 1 ) +light_energy = 3.861 |
