-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2a8a12
commit 6422ea5
Showing
39 changed files
with
1,268 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@font-face { | ||
font-family: SpidermanGamePixelFont; | ||
src: url(../fonts/pixel.otf); | ||
} | ||
|
||
.spiderman-game-menu-container, | ||
.spiderman-game-menu-container * { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
|
||
-webkit-user-select: none; | ||
-khtml-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
-o-user-select: none; | ||
user-select: none; | ||
cursor: default; | ||
} | ||
|
||
.spiderman-game-menu-container { | ||
position: absolute; | ||
display: none; | ||
height: auto; | ||
|
||
-webkit-transform: translate(-50%, -50%); | ||
-moz-transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
-o-transform: translate(-50%, -50%); | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.spiderman-game-menu-title { | ||
text-align: center; | ||
font-size: 20px; | ||
line-height: 60px; | ||
font-family: SpidermanGamePixelFont; | ||
color: white; | ||
display: block; | ||
padding: 5px; | ||
} | ||
|
||
.spiderman-game-menu-button { | ||
line-height: 30px; | ||
font-size: 15px; | ||
text-align: center; | ||
font-family: SpidermanGamePixelFont; | ||
color: white; | ||
} | ||
|
||
.spiderman-game-menu-button:hover { | ||
color: red; | ||
} | ||
|
||
.spiderman-game-menu-button:active { | ||
color: rgb(200, 0, 0); | ||
} |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Welcome to Mini Spidey!</title> | ||
<link rel="shortcut icon" href="images/standing.png" /> | ||
</head> | ||
<style type="text/css"> | ||
html, | ||
body { | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
font-size: 0; | ||
background: #000; | ||
} | ||
|
||
.canvas-wrapper { | ||
float: left; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
|
||
-webkit-transform: translate(-50%, -50%); | ||
-moz-transform: translate(-50%, -50%); | ||
-ms-transform: translate(-50%, -50%); | ||
-o-transform: translate(-50%, -50%); | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.key { | ||
height: 30px; | ||
min-width: 20px; | ||
line-height: 30px; | ||
text-align: center; | ||
border: 1px solid #ccc; | ||
border-bottom: 3px solid #bbb; | ||
background: white; | ||
display: inline-block; | ||
padding: 0 5px; | ||
border-radius: 5px; | ||
box-shadow: inset 0 -1px 0 #ccc; | ||
color: #333; | ||
font-weight: bold; | ||
} | ||
|
||
.key.spacebar { | ||
padding: 0 40px; | ||
} | ||
|
||
.keyboard { | ||
margin: 5px 0; | ||
font-size: 15px; | ||
font-family: Helvetica; | ||
color: white; | ||
} | ||
|
||
.action { | ||
margin-right: 15px; | ||
} | ||
|
||
.link { | ||
width: 100%; | ||
text-align: center; | ||
font-size: 20px; | ||
color: #ccc; | ||
font-family: SpidermanGamePixelFont, Helvetica, Arial; | ||
margin-top: 20px; | ||
} | ||
</style> | ||
<body> | ||
<div class="canvas-wrapper"> | ||
<div class="keyboard"> | ||
<div class="key spacebar">Spacebar</div> | ||
<span class="action">- Shoot</span> | ||
|
||
<div class="key">←</div> | ||
<div class="key">→</div> | ||
<span class="action">- Left/Right</span> | ||
|
||
<div class="key">↑</div> | ||
<span class="action">- Jump</span> | ||
|
||
<div class="key">Esc</div> | ||
<span class="action">- Pause</span> | ||
</div> | ||
<canvas id="canvas"></canvas> | ||
<div class="link"> | ||
View Source on | ||
<a href="https://github.com/RedEdge967/mini-spidey" target="_blank">Github</a> | ||
</div> | ||
</div> | ||
</body> | ||
<script type="text/javascript" src="spiderman-game.js"></script> | ||
<script type="text/javascript"> | ||
|
||
var game = new SpidermanGame({ | ||
canvas: "#canvas" | ||
}); | ||
game.load(); | ||
|
||
</script> | ||
</html> |
Oops, something went wrong.