From cf4af138b16da878404cf3319d5d988dacee198a Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 5 Nov 2011 03:04:49 -0700 Subject: new layout --- pages/about.php | 41 ++++++------ pages/admin.php | 8 +-- pages/faq.php | 31 +++------ pages/home.php | 179 +++++++++++++++++--------------------------------- pages/howtoplay.php | 165 ++++++++++++++++++++++++++-------------------- pages/leaderboard.php | 39 ++++++----- 6 files changed, 208 insertions(+), 255 deletions(-) (limited to 'pages') diff --git a/pages/about.php b/pages/about.php index eb1ada8..4328014 100644 --- a/pages/about.php +++ b/pages/about.php @@ -5,28 +5,25 @@ htmlHeader(); "; -echo "
"; - ?> -
-
Email us: snapems@gmail.com -
-

Created by:

Patrick Davison and Rex Ounekeo -
-

Special thanks:

-

Programmers:

-raylu -

Testers:

-Steven Gosling -
Patrick's Family -
Josh -
Rory Matthias Quentin Maison -
Matt -
-
+
+ Email us: snapems@gmail.com +
+

Created by:

+ Patrick Davison (Snap) and Rex Ounekeo + +

Special thanks:

+

Programmers:

+ raylu +

Testers:

+ Steven Gosling +
Patrick's Family +
Josh +
Rory Matthias Quentin Maison +
Matt +
- - + diff --git a/pages/admin.php b/pages/admin.php index b4e53be..d825ebc 100644 --- a/pages/admin.php +++ b/pages/admin.php @@ -1,4 +1,4 @@ - @@ -225,9 +225,5 @@ function createThumbnail($mapMatrix, $idprefix, $width, $height) { return $output; } - - - +htmlFooter(); ?> - - diff --git a/pages/faq.php b/pages/faq.php index 9bac845..302a7f8 100644 --- a/pages/faq.php +++ b/pages/faq.php @@ -1,43 +1,32 @@ - +

Questions and Answers


Can you explain how the pathing works?

-The pathing trys to find the best route possible. +The pathing tries to find the best route possible. In open areas there's lots of identical paths for it to take; To choose which path it will go it follows these priorities: UP, RIGHT, DOWN, LEFT. -This means that the path will go UP as far as it can first- then, right, down, left. +This means that the path will go UP as far as it can first – then right, down, left.
If the path is going to the TOP RIGHT from the BOTTOM LEFT, the path will go UP all the way to the top, then RIGHT.
If the path is going to the BOTTOM LEFT, from the TOP RIGHT, the path will go all the way DOWN and then LEFT.
TOP LEFT, from BOTTOM RIGHT, UP, then LEFT.
So, BOTTOM LEFT, from TOP RIGHT? If you answer "DOWN then LEFT" you are correct! -
If you answered "uhhmm.. What's up with the directions in caps." then you get a bonus point! -
Remember, teleports are Traps, and does not effect the path choice. -
-
-

Why use Google to sign in?

-'OpenID' allows websites to use 3rd party servers to identify you. -
We ask Google for your E-mail address, which you have to approve. -
Basically, we send you to Google, and ask who you are, (You're not a robot, right?) -
Google responds saying they know you, and gives me a code to identify you with, if you login again. -
Many sites have started adopting this method of registration/login due to the safety it provides, -not just for me, but for YOU. -
There's no chance I can leak a password, because I never recieve one. - Plus you don't have to make up/remember another password. - - +
If you answered "uhhmm.. what's up with the directions in caps?" then you get a bonus point! +
Remember, teleports are traps and do not effect the path choice. +
- - - \ No newline at end of file + diff --git a/pages/home.php b/pages/home.php index 8bd7d11..044fc5f 100644 --- a/pages/home.php +++ b/pages/home.php @@ -1,10 +1,8 @@ - - Simple'; +$normal = 'Normal'; +$hard = 'Complex'; -$today = date('l'); -//if ($today == 'Sunday' OR $today == 'Saturday') - //$today = 'Weekend Map'; -//else - $today .= "'s"; -$special = "$today $mapstyle"; +$today = date('l') . "'s"; +$special = "$today $mapstyle"; switch ($_GET['maptype']) { + case "easy": + case "1": + default: + $maptype = 1; + $easy = 'Simple'; + break; case "normal": case "2": - $maptype = 2; - $normal = 'Normal'; - break; - + $maptype = 2; + $normal = 'Normal'; + break; case "hard": case "3": - $maptype = 3; - $hard = 'Complex'; - break; - + $maptype = 3; + $hard = 'Complex'; + break; case "day": case "4": - $maptype = 4; - $special = "$special"; - break; - - case "easy": - case "1": - default: - $maptype = 1; - $easy = 'Simple'; + $maptype = 4; + $special = "$today $mapstyle"; + break; } //$motd = getMapOfTheDay(); @@ -83,7 +75,6 @@ topbar($Links); $mapID = $motd['id']; $map = $motd['map']; $userID = $_SESSION['userID']; -$date = date("m-d-y"); //$mergesolution = mergeMapSolution($map, $mysolution); $topscores = topScores($motd['id'], 30); $topscorediv = "
\n$topscores\n
"; @@ -91,89 +82,39 @@ $mergesolution = $map; ?> -
- - -
-

- News:
- We've moved to pathery.com (look up, you're already there)! You'll need to re-login with Google. -
Don't worry – we've saved all your solutions and history (soon you'll even be able to see them! hehe). -

-

Maps for : -
-
-
-
-

-

- New maps are generated daily at 9:00 PM Pacific Time. -
-

- - -
- -
- - New? Check out How to Play -
- The object of the game is to make the longest maze. -
Sign in using Google to have your best solution saved. +
"; - + echo "
"; + echo "$easy"; + echo "$normal"; + echo "$hard"; + echo "$special"; + echo "
"; - -echo "
$date
$easy | "; -echo "$normal | "; -echo "$hard | "; -echo "$special"; + echo DisplayMap($mergesolution, $mapID); + $mysolution = getSolution($userID, $mapID); + $solutiondiv .= "'; -echo DisplayMap($mergesolution, $mapID); - -$mysolution = getSolution($userID, $mapID); -$solutiondiv .= " - +
+ + Copyright © 2011 pathery.com +
+ + - - + diff --git a/pages/howtoplay.php b/pages/howtoplay.php index 294e89f..bfad879 100644 --- a/pages/howtoplay.php +++ b/pages/howtoplay.php @@ -1,5 +1,5 @@ - @@ -29,74 +29,99 @@ $tpmap = displaymap(GenerateMapByCode($tpcode), 3, 'example'); ?> -

Tutorial

-

-
The object of the game is to make the longest maze. -
The "Snake" (name pending) must go to all the checkpoints. -
It starts from the red arrows: -
-and goes to the blue arrows: -
-
Build a maze by clicking to place blocks. You can remove a block by clicking it again. -
It must be able to make it through your maze, so no walling completely! -
Try it: -

- +
+ + -

-

Checkpoints:

- - - - - - - - -
-

-The path must reach all these (if they exist) before going to finish. Try it: - -

- + + -
-
-
Tip: - Try to combine odd-letters with each other; -
I.E. If A, B, C exist, try to make a box around A and C, then maze the entrance to the box. -
This way, the path enters the box for A, leaves for B, returns for C, and leaves for the exit. -This would make the path go through your maze 4 times! -

-

Teleports:

- - - - - - - - - - - -
Teleport 1:
Teleport 2:
-

-
Teleport tiles are traps. When the path goes across the "IN" tile, it gets thrown to the "OUT" tile. -
The path will not avoid teleports. Check this example out: -

- + + -
-
-Implementing a teleport into your maze can have a big impact. -

- -

That should be enough information to get you started. -
Now go try it out! -

-
-
-
- - - + +
+ + + + diff --git a/pages/leaderboard.php b/pages/leaderboard.php index c8f03b8..290f23b 100644 --- a/pages/leaderboard.php +++ b/pages/leaderboard.php @@ -1,11 +1,10 @@ -
'; - - $tStats = getStat(1); $yStats = getStat(2); @@ -78,18 +74,18 @@ function getStat ($type) { return displayStats($result, $statname); } +?> +
-?> -
-Overall | -Simple | -Normal | -Complex | -Special | -Week/Month + -
@@ -100,7 +96,6 @@ function getStat ($type) {
-
+
+ + -- cgit v1.2.3