fix totalBludGenerated

This commit is contained in:
Victor Turgeon 2023-10-11 09:59:26 -04:00
parent 13ccda8f63
commit 68e93fa432
4 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://Scripts/level.gd" id="1_0nmok"]
[ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="1_4n82n"]
[ext_resource type="PackedScene" uid="uid://cl7w6ndvons1a" path="res://Scenes/Props/candle_1.tscn" id="2_5hdq4"]
[ext_resource type="PackedScene" uid="uid://cf7al5uln33rn" path="res://Scenes/Props/candle_2.tscn" id="2_o33c4"]
[ext_resource type="PackedScene" uid="uid://by2xmwcng01uy" path="res://Scenes/Props/candle_2.tscn" id="2_o33c4"]
[ext_resource type="PackedScene" uid="uid://b5lnjonlf4i1b" path="res://Scenes/enemy.tscn" id="4_g0oey"]
[ext_resource type="PackedScene" uid="uid://0onqgygm832d" path="res://Scenes/Player/player.tscn" id="5_ik47y"]
[ext_resource type="AudioStream" uid="uid://c3dy35dv368ft" path="res://Assets/Music/SisNeufPiDoozHuit.mp3" id="7_but47"]

View File

@ -5,7 +5,7 @@ const BASE_Blud_GEN = 10
const STARTING_Blud_AMOUNT = 100
var currentBludAmount : float = 0
var totalBludGenrated : float = 0
var totalBludGenerated : float = 0
var currentBludGen : float = 0
var currentSpawnableScene : PackedScene = null
var currentRefInstance : TemplateSpawnable = null
@ -38,7 +38,7 @@ func _process(delta):
handle_spawn()
handle_cursor_state()
currentBludAmount += currentBludGen * delta
totalBludGenrated += currentBludGen * delta
totalBludGenerated += currentBludGen * delta
playerUI.set_blud_total(currentBludAmount)
func set_time(text : String):

View File

@ -657,7 +657,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Bats/Control"]
position = Vector2(24, 18)
sprite_frames = SubResource("SpriteFrames_kjfbi")
frame_progress = 0.432177
frame_progress = 0.259297
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Bats"]
layout_mode = 2
@ -685,7 +685,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Wolves/Control"]
position = Vector2(24, 16)
sprite_frames = SubResource("SpriteFrames_h2asb")
frame_progress = 0.434028
frame_progress = 0.261149
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Wolves"]
layout_mode = 2
@ -713,7 +713,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Necromancers/Control"]
position = Vector2(24, 22)
sprite_frames = SubResource("SpriteFrames_0hwvy")
frame_progress = 0.84941
frame_progress = 0.676531
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Necromancers"]
layout_mode = 2
@ -741,7 +741,7 @@ size_flags_horizontal = 3
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="TotalArmyComp/Separation/ArmyTotals/Pit Fiends/Control"]
position = Vector2(24, 22)
sprite_frames = SubResource("SpriteFrames_3y7oi")
frame_progress = 0.063212
frame_progress = 0.890332
[node name="2Points" type="Label" parent="TotalArmyComp/Separation/ArmyTotals/Pit Fiends"]
layout_mode = 2
@ -821,7 +821,7 @@ flip_h = true
position = Vector2(784, 288)
scale = Vector2(7.765, 7.765)
sprite_frames = SubResource("SpriteFrames_5yana")
frame_progress = 0.53666
frame_progress = 0.36378
flip_h = true
[connection signal="pressed" from="Quit" to="." method="_on_quit_pressed"]

View File

@ -3,7 +3,7 @@ extends Node2D
var length: int = 0
var time: int = 0
var countdown: float = 0
@onready var player:= $Player
@onready var player : Player = $Player
# Called when the node enters the scene tree for the first time.
func _ready():