Skip to content

Commit

Permalink
Game And Watch Remaster - Fire Brigade
Browse files Browse the repository at this point in the history
  • Loading branch information
luciopanepinto committed Aug 14, 2015
1 parent 23ff3e2 commit 3683cbe
Show file tree
Hide file tree
Showing 79 changed files with 2,423 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Game And Watch Remastered - Fire Brigade
Game And Watch game written in HTML5 + CSS3 + jQuery. This WebApp is a "Responsive Web Design" (RWD) website.


<a href="https://c5c49d4a946183078f4f3f09cf8f88dddaba57fa-www.googledrive.com/host/0B4HFlS9vdbwFfkJUelBXLS1nQy00SVhycDB3dU5uQTJrRG9kSG5hYzhUM0EtLWxWcUxQaXc/">Play game</a>
Binary file added css/font/oswald-bold.ttf
Binary file not shown.
Binary file added css/font/oswald-light.ttf
Binary file not shown.
Binary file added css/font/oswald-regular.ttf
Binary file not shown.
Binary file added css/font/quadrit.ttf
Binary file not shown.
30 changes: 30 additions & 0 deletions css/gawr-games-media.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@media screen and (min-height:1200px), screen and (min-device-height : 1200px) {
#main {
zoom: 125%;
}
}

@media screen and (max-width:1024px), screen and (min-device-width : 768px) and (max-device-width : 1024px) {
#main {
zoom: 101%;
}
#main .control.sound {
display: none;
}

}
@media screen and (max-height:640px), screen and (min-device-height : 480px) and (max-device-height : 640px) and (-webkit-device-pixel-ratio: 3) {
#main {
zoom: 63%;
}

#main h1, #main h2, #main h3 {
display: none;
}
#main .control.sound {
display: none;
}
}
@media screen and (max-height:480px), screen and (min-device-height : 360px) and (max-device-height : 480px) {

}
87 changes: 87 additions & 0 deletions css/gawr-games-scoring-digit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
.sprite[data-type="digit-h"], .sprite[data-type="digit-v"], .sprite[data-type="digit-s"] {
background-size: cover;
}
.sprite[data-type="digit-h"] {
background-image: url("../img/black/digital-number-h.png");
height: 4px;
width: 18px;
}
.sprite[data-type="digit-v"] {
background-image: url("../img/black/digital-number-v.png");
height: 18px;
width: 4px;
}
.sprite[data-type="digit-s"] {
background-image: url("../img/black/digital-separator.png");
height: 36px;
width: 4px;
}

.sprite[data-position="101"], .sprite[data-position="102"], .sprite[data-position="103"] {
right: 6px;
}
.sprite[data-position="201"], .sprite[data-position="202"], .sprite[data-position="203"] {
right: 42px;
}
.sprite[data-position="301"], .sprite[data-position="302"], .sprite[data-position="303"] {
right: 92px;
}
.sprite[data-position="401"], .sprite[data-position="402"], .sprite[data-position="403"] {
right: 128px;
}

.sprite[data-position="101"], .sprite[data-position="201"], .sprite[data-position="301"], .sprite[data-position="401"] {
top: 2px;
}
.sprite[data-position="102"], .sprite[data-position="202"], .sprite[data-position="302"], .sprite[data-position="402"] {
top: 24px;
}
.sprite[data-position="103"], .sprite[data-position="203"], .sprite[data-position="303"], .sprite[data-position="403"] {
top: 46px;
}

.sprite[data-position="104"], .sprite[data-position="105"],
.sprite[data-position="204"], .sprite[data-position="205"],
.sprite[data-position="304"], .sprite[data-position="305"],
.sprite[data-position="404"], .sprite[data-position="405"] {
top: 6px;
}
.sprite[data-position="106"], .sprite[data-position="107"],
.sprite[data-position="206"], .sprite[data-position="207"],
.sprite[data-position="306"], .sprite[data-position="307"],
.sprite[data-position="406"], .sprite[data-position="407"] {
top: 28px;
}

.sprite[data-position="104"], .sprite[data-position="106"] {
right: 2px;
}
.sprite[data-position="105"], .sprite[data-position="107"] {
right: 24px;
}

.sprite[data-position="204"], .sprite[data-position="206"] {
right: 38px;
}
.sprite[data-position="205"], .sprite[data-position="207"] {
right: 60px;
}

.sprite[data-position="304"], .sprite[data-position="306"] {
right: 88px;
}
.sprite[data-position="305"], .sprite[data-position="307"] {
right: 110px;
}

.sprite[data-position="404"], .sprite[data-position="406"] {
right: 124px;
}
.sprite[data-position="405"], .sprite[data-position="407"] {
right: 146px;
}

.sprite[data-position="300"] {
top: 10px;
right: 72px;
}
225 changes: 225 additions & 0 deletions css/gawr-games.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
@font-face {
font-family: 'quadrit';
src: url('./font/quadrit.ttf');
}
@font-face {
font-family: 'oswald-light';
src: url('./font/oswald-light.ttf');
}
* {
font-family: 'quadrit';
font-size: 18px;
color: #000;
}

html, body {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
background-color: #fff;
}

#main {
padding: 5px;
margin: auto;
display: inline-table;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
width: 970px;
position: absolute;
border: solid 0px red;
}
#main h1, .control {
font-family: 'oswald-light';
letter-spacing: 5px;
font-size: 46px;
text-transform: uppercase;
}
#main h2, #main h3 {
position: absolute;
}
#main h3, #main h3 em {
font-family: 'oswald-light';
letter-spacing: 2px;
font-size: 14px;
color: #666;
top: 35px;
right: 115px;
font-weight: normal;
font-style: normal;
text-align: right;
}
#main h2 {
font-family: 'quadrit';
text-shadow: 2px 2px #ccc;
letter-spacing: 2px;
font-size: 18px;
color: #999;
top: 0px;
right: 115px;
font-weight: bold;
font-style: normal;
text-align: right;
background-color: #e2ec1d;
color: #333;
}
#game {
height: 500px;
}
#game, #main h1 {
width: 750px;
margin: auto;
padding: 0px;
}

.control {
margin: 20px 0px 20px 0px;
background-repeat: no-repeat;
background-position: 50% 75%;
background-size: 70px;
width: 100px;
height: 100px;
background-color: #333;
border-radius: 15px;
position: absolute;
cursor: pointer;
color: #fff;
box-shadow: 4px 4px 1px #ccc;
bottom: 0px;

-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.control:active {
opacity: 0.3;
}
.control.left {
background-image: url("../img/white/control-left.png");
}
.control.right {
background-image: url("../img/white/control-right.png");
right: 0px;
}
.control.a, .control.b, .control.reset {
height: 50px;
right: 0px;
letter-spacing: 2px;
font-size: 22px;
text-align: center;
line-height: 40px;
}
.control.a {
bottom: 425px;
}
.control.b {
bottom: 360px;
}
.control.reset {
bottom: 280px;
color: #333;
height: 30px;
line-height: 30px;
font-size: 18px;
box-shadow: none;
background-color: transparent;
border: solid 1px #ccc;

}
.control.reset span{
border-radius: 10px;
width: 15px;
height: 15px;
display: inline-table;
background-color: #ccc;
margin-right: 10px;
border: solid 1px #666;
}

.sprite, .score, .game-a, .game-b, .miss {
position: absolute;
opacity: 0.70;
text-transform: uppercase;
-webkit-filter: drop-shadow(5px 5px 2px #666);
filter: drop-shadow(15px 15px 10px #666);
letter-spacing: 3px;
}
.score {
top: 10px;
right: 170px;
height: 50px;
width: 160px;
}
.game-a, .game-b {
bottom: 10px;
}
.game-a {
left: 100px;
}
.game-b {
left: 200px;
}
.miss {
top: 15px;
right: 20px;
}
.sprite[data-type="miss"] {
width: 45px;
height: 45px;
top: 40px;
}
.sprite[data-position="50"] {
right: 20px;
}
.sprite[data-position="51"] {
right: 60px;
}
.sprite[data-position="52"] {
right: 100px;
}

.scene, .background, .foreground {
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
width: inherit;
height: inherit;
background-color: transparent;
position: absolute;
}
.scene {
overflow: hidden;
position: relative;
border: solid 1px #aaa;
border-radius: 5px;
background-color: #ddd;
}
.background {
-webkit-filter: drop-shadow(3px 3px 1px #999);
filter: drop-shadow(5px 5px 2px #999);
opacity: 0.60;
}
.foreground {
-webkit-filter: drop-shadow(10px 10px 5px #999);
filter: drop-shadow(12px 12px 6px #999);
opacity: 0.80;
}

.sprite {
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
}

.sprite[data-state="off"], .game-a[data-state="off"], .game-b[data-state="off"], .miss[data-state="off"] {
opacity: 0.00;
-webkit-filter: none;
filter: none;
}
Binary file added favicon.ico
Binary file not shown.
Loading

0 comments on commit 3683cbe

Please sign in to comment.