From 61417fdaf0437139cc75c56ac149baf295327b7b Mon Sep 17 00:00:00 2001 From: edinstance Date: Wed, 23 Oct 2024 10:34:10 +0100 Subject: [PATCH] feat: added a rules page and a link to it from the play page --- app/play/[level]/page.tsx | 10 +++++++ app/rules/page.tsx | 55 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 app/rules/page.tsx diff --git a/app/play/[level]/page.tsx b/app/play/[level]/page.tsx index 1409584..0c1b83d 100644 --- a/app/play/[level]/page.tsx +++ b/app/play/[level]/page.tsx @@ -56,6 +56,11 @@ export default function PlayLevelPage({ Play Different Night + {flags?.showTestPage && ( Play Different Night + {flags?.showTestPage && ( +

Rules

+
+

Placing rules

+
    +
  • + You will see a map with both zombies and rocks, you are be able to + place a player and two blocks on the map. +
  • +
  • + You can not place the player or blocks in locations already used by + zombies or rocks. +
  • +
  • + You must place both blocks and the player before starting the game. +
  • +
+

Playing rules

+
    +
  • + You will see a map with both zombies and rocks, you are be able to + place a player and two blocks on the map. +
  • +
  • + Your goal is for the player to survive the zombie attack. Zombie's + have 2 health and if a zombie reaches the player you lose. +
  • +
  • + Zombies can only move horizontally or vertically and they will + always try to move towards the player. +
  • +
  • + It takes two turns for the zombie to destroy a block, and they + cannot destroy rocks. +
  • +
+

Tips and Tricks

+
    +
  • + Often it's good to wall off between the zombies and players if + possible, as this will slow the zombies down. +
  • +
  • You should never put a player directly next to a zombie.
  • +
  • + If the player is behind a choke point, blocking the path to the + player is the best option. +
  • +
+
+ + ); + } + \ No newline at end of file