-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from edinstance/main
feat: added a rules page and a link to it from the play page
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export default function Rules() { | ||
return ( | ||
<div className="container mx-auto min-h-screen gap-8 py-12 pb-24"> | ||
<h1 className="mb-6 text-center text-3xl font-bold">Rules</h1> | ||
<div className="items-center justify-around"> | ||
<h2 className="pb-4 text-xl">Placing rules</h2> | ||
<ul className="flex-wrap space-y-2 list-disc list-inside"> | ||
<li> | ||
You will see a map with both zombies and rocks, you are be able to | ||
place a player and two blocks on the map. | ||
</li> | ||
<li> | ||
You can not place the player or blocks in locations already used by | ||
zombies or rocks. | ||
</li> | ||
<li> | ||
You must place both blocks and the player before starting the game. | ||
</li> | ||
</ul> | ||
<h2 className="py-4 text-xl">Playing rules</h2> | ||
<ul className="flex-wrap space-y-2 list-disc list-inside"> | ||
<li> | ||
You will see a map with both zombies and rocks, you are be able to | ||
place a player and two blocks on the map. | ||
</li> | ||
<li> | ||
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. | ||
</li> | ||
<li> | ||
Zombies can only move horizontally or vertically and they will | ||
always try to move towards the player. | ||
</li> | ||
<li> | ||
It takes two turns for the zombie to destroy a block, and they | ||
cannot destroy rocks. | ||
</li> | ||
</ul> | ||
<h2 className="py-4 text-xl">Tips and Tricks</h2> | ||
<ul className="flex-wrap space-y-2 list-disc list-inside"> | ||
<li> | ||
Often it's good to wall off between the zombies and players if | ||
possible, as this will slow the zombies down. | ||
</li> | ||
<li>You should never put a player directly next to a zombie.</li> | ||
<li> | ||
If the player is behind a choke point, blocking the path to the | ||
player is the best option. | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|