From 36b288b23c5e9dd3baa1acb3d9f4b1a4758f26b6 Mon Sep 17 00:00:00 2001 From: ProtoSharkk Date: Mon, 21 Oct 2024 18:04:54 -0700 Subject: [PATCH 1/3] Attack cooldown bar below player (doesn't work yet) --- Assets/UI overlay/AttackCooldown.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/UI overlay/AttackCooldown.cs b/Assets/UI overlay/AttackCooldown.cs index 878b98e..ac218cc 100644 --- a/Assets/UI overlay/AttackCooldown.cs +++ b/Assets/UI overlay/AttackCooldown.cs @@ -3,15 +3,18 @@ using UnityEngine; public class AttackCooldown : MonoBehaviour { Teo player; - TMPro.TMP_Sprite bar; + UnityEngine.UI.Image bar; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent(); + bar = GetComponent(); } // Update is called once per frame void Update() { + Debug.Log(transform.position.x); + //bar.x=200*(Time.fixedTime-player.lastAttackTime)/player.attackCooldownSeconds; } } From 1c1133463d6c53d7b7e97a2ed3e47d3d832d9866 Mon Sep 17 00:00:00 2001 From: teo <62967681+t3333o@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:48:06 -0700 Subject: [PATCH 2/3] README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7f3a263..94a1136 100644 --- a/README.md +++ b/README.md @@ -82,3 +82,6 @@ After successfully defeating the Paul bots, the rat improved upon the design to ## A sick idea: ### After every ten rounds, there will be a portal that brings the player to a challenge stage, where the enemies are very difficult (could be like 20 rounds harder variants) and upon completion the player gets a super power or sometning very rewarding (and more lore unlocks) + +##another sick idea: +## we add hot sexy bots that can pleasure us in exchange for a currency From 1e3455b3a3b9a17157efe5ed95951135554acd98 Mon Sep 17 00:00:00 2001 From: ProtoSharkk Date: Mon, 21 Oct 2024 20:58:28 -0700 Subject: [PATCH 3/3] Attack cooldown indicator that grows below Teo --- Assets/UI overlay/AttackCooldown.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/UI overlay/AttackCooldown.cs b/Assets/UI overlay/AttackCooldown.cs index ac218cc..1f256bc 100644 --- a/Assets/UI overlay/AttackCooldown.cs +++ b/Assets/UI overlay/AttackCooldown.cs @@ -14,7 +14,6 @@ public class AttackCooldown : MonoBehaviour // Update is called once per frame void Update() { - Debug.Log(transform.position.x); - //bar.x=200*(Time.fixedTime-player.lastAttackTime)/player.attackCooldownSeconds; + GetComponent().SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, Mathf.Min(100*(Time.fixedTime-player.lastAttackTime)/player.attackCooldownSeconds, 100)); } }