diff --git a/games.php b/games.php new file mode 100644 index 0000000..6a823a3 --- /dev/null +++ b/games.php @@ -0,0 +1,22 @@ +
+
'; + include('games/bamboofield.html'); + + + echo '
'; + include('games/zombiePanda.html'); + + echo '
'; + echo '
'; + + + include 'includes/footer.php'; + +?> \ No newline at end of file diff --git a/games/bamboofield.html b/games/bamboofield.html index ab9b4e1..5ccc03f 100644 --- a/games/bamboofield.html +++ b/games/bamboofield.html @@ -2,18 +2,18 @@ window.onload = function() { - var canvas = document.getElementById("canvas"); + var canvasBFc = document.getElementById("canvasBF"); - var c = canvas.getContext('2d'); + var c = canvasBFc.getContext('2d'); c.fillStyle= "black"; - c.fillRect(0,0, canvas.width, canvas.height); + c.fillRect(0,0, canvasBFc.width, canvasBFc.height); }; //entire game - function play() + function playBF() { var animate = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) { @@ -21,15 +21,15 @@ }; - var canvas = document.getElementById("canvas"); + var canvasBFc = document.getElementById("canvasBF"); var width = 700; var height = 700; - canvas.style.textAligh = 'center'; + canvasBFc.style.textAligh = 'center'; - var context = canvas.getContext('2d'); + var context = canvasBFc.getContext('2d'); @@ -294,5 +294,5 @@ } -
-
+
+
diff --git a/games/zombiePanda.html b/games/zombiePanda.html index 5889be6..6767cf3 100644 --- a/games/zombiePanda.html +++ b/games/zombiePanda.html @@ -1,18 +1,18 @@ -
-
\ No newline at end of file + + +
+
\ No newline at end of file diff --git a/games/zombiePanda.php b/games/zombiePanda.php new file mode 100644 index 0000000..6e26c98 --- /dev/null +++ b/games/zombiePanda.php @@ -0,0 +1,24 @@ +
+
'; + include('zombiePanda.html'); + + + echo '
'; + + //high scores + include('../includes/profile.php'); + + echo '
'; + echo '
'; + + + include '../includes/footer.php'; + +?> \ No newline at end of file diff --git a/includes/header.php b/includes/header.php index 3492397..118aac4 100644 --- a/includes/header.php +++ b/includes/header.php @@ -68,7 +68,7 @@ Bamboo Field - Link 2 + Zombie Pandas Link 3 Link 4 Link 5 @@ -85,7 +85,7 @@
Bamboo Field - Link + Zombie Pandas Link
@@ -127,7 +127,7 @@ Bamboo Field - Link 2 + Zombie Pandas Link 3 Link 4 Link 5 @@ -144,7 +144,7 @@
Bamboo Field - Link + Zombie Pandas Link
diff --git a/user/profile.php b/user/profile.php index 807d498..0069870 100644 --- a/user/profile.php +++ b/user/profile.php @@ -1,6 +1,5 @@