Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEdge967 authored Dec 23, 2021
1 parent c2a8a12 commit 6422ea5
Show file tree
Hide file tree
Showing 39 changed files with 1,268 additions and 0 deletions.
Binary file added audio/60-theme-song.mp3
Binary file not shown.
Binary file added audio/amazing-spider-man-2.mp3
Binary file not shown.
Binary file added audio/animated-series-theme.mp3
Binary file not shown.
Binary file added audio/old-theme.mp3
Binary file not shown.
Binary file added audio/shooting-web.mp3
Binary file not shown.
57 changes: 57 additions & 0 deletions css/spiderman-game.css
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 added fonts/Adventure.ttf
Binary file not shown.
Binary file added fonts/pixel.otf
Binary file not shown.
Binary file added images/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/building.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/doctor-octopus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/goblin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/jump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/knife.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mysterio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/running-change-step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/running-left-step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/running-right-step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sandman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/shoot-change-step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/shoot-jump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/shoot-left-step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/shoot-right-step.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/shoot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/slide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/spider-head.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/spider-head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/standing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/thug-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/thug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/venom-original.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/venom.png
Binary file added images/wall.jpg
Binary file added images/web.png
Binary file added images/whole.psd
Diff not rendered.
103 changes: 103 additions & 0 deletions index.html
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>
Loading

0 comments on commit 6422ea5

Please sign in to comment.