summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--do.php2
-rw-r--r--js/scores.js24
-rw-r--r--pages/about.php23
-rw-r--r--pages/tutorial.php4
4 files changed, 29 insertions, 24 deletions
diff --git a/do.php b/do.php
index 2a83751..549cfaf 100644
--- a/do.php
+++ b/do.php
@@ -48,7 +48,7 @@ if ($_GET['r'] == 'reqScorePage') {
return;
//Include the notification text
- $json = getScores($mapID, $page, 3);
+ $json = getScores($mapID, $page, 10);
$json['mapid'] = $mapID;
$json['page'] = $page;
diff --git a/js/scores.js b/js/scores.js
index 9985da1..60ca249 100644
--- a/js/scores.js
+++ b/js/scores.js
@@ -20,7 +20,7 @@ function scoresRequestPage(mapid, page) {
//console.log("Requesting Page", mapid, page, ajax.inUse);
// == Additionally, check for achievements.
- ajax.requestFile = "do.php?checkachieve=true&r=reqScorePage&mapid="+mapid+"&reqPage="+page;
+ ajax.requestFile = "do.php?r=reqScorePage&mapid="+mapid+"&reqPage="+page;
ajax.onCompletion = scoresRequestPageDone; // Specify function to be executed on response.
//ajax.onLoading = '';
//ajax.onLoaded = '';
@@ -131,16 +131,16 @@ function scoresFormatPage(JO) {
styleClass = 'border-top: 6px solid #777799;';
p = p+ "<tr style='"+styleClass+" background-color: "+u.background+"; color:"+u.displayColor+";' title='Scored "+scoredLocalTime.format("h:MM:ss TT")+"'>";
- p = p+ "<td style='text-align:right;'>";
+ p = p+ "<td style='text-align:left;'>";
// !! Don't forget to make sure these images are cached;
if (u.medal == 'gold') {
- p = p+ "<img src='../images/MedalGoldCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
+ p = p+ "<img title='Current Champion' src='../images/MedalGoldCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
} else if (u.medal == 'silver') {
- p = p+ "<img src='../images/MedalSilverCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
- }
- //p = p+ "<img src='../images/MedalGoldCAb.png' style='width:30px;height:30px;vertical-align:middle'>";
-
+ p = p+ "<img title='Tied Top Score' src='../images/MedalSilverCAR.png' style='width:32px;height:32px;vertical-align:middle'>";
+ } else {
+ p = p+ "<img src='../images/blank.png' style='width:32px;height:32px;vertical-align:middle'>";
+ }
p = p+ i+ "</td>";
p = p+ "<td style='vertical-align: middle;'>";
p = p+ " <div class='grid_td' style='float:left; width:35px; height:35px; background:"+u.wallColor+" url(images/marks/"+u.wallEmblem+");'>";
@@ -150,16 +150,6 @@ function scoresFormatPage(JO) {
p = p+ "";
p = p+ "<span style='float:left; padding: 5px 0px 3px 3px; width:120px; overflow:hidden; text-overflow: ellipsis; '><a href='achievements?id="+u.ID+"' style='color:"+u.displayColor+"'>"+u.display+"</a></span>";
p = p+ "</td>";
-
- //Medals commented out 'till able to use them in a more friendly way.
- // !! Don't forget to make sure these images are cached;
- // if (u.medal == 'gold') {
- // p = p+ "<td class='scoreMedal scoreGold'>"+u.moves+"</td>";
- // } else if (u.medal == 'silver') {
- // p = p+ "<td class='scoreMedal scoreSilver'>"+u.moves+"</td>";
- // } else {
- // p = p+ "<td class='scoreMedal'>"+u.moves+"</td>";
- // }
p = p+ "<td style='text-align:right;'>"+u.moves+"</td>";
p = p+ "</tr>";
diff --git a/pages/about.php b/pages/about.php
index 77d7712..3276f0f 100644
--- a/pages/about.php
+++ b/pages/about.php
@@ -1,5 +1,5 @@
<?PHP
-htmlHeader(array());
+htmlHeader(array(), 'About', 'About Pathery.com');
?>
<link href="https://plus.google.com/105148482605711831543" rel="publisher" />
@@ -39,10 +39,16 @@ topbar($Links);
<h3>Created by:</h3>
Patrick Davison (Snap) and Rex Ounekeo
- <h3>Special thanks:</h3>
- <h4>Programmers:</h4>
+ <h2>Special thanks:</h2>
+ <h3>Inspirations:</h3>
+ <h4>Tower defense games like:</h4>
+ Goa's Random TD game on Starcraft 2
+ <br />Xeno Tactics
+ <br />Desktop Tower Defense
+ <br />The original; - Sunken Defense and it's many clones. From Starcraft.
+ <h3>Programmers:</h3>
raylu
- <h4>Testers:</h4>
+ <h3>Testers:</h3>
Steven Gosling
<br />Patrick's Family
<br />Josh
@@ -51,7 +57,16 @@ topbar($Links);
<br />Radivel
<br />Splax
<br />chord
+
+ <h3>Other Mentions:</h3>
+ Mixpanel has been friendly and helpful:
+ <br />
+<a href='https://mixpanel.com/f/partner'><img src='https://mixpanel.com/site_media/images/partner/badge_blue.png' alt='Mobile Analytics' /></a>
+
</div>
+<br />
+
+
<?php
htmlFooter();
diff --git a/pages/tutorial.php b/pages/tutorial.php
index 1965f51..95a5a53 100644
--- a/pages/tutorial.php
+++ b/pages/tutorial.php
@@ -1,8 +1,8 @@
<?php
if ($request == 'tutorial')
- htmlHeader(array('tutorial'), 'Pathery Tutorial', 'How to play Pathery');
+ htmlHeader(array('tutorial'), 'Pathery Tutorial', 'How to play Pathery', array('scores') );
else
- htmlHeader(array('tutorial'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific');
+ htmlHeader(array('tutorial'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific', array('scores') );
?>
<body>