summaryrefslogtreecommitdiff
path: root/2026/games_submissions/rpc2dot0/src/effects.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-04 04:35:44 -0400
committerLLLL Colonq <llll@colonq>2026-08-04 04:35:44 -0400
commit3c7796f066647090ed8436778bdfe25f11844c05 (patch)
tree0644a101004d91af4fcdc2f51fcc2e03f7f255ce /2026/games_submissions/rpc2dot0/src/effects.rs
parenta75221ab93f59d688f90cd83f0284ff98951fcfa (diff)
Prepare for upload
Diffstat (limited to '2026/games_submissions/rpc2dot0/src/effects.rs')
-rw-r--r--2026/games_submissions/rpc2dot0/src/effects.rs58
1 files changed, 0 insertions, 58 deletions
diff --git a/2026/games_submissions/rpc2dot0/src/effects.rs b/2026/games_submissions/rpc2dot0/src/effects.rs
deleted file mode 100644
index 02b33ef..0000000
--- a/2026/games_submissions/rpc2dot0/src/effects.rs
+++ /dev/null
@@ -1,58 +0,0 @@
-use crate::color::EntityColor;
-use crate::constants::*;
-
-#[derive(Debug, Clone)]
-pub struct PacmanChase {
- pub speed: f32,
-}
-
-impl PacmanChase {
- pub fn new(speed: f32) -> Self {
- Self { speed }
- }
-}
-
-impl Default for PacmanChase {
- fn default() -> Self {
- Self::new(BASE_SPEED)
- }
-}
-#[derive(Debug, Clone)]
-pub struct Rogue {
- pub until_ms: f32,
- pub hover_color: EntityColor,
-}
-
-impl Rogue {
- pub fn new(until_ms: f32, hover_color: EntityColor) -> Self {
- Self {
- until_ms,
- hover_color,
- }
- }
-}
-
-impl Default for Rogue {
- fn default() -> Self {
- Self::new(ROGUE_DURATION_MS, EntityColor::Yellow)
- }
-}
-
-pub struct Explosion {
- pub x: f32,
- pub y: f32,
- pub age_ms: f32,
- pub duration_ms: f32,
- pub radius: f32,
-}
-impl Explosion {
- pub fn new(x: f32, y: f32) -> Self {
- Self {
- x,
- y,
- age_ms: 0.0,
- duration_ms: 400.0,
- radius: 8.0,
- }
- }
-}