Skip to content
Browse files

some restructuring

  • Loading branch information...
1 parent e3ea30d commit f4ae5ad7a3b8e75a1f05f4fd59cdc8cd4694479b @DreadKnight DreadKnight committed
Showing with 241 additions and 24 deletions.
  1. 0 {gallery → }/artwork/Blood Drone by MaggotMaster.jpg
  2. 0 {gallery → }/artwork/Chimera by UndeadKitty13.jpg
  3. 0 {gallery → }/artwork/Cyclops Chicken by Velvetcat.jpg
  4. 0 {gallery → }/artwork/Dark Priest by Kasia88.jpg
  5. 0 {gallery → }/artwork/Deep Beauty by UndeadKitty13.jpg
  6. 0 {gallery → }/artwork/Dire Wolf by RougeSpark and Velvetcat.jpg
  7. 0 {gallery → }/artwork/Flame Trooper by UndeadKitty13.jpg
  8. 0 {gallery → }/artwork/Flayed by Kasia88.jpg
  9. 0 {gallery → }/artwork/Frogman by Kasia88.jpg
  10. 0 {gallery → }/artwork/Gumble by Kasia88.jpg
  11. 0 {gallery → }/artwork/Horn Head by Kasia88.jpg
  12. 0 {gallery → }/artwork/Ice Demon by Kasia88.jpg
  13. 0 {gallery → }/artwork/Kreta by Kasia88.jpg
  14. 0 {gallery → }/artwork/Liopleurodon by RougeSpark.jpg
  15. 0 {gallery → }/artwork/Living Armor by GabrielVerdon.jpg
  16. 0 {gallery → }/artwork/Magma Demon by Kasia88.jpg
  17. 0 {gallery → }/artwork/Magma Spawn by Kasia88 and GabrielVerdon.jpg
  18. 0 {gallery → }/artwork/Moss Hound.jpg
  19. 0 {gallery → }/artwork/Musketeer by GabrielVerdon.jpg
  20. 0 {gallery → }/artwork/Nightmare by Kasia88.jpg
  21. 0 {gallery → }/artwork/Psychotic Bunny by Kasia88.jpg
  22. 0 {gallery → }/artwork/Razorback by Kasia88.jpg
  23. 0 {gallery → }/artwork/Shadow Leech by Kasia88.jpg
  24. 0 {gallery → }/artwork/Shrimp by Velvetcat.jpg
  25. 0 {gallery → }/artwork/Shroom by Kasia88.jpg
  26. 0 {gallery → }/artwork/Siren by Velvetcat.jpg
  27. 0 {gallery → }/artwork/Stomper by Velvetcat.jpg
  28. 0 {gallery → }/artwork/Troglodite by Velvetcat.jpg
  29. 0 {gallery → }/artwork/Uncle Fungus by Kasia88 and GabrielVerdon.jpg
  30. 0 {gallery → }/artwork/Volpyr by Kasia88.jpg
  31. 0 {game → combat}/Application.js
  32. +2 −2 combat/Arena.js
  33. 0 {game/Utilities → combat}/CanvasRenderer.js
  34. 0 {game/Utilities → combat}/MathUtils.js
  35. 0 {game/Utilities → combat}/Renderer.js
  36. 0 {game/Utilities → combat}/TextureCache.js
  37. 0 {game/Utilities → combat}/Vector.js
  38. +5 −5 {game → combat}/index.html
  39. 0 gallery/{fancybox → }/blank.gif
  40. 0 gallery/{fancybox → }/fancy_close.png
  41. 0 gallery/{fancybox → }/fancy_loading.png
  42. 0 gallery/{fancybox → }/fancy_nav_left.png
  43. 0 gallery/{fancybox → }/fancy_nav_right.png
  44. 0 gallery/{fancybox → }/fancy_shadow_e.png
  45. 0 gallery/{fancybox → }/fancy_shadow_n.png
  46. 0 gallery/{fancybox → }/fancy_shadow_ne.png
  47. 0 gallery/{fancybox → }/fancy_shadow_nw.png
  48. 0 gallery/{fancybox → }/fancy_shadow_s.png
  49. 0 gallery/{fancybox → }/fancy_shadow_se.png
  50. 0 gallery/{fancybox → }/fancy_shadow_sw.png
  51. 0 gallery/{fancybox → }/fancy_shadow_w.png
  52. 0 gallery/{fancybox → }/fancy_title_left.png
  53. 0 gallery/{fancybox → }/fancy_title_main.png
  54. 0 gallery/{fancybox → }/fancy_title_over.png
  55. 0 gallery/{fancybox → }/fancy_title_right.png
  56. 0 gallery/{fancybox → }/fancybox-x.png
  57. 0 gallery/{fancybox → }/fancybox-y.png
  58. 0 gallery/{fancybox → }/fancybox.png
  59. +6 −6 gallery/index.php
  60. 0 gallery/{fancybox → }/jquery.easing-1.3.pack.js
  61. 0 gallery/{fancybox → }/jquery.fancybox-1.3.4.css
  62. 0 gallery/{fancybox → }/jquery.fancybox-1.3.4.pack.js
  63. 0 gallery/{fancybox → }/jquery.mousewheel-3.0.4.pack.js
  64. +16 −0 game/index.php
  65. BIN images/main_middle.xcf
  66. 0 {combat → locations}/forest/bg.jpg
  67. +43 −0 spells/card.php
  68. BIN spells/card.png
  69. BIN spells/contour.png
  70. +7 −0 spells/details.php
  71. +63 −0 spells/icons/1.svg
  72. +63 −0 spells/icons/2.svg
  73. +36 −11 spells/index.php
View
0 ...y/artwork/Blood Drone by MaggotMaster.jpg → artwork/Blood Drone by MaggotMaster.jpg
File renamed without changes
View
0 gallery/artwork/Chimera by UndeadKitty13.jpg → artwork/Chimera by UndeadKitty13.jpg
File renamed without changes
View
0 .../artwork/Cyclops Chicken by Velvetcat.jpg → artwork/Cyclops Chicken by Velvetcat.jpg
File renamed without changes
View
0 gallery/artwork/Dark Priest by Kasia88.jpg → artwork/Dark Priest by Kasia88.jpg
File renamed without changes
View
0 .../artwork/Deep Beauty by UndeadKitty13.jpg → artwork/Deep Beauty by UndeadKitty13.jpg
File renamed without changes
View
0 ...Dire Wolf by RougeSpark and Velvetcat.jpg → ...Dire Wolf by RougeSpark and Velvetcat.jpg
File renamed without changes
View
0 ...rtwork/Flame Trooper by UndeadKitty13.jpg → artwork/Flame Trooper by UndeadKitty13.jpg
File renamed without changes
View
0 gallery/artwork/Flayed by Kasia88.jpg → artwork/Flayed by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Frogman by Kasia88.jpg → artwork/Frogman by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Gumble by Kasia88.jpg → artwork/Gumble by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Horn Head by Kasia88.jpg → artwork/Horn Head by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Ice Demon by Kasia88.jpg → artwork/Ice Demon by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Kreta by Kasia88.jpg → artwork/Kreta by Kasia88.jpg
File renamed without changes
View
0 ...ry/artwork/Liopleurodon by RougeSpark.jpg → artwork/Liopleurodon by RougeSpark.jpg
File renamed without changes
View
0 ...artwork/Living Armor by GabrielVerdon.jpg → artwork/Living Armor by GabrielVerdon.jpg
File renamed without changes
View
0 gallery/artwork/Magma Demon by Kasia88.jpg → artwork/Magma Demon by Kasia88.jpg
File renamed without changes
View
0 ...ma Spawn by Kasia88 and GabrielVerdon.jpg → ...ma Spawn by Kasia88 and GabrielVerdon.jpg
File renamed without changes
View
0 gallery/artwork/Moss Hound.jpg → artwork/Moss Hound.jpg
File renamed without changes
View
0 ...ry/artwork/Musketeer by GabrielVerdon.jpg → artwork/Musketeer by GabrielVerdon.jpg
File renamed without changes
View
0 gallery/artwork/Nightmare by Kasia88.jpg → artwork/Nightmare by Kasia88.jpg
File renamed without changes
View
0 ...ry/artwork/Psychotic Bunny by Kasia88.jpg → artwork/Psychotic Bunny by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Razorback by Kasia88.jpg → artwork/Razorback by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Shadow Leech by Kasia88.jpg → artwork/Shadow Leech by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Shrimp by Velvetcat.jpg → artwork/Shrimp by Velvetcat.jpg
File renamed without changes
View
0 gallery/artwork/Shroom by Kasia88.jpg → artwork/Shroom by Kasia88.jpg
File renamed without changes
View
0 gallery/artwork/Siren by Velvetcat.jpg → artwork/Siren by Velvetcat.jpg
Diff not rendered.
View
0 gallery/artwork/Stomper by Velvetcat.jpg → artwork/Stomper by Velvetcat.jpg
Diff not rendered.
View
0 gallery/artwork/Troglodite by Velvetcat.jpg → artwork/Troglodite by Velvetcat.jpg
Diff not rendered.
View
0 ...e Fungus by Kasia88 and GabrielVerdon.jpg → ...e Fungus by Kasia88 and GabrielVerdon.jpg
Diff not rendered.
View
0 gallery/artwork/Volpyr by Kasia88.jpg → artwork/Volpyr by Kasia88.jpg
Diff not rendered.
View
0 game/Application.js → combat/Application.js
File renamed without changes.
View
4 combat/Arena.js
@@ -20,7 +20,7 @@ Arena.prototype.init = function() {
this.tilesRenderer.resizeToWindow();
this.arenaRenderer.resizeToWindow();
// TODO use callback to do a loading screen
- //this.arenaRenderer.fetchTexture("/forest/bg.jpg");
+ //this.arenaRenderer.fetchTexture("../locations/forest/bg.jpg");
// resize events
$(window).resize(function () {
@@ -104,7 +104,7 @@ Arena.prototype.drawAll = function(f, element) {
Arena.prototype.drawArena = function() {
var backgroundSize = new Vector2D(this.arenaRenderer.unitsPerRow, this.arenaRenderer.unitsPerColumn);
this.arenaRenderer.clear();
- this.arenaRenderer.bindTexture("../combat/forest/bg.jpg");
+ this.arenaRenderer.bindTexture("../locations/forest/bg.jpg");
this.arenaRenderer.drawImage(new Vector2D(0, 0), backgroundSize, new Vector2D(0,0), new Vector2D(1920, 1080));
}
View
0 game/Utilities/CanvasRenderer.js → combat/CanvasRenderer.js
File renamed without changes.
View
0 game/Utilities/MathUtils.js → combat/MathUtils.js
File renamed without changes.
View
0 game/Utilities/Renderer.js → combat/Renderer.js
File renamed without changes.
View
0 game/Utilities/TextureCache.js → combat/TextureCache.js
File renamed without changes.
View
0 game/Utilities/Vector.js → combat/Vector.js
File renamed without changes.
View
10 game/index.html → combat/index.html
@@ -4,11 +4,11 @@
<title>Ancient Beast - Alpha</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="Application.js"></script>
-<script type="text/javascript" src="Utilities/Vector.js"></script>
-<script type="text/javascript" src="Utilities/MathUtils.js"></script>
-<script type="text/javascript" src="Utilities/Renderer.js"></script>
-<script type="text/javascript" src="Utilities/CanvasRenderer.js"></script>
-<script type="text/javascript" src="../combat/Arena.js"></script>
+<script type="text/javascript" src="Vector.js"></script>
+<script type="text/javascript" src="MathUtils.js"></script>
+<script type="text/javascript" src="Renderer.js"></script>
+<script type="text/javascript" src="CanvasRenderer.js"></script>
+<script type="text/javascript" src="Arena.js"></script>
<style type="text/css">
canvas {
margin: 32px;
View
0 gallery/fancybox/blank.gif → gallery/blank.gif
Diff not rendered.
View
0 gallery/fancybox/fancy_close.png → gallery/fancy_close.png
Diff not rendered.
View
0 gallery/fancybox/fancy_loading.png → gallery/fancy_loading.png
Diff not rendered.
View
0 gallery/fancybox/fancy_nav_left.png → gallery/fancy_nav_left.png
Diff not rendered.
View
0 gallery/fancybox/fancy_nav_right.png → gallery/fancy_nav_right.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_e.png → gallery/fancy_shadow_e.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_n.png → gallery/fancy_shadow_n.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_ne.png → gallery/fancy_shadow_ne.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_nw.png → gallery/fancy_shadow_nw.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_s.png → gallery/fancy_shadow_s.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_se.png → gallery/fancy_shadow_se.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_sw.png → gallery/fancy_shadow_sw.png
Diff not rendered.
View
0 gallery/fancybox/fancy_shadow_w.png → gallery/fancy_shadow_w.png
Diff not rendered.
View
0 gallery/fancybox/fancy_title_left.png → gallery/fancy_title_left.png
Diff not rendered.
View
0 gallery/fancybox/fancy_title_main.png → gallery/fancy_title_main.png
Diff not rendered.
View
0 gallery/fancybox/fancy_title_over.png → gallery/fancy_title_over.png
Diff not rendered.
View
0 gallery/fancybox/fancy_title_right.png → gallery/fancy_title_right.png
Diff not rendered.
View
0 gallery/fancybox/fancybox-x.png → gallery/fancybox-x.png
Diff not rendered.
View
0 gallery/fancybox/fancybox-y.png → gallery/fancybox-y.png
Diff not rendered.
View
0 gallery/fancybox/fancybox.png → gallery/fancybox.png
Diff not rendered.
View
12 gallery/index.php
@@ -1,10 +1,10 @@
<?php $page_title = "Ancient Beast - Gallery";
require_once("../header.php"); ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
-<script type="text/javascript" src="<?php echo $WorkingDir; ?>gallery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
-<script type="text/javascript" src="<?php echo $WorkingDir; ?>gallery/fancybox/jquery.easing-1.3.pack.js"></script>
-<script type="text/javascript" src="<?php echo $WorkingDir; ?>gallery/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
-<link rel="stylesheet" href="<?php echo $WorkingDir; ?>gallery/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
+<script type="text/javascript" src="jquery.fancybox-1.3.4.pack.js"></script>
+<script type="text/javascript" src="jquery.easing-1.3.pack.js"></script>
+<script type="text/javascript" src="jquery.mousewheel-3.0.4.pack.js"></script>
+<link rel="stylesheet" href="jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
var basePage = window.location.href.replace(/#.*/, "");
@@ -26,12 +26,12 @@
</script>
<?php
echo $start_div . "<center>";
-$images = scandir("artwork");
+$images = scandir("../artwork");
$i = 0;
foreach($images as $image) {
if($image == "." || $image == "..") continue;
$title = substr($image, 0, -4);
- echo "<a id='img{$i}' style='text-align:center;' rel='pop' href='artwork/$image' title='$title'><img style='height:200px; margin:5px;' src='artwork/$image' title='$title'></a>";
+ echo "<a id='img{$i}' style='text-align:center;' rel='pop' href='../artwork/$image' title='$title'><img style='height:200px; margin:5px;' src='../artwork/$image' title='$title'></a>";
$i++;
} echo "</center>{$end_div}{$the_end}"; ?>
View
0 gallery/fancybox/jquery.easing-1.3.pack.js → gallery/jquery.easing-1.3.pack.js
File renamed without changes.
View
0 gallery/fancybox/jquery.fancybox-1.3.4.css → gallery/jquery.fancybox-1.3.4.css
File renamed without changes.
View
0 ...ry/fancybox/jquery.fancybox-1.3.4.pack.js → gallery/jquery.fancybox-1.3.4.pack.js
File renamed without changes.
View
0 .../fancybox/jquery.mousewheel-3.0.4.pack.js → gallery/jquery.mousewheel-3.0.4.pack.js
File renamed without changes.
View
16 game/index.php
@@ -0,0 +1,16 @@
+<?php $page_title = "Ancient Beast - Game";
+require_once("../header.php");
+require_once("../config.php");
+echo $start_div;
+echo "<center>Coming Soon!</center>";
+//TODO:
+//show casual mode
+//ladder rankings
+//tournament sign-up and status
+//login/register/recover
+//stats
+//ladder match
+//equiped items (here or have widget in items system?)
+mysql_free_result($result);
+echo "
+</div>{$end_div}{$the_end}"; ?>
View
BIN images/main_middle.xcf
Binary file not shown.
View
0 combat/forest/bg.jpg → locations/forest/bg.jpg
Diff not rendered.
View
43 spells/card.php
@@ -0,0 +1,43 @@
+<?php require_once("../config.php"); ?>
+<style>
+.card {
+ width: 430px;
+ height: 550px;
+ background-image: url(card.png);
+ background-repeat: no-repeat;
+ padding: 15px;
+ margin: 0px;
+ vertical-align: top;
+ cursor: default;
+}
+.title {
+ font-family: Lucida Grande;
+ font-size: 24px;
+ text-align: center;
+}
+.section {
+ color: #fff;
+ border-style: solid;
+ border-color: transparent;
+ width: 400px;
+ text-shadow: black 0.1em 0.1em 0.2em;
+ font-weight: bold;
+ font-size: 16px;
+ font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
+}
+</style>
+<?php $max_result = mysql_query('select max(id) as max_id from ab_spells');
+$max_id = mysql_result($max_result, 0, 0);
+if (!isset($ab_id)) {
+ $ab_id = (isset($_POST['id'])) ? mysql_real_escape_string($_POST['id']) : 1;
+ if (!is_numeric($ab_id)) $ab_id = 1;
+ if ($ab_id > $max_id) $ab_id = $max_id;
+ if ($ab_id < 1) $ab_id = 1;
+}
+$spell = "SELECT * FROM ab_spells WHERE id = $ab_id";
+$result = mysql_query($spell);
+while ($row = mysql_fetch_assoc($result)) {
+ echo "<div class='card'><table class='section'><tr class='title'><td width='20%'>L" . $row["lvl"] . "</td><td>" . strtoupper($row["name"]) . "<td width='20%'>" . $row["mana"] . "M</td></tr></table>";
+ echo "<img style='margin-left:-30px;' src='icons/$ab_id.svg'>";
+ echo "<div class='section' style='text-align: center; width: 390px; padding: 5px 0px;'>" . $row["description"] . "</div></div>";
+} mysql_free_result($result); ?>
View
BIN spells/card.png
Diff not rendered.
View
BIN spells/contour.png
Diff not rendered.
View
7 spells/details.php
@@ -0,0 +1,7 @@
+<?php
+include("../connect.php");
+//include("../ico/index.php");
+echo "<center>";
+include("card.php");
+echo "</center>";
+?>
View
63 spells/icons/1.svg
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.3.1 r9886"
+ width="400"
+ height="400"
+ sodipodi:docname="Icon.3_05.png">
+ <metadata
+ id="metadata8">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs6" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1280"
+ inkscape:window-height="969"
+ id="namedview4"
+ showgrid="false"
+ inkscape:zoom="0.59"
+ inkscape:cx="203.38983"
+ inkscape:cy="200"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" />
+ <rect
+ style="fill:#000000;fill-opacity:1;stroke:none"
+ id="rect3001"
+ width="400"
+ height="400"
+ x="0"
+ y="-2.8421709e-14" />
+ <path
+ style="fill:#ffffff"
+ d="m 155.22036,370.36921 c 1.49619,-0.76445 3.16862,-2.17275 3.71651,-3.12956 2.5692,-4.48676 2.59833,-4.4948 6.555,-1.80973 8.24034,5.59205 19.50813,0.93619 19.50813,-8.06076 0,-2.2784 -1.24913,-4.71926 -4.38549,-8.56947 C 174.74406,341.5931 168.24683,328.3645 162.62617,312.17483 160.08178,304.84598 158,298.68585 158,298.48565 c 0,-0.20021 1.78007,-2.42072 3.95571,-4.93447 2.17563,-2.51375 4.38552,-5.3385 4.91085,-6.27722 0.88923,-1.58897 1.39264,-1.55324 7.2943,0.51776 13.13163,4.60812 27.77993,4.64851 40.88647,0.11272 l 6.30853,-2.1832 1.88951,2.38938 c 1.03924,1.31416 3.20917,3.81312 4.82208,5.55325 1.6129,1.74012 2.93255,4.06879 2.93255,5.17482 0,3.23053 -8.90884,27.97795 -13.03427,36.20725 -2.08057,4.15027 -5.41835,9.5035 -7.41728,11.89607 -4.7571,5.69387 -5.85823,7.8672 -5.75875,11.36608 0.14385,5.05954 6.12847,9.69191 12.52109,9.69191 1.95207,0 4.92473,-1.02785 6.95253,-2.40395 l 3.54242,-2.40395 2.84713,3.46024 c 5.99954,7.29149 17.71553,7.83701 20.98675,0.97719 1.47356,-3.09008 1.40936,-3.74074 -1.15454,-11.70078 -2.29704,-7.13155 -2.78207,-10.66033 -3.15156,-22.92875 -0.24018,-7.975 -0.076,-18.05512 0.36489,-22.40027 l 0.80159,-7.90026 6,-1.64509 c 25.08619,-6.87815 48.12918,-37.74282 55.48921,-74.3244 1.79745,-8.93388 1.56022,-26.32818 -0.45355,-33.25532 -3.82255,-13.14911 -9.262,-19.96305 -19.13546,-23.97079 l -5.9002,-2.39495 -0.61875,-14.30446 c -0.34031,-7.86745 -0.94964,-18.01696 -1.35408,-22.55446 -0.48208,-5.40863 -0.38497,-8.25 0.28194,-8.25 0.5595,0 10.24631,8.775 21.52624,19.5 11.27994,10.725 20.994,19.5 21.58681,19.5 2.7696,0 -0.006,-29.61076 -4.46508,-47.64038 C 313.08651,79.517064 294.50437,54.874428 272.14466,47.964126 268.64923,46.883857 264.03282,46 261.88598,46 258.55131,46 257.11983,45.206803 252.0605,40.555622 243.05677,32.278234 239.07926,30.514767 229.5,30.553225 c -6.89176,0.02767 -8.90044,0.468292 -14.5,3.180719 -3.575,1.73173 -9.56298,5.680938 -13.30661,8.776018 l -6.80662,5.627419 -6.19338,-5.109672 c -3.40637,-2.81032 -9.54505,-6.77873 -13.64153,-8.818691 -6.63864,-3.305905 -8.26891,-3.706499 -15,-3.68584 -9.16609,0.02813 -13.83459,2.149492 -22.22762,10.100187 C 132.95844,45.232721 131.59296,46 128.25574,46 114.25596,46 96.075691,57.679365 85.262675,73.619599 72.669107,92.18467 64.661575,119.3944 63.299748,148.25 62.857979,157.61058 63.006786,161 63.859517,161 c 0.638824,0 10.337265,-8.775 21.55209,-19.5 11.214825,-10.725 20.929283,-19.5 21.587683,-19.5 0.87933,0 1.00404,1.65898 0.46981,6.25 -0.40001,3.4375 -1.00669,13.65381 -1.34819,22.7029 l -0.62091,16.4529 -5,1.52084 c -6.972543,2.12083 -15.416347,10.56111 -18.314342,18.30669 -7.179152,19.188 -4.117703,45.78345 8.116784,70.51219 5.233992,10.57912 10.279658,17.7967 18.353978,26.25448 8.01286,8.39341 15.62923,13.43426 25.12817,16.63095 3.52013,1.18463 6.88902,2.64266 7.48644,3.24008 0.70935,0.70935 1.09926,8.29288 1.12382,21.85759 0.0362,19.98413 -0.0649,21.07458 -2.66586,28.77138 -3.13204,9.26826 -3.29621,11.24517 -1.18418,14.26051 2.88955,4.12541 10.34257,4.84441 16.67555,1.6087 z"
+ id="path2991" />
+</svg>
View
63 spells/icons/2.svg
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.3.1 r9886"
+ width="400"
+ height="400"
+ sodipodi:docname="Icon.2_98.png">
+ <metadata
+ id="metadata8">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs6" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1280"
+ inkscape:window-height="969"
+ id="namedview4"
+ showgrid="false"
+ inkscape:zoom="0.59"
+ inkscape:cx="203.38983"
+ inkscape:cy="200"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" />
+ <rect
+ style="fill:#000000;fill-opacity:1;stroke:none"
+ id="rect3028"
+ width="400"
+ height="400"
+ x="0"
+ y="0" />
+ <path
+ id="path2989"
+ style="fill:#ffffff"
+ d="m 322.8,57.8 c 1.67494,-1.674942 1.67494,-29.925058 0,-31.6 C 321.88003,25.28003 293.66032,25 201.87143,25 94.360606,25 81.9825,25.160357 80.571429,26.571429 79.298125,27.844732 79,30.702946 79,41.63717 79,49.059042 79.465833,56.001899 80.035184,57.065741 81.04983,58.961626 83.456341,59 201.33518,59 293.54115,59 321.87997,58.720029 322.8,57.8 z M 209.5399,191.448 c 8.02032,-2.08848 13.75744,-5.60121 21.09415,-12.91556 16.05207,-16.00314 29.0946,-44.78886 35.35576,-78.03244 2.24531,-11.921439 3.78623,-27.972971 2.85595,-29.75 -0.85861,-1.640137 -5.12209,-1.75 -67.91233,-1.75 -61.27236,0 -67.05017,0.140634 -67.62786,1.646093 -0.89955,2.34417 1.3839,20.760091 4.32164,34.853907 6.74722,32.36981 19.39529,58.78883 35.3512,73.84082 12.66303,11.94566 23.45621,15.51978 36.56149,12.10718 z m 94.48485,135.9869 C 304.63959,325.81775 305,278.53856 305,199.5 305,120.46144 304.63959,73.18225 304.02475,71.5651 303.09845,69.128743 302.67594,69 295.60654,69 c -4.09363,0 -8.15477,0.273145 -9.02475,0.606989 C 285.15069,70.156153 285,82.532632 285,199.52366 c 0,102.51207 0.25904,129.4142 1.25,129.81406 0.6875,0.27741 4.74864,0.53991 9.02475,0.58333 7.4573,0.0757 7.81457,-0.0258 8.75,-2.48615 z m -35.08855,1.14197 c 2.67984,-3.229 -3.4142,-39.61381 -10.03612,-59.92124 -9.86208,-30.24406 -25.37883,-52.61032 -42.42334,-61.15017 -5.31113,-2.66104 -6.98138,-2.99514 -14.99777,-3 -8.24763,-0.005 -9.61432,0.28662 -15.94134,3.4014 -19.29078,9.49682 -36.2205,36.76471 -45.66675,73.55322 -4.22842,16.46765 -7.95944,43.26079 -6.53947,46.96117 0.54358,1.41657 7.47929,1.57875 67.51476,1.57875 56.64835,0 67.09006,-0.21824 68.09003,-1.42313 z M 118.02475,327.4349 c 1.32934,-3.49643 1.32934,-252.373372 0,-255.8698 C 117.09845,69.128743 116.67594,69 109.60654,69 c -4.09363,0 -8.15477,0.273145 -9.02475,0.606989 C 99.150689,70.156153 99,82.532632 99,199.52366 c 0,102.51207 0.259045,129.4142 1.25,129.81406 0.6875,0.27741 4.74864,0.53991 9.02475,0.58333 7.4573,0.0757 7.81457,-0.0258 8.75,-2.48615 z m 204.04099,45.52992 C 323.84401,372.01312 324,370.7389 324,357.16482 324,347.0144 323.62497,342.02497 322.8,341.2 321.87997,340.27997 293.54115,340 201.33518,340 83.456341,340 81.04983,340.03837 80.035184,341.93426 79.465833,342.9981 79,349.94096 79,357.36283 c 0,10.93422 0.298125,13.79244 1.571429,15.06574 C 81.982392,373.83953 94.293855,374 201.13717,374 c 80.11344,0 119.62632,-0.33824 120.92857,-1.03518 z" />
+</svg>
View
47 spells/index.php
@@ -1,14 +1,39 @@
+<?php $page_title = "Ancient Beast - Spells";
+require_once("../header.php");
+require_once("../config.php");
+?>
+<script type="text/javascript" src="<?php echo $WorkingDir; ?>utils/tinybox.js"></script>
<?php
-$page_title = "Ancient Beast - Spells";
-$style = "
-.iconz {
- width: 110px;
- height: 110px;
+echo "$start_div<div style='text-align:center; margin-left:-6px;'>";
+$spells = "SELECT * FROM ab_spells";
+$result = mysql_query($spells) or die(mysql_error());
+while ($row = mysql_fetch_assoc($result)) {
+ echo "<div style=\"display: inline-block;\" onclick=\"showId({$row['id']});\">
+ <span style=\"cursor: pointer;\" class=\"lighten\"><img style=\"display: block; width:128px; height:128px;\" src=\"icons/{$row['id']}.svg\"></span>
+</div>";
}
-.bigger {
- font-size: 28px;
-}";
-require_once("../header.php");
-echo $start_div;
-echo "<center>Coming soon!</center>{$end_div}{$the_end}";
?>
+
+<!--show details of the linked item-->
+<script type="text/javascript">
+var basePage = window.location.href.replace( /#.*/, "");
+function showId(id) {
+ TINY.box.show({url:'details.php',post:'id='+id,width:440,height:550,topsplit:2,close:true,callback:function(b){
+ $(b).click(function() {
+ history.replaceState("", "", basePage);
+ });
+ }});
+ history.replaceState("", "", basePage + "#id=" + id);
+}
+window.onload = function() {
+ if (/[\#&]id=(\d+)/.test(location.hash)) {
+ var id = parseInt(RegExp.$1);
+ showId(id);
+ }
+}
+</script>
+
+<?php
+mysql_free_result($result);
+echo "
+</div>{$end_div}{$the_end}"; ?>

0 comments on commit f4ae5ad

Please sign in to comment.
Something went wrong with that request. Please try again.