summaryrefslogtreecommitdiff
path: root/2026/games/just__jane/src/cut.cpp
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-26 23:47:59 -0400
committerLLLL Colonq <llll@colonq>2026-08-26 23:47:59 -0400
commit0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a (patch)
treee9039d1c3aedca515d6cb499451d4b73aca4f5fd /2026/games/just__jane/src/cut.cpp
parent242943e5b023ce40eb3be826c418a478d4672f78 (diff)
Add a_tension_span
Diffstat (limited to '2026/games/just__jane/src/cut.cpp')
-rw-r--r--2026/games/just__jane/src/cut.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/2026/games/just__jane/src/cut.cpp b/2026/games/just__jane/src/cut.cpp
deleted file mode 100644
index 67e4c25..0000000
--- a/2026/games/just__jane/src/cut.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "raylib.h"
-#include "raymath.h"
-#include <cut.hpp>
-
-Cut::Cut(Vector2 start, Vector2 end) {
- InitAudioDevice();
- this->start_ = start;
- this->end_ = end;
- this->current_step_ = 0.0;
- this->slash_ = LoadSound("assets/slash.wav");
-}
-
-void Cut::Draw() {
- if (this->its_joever) {
- return;
- }
-
- Vector2 head = Vector2Lerp(start_, end_, current_step_);
- DrawLineV(start_, head, {0x0F, 0x0F, 0x0F, 0x40});
-}
-
-void Cut::Update() {
- if (this->its_joever) {
- return;
- }
-
- if (this->current_step_ == 0.0) {
- PlaySound(slash_);
- }
-
- if (this->current_step_ >= 1.0) {
- this->its_joever = true;
- return;
- }
-
- this->current_step_ += (1.0 / 60.0);
-}