From 20a9685d642057add6df3cb295ea3eac282e3ce3 Mon Sep 17 00:00:00 2001 From: Jacklyne Bouier Date: Thu, 11 May 2017 11:00:13 -0700 Subject: [PATCH 1/3] platform game moved to forked repo and working --- public/css/platform.css | 41 ++++ public/index.html | 2 +- public/js/platform.js | 491 ++++++++++++++++++++++++++++++++++++++++ public/platform.html | 20 ++ 4 files changed, 553 insertions(+), 1 deletion(-) create mode 100644 public/css/platform.css create mode 100644 public/js/platform.js create mode 100644 public/platform.html diff --git a/public/css/platform.css b/public/css/platform.css new file mode 100644 index 0000000..d0ab0f3 --- /dev/null +++ b/public/css/platform.css @@ -0,0 +1,41 @@ +/*Each row of the grid is turned into a table row ( element). The strings in +the grid are used as class names for the table cell () elements.*/ + +.background { + background: rgb(52, 166, 251); + table-layout: fixed; + border-spacing: 0; +} + +.background td { + padding: 0; +} + +.lava { + background: rgb(255, 100, 100); +} + +.wall { + background: white; +} + +.actor {position: absolute;} + +.coin {background: rgb(241, 229, 89);} + +.player {background: rgb(64,64,64); } + +.lost .player { + background: rgb(160, 64, 64); +} + +.won .player { + box-shadow: -4px -7px 8px white, 4px -7px 8px white; +} + +.game { + overflow: hidden; + max-width: 600px; + max-height: 450px; + position: relative; +} diff --git a/public/index.html b/public/index.html index 278d291..29eadf0 100644 --- a/public/index.html +++ b/public/index.html @@ -13,7 +13,7 @@

Browser Games