Upload 5 files
Browse files- SuperOrdinaryJoe.js +0 -0
- SuperOrdinaryJoe_texture_0 (1).png +0 -0
- index.html +85 -0
- uph_ArmorGamesIntro.js +70 -0
- vph_kongExt.js +4 -0
SuperOrdinaryJoe.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
SuperOrdinaryJoe_texture_0 (1).png
ADDED
|
index.html
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<!-- Generated by GameMaker:Studio http://www.yoyogames.com/gamemaker/studio -->
|
| 5 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
| 6 |
+
<meta http-equiv="pragma" content="no-cache"/>
|
| 7 |
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
| 8 |
+
<meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
| 9 |
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
| 10 |
+
<meta charset="utf-8"/>
|
| 11 |
+
|
| 12 |
+
<!-- Set the title bar of the page -->
|
| 13 |
+
<title>Super Ordinary Joe</title>
|
| 14 |
+
|
| 15 |
+
<!-- Set the background colour of the document -->
|
| 16 |
+
<style>
|
| 17 |
+
body {
|
| 18 |
+
background: #000000;
|
| 19 |
+
color:#cccccc;
|
| 20 |
+
margin: 0px;
|
| 21 |
+
padding: 0px;
|
| 22 |
+
border: 0px;
|
| 23 |
+
}
|
| 24 |
+
canvas {
|
| 25 |
+
image-rendering: optimizeSpeed;
|
| 26 |
+
-webkit-interpolation-mode: nearest-neighbor;
|
| 27 |
+
-ms-touch-action: none;
|
| 28 |
+
margin: 0px;
|
| 29 |
+
padding: 0px;
|
| 30 |
+
border: 0px;
|
| 31 |
+
}
|
| 32 |
+
:-webkit-full-screen #canvas {
|
| 33 |
+
width: 100%;
|
| 34 |
+
height: 100%;
|
| 35 |
+
}
|
| 36 |
+
div.gm4html5_div_class
|
| 37 |
+
{
|
| 38 |
+
margin: 0px;
|
| 39 |
+
padding: 0px;
|
| 40 |
+
border: 0px;
|
| 41 |
+
}
|
| 42 |
+
/* START - Login Dialog Box */
|
| 43 |
+
div.gm4html5_login
|
| 44 |
+
{
|
| 45 |
+
padding: 20px;
|
| 46 |
+
position: absolute;
|
| 47 |
+
border: solid 2px #000000;
|
| 48 |
+
background-color: #404040;
|
| 49 |
+
color:#00ff00;
|
| 50 |
+
border-radius: 15px;
|
| 51 |
+
box-shadow: #101010 20px 20px 40px;
|
| 52 |
+
}
|
| 53 |
+
div.gm4html5_cancel_button
|
| 54 |
+
{
|
| 55 |
+
float: right;
|
| 56 |
+
}
|
| 57 |
+
div.gm4html5_login_button
|
| 58 |
+
{
|
| 59 |
+
float: left;
|
| 60 |
+
}
|
| 61 |
+
div.gm4html5_login_header
|
| 62 |
+
{
|
| 63 |
+
text-align: center;
|
| 64 |
+
}
|
| 65 |
+
/* END - Login Dialog Box */
|
| 66 |
+
:-webkit-full-screen {
|
| 67 |
+
width: 100%;
|
| 68 |
+
height: 100%;
|
| 69 |
+
}
|
| 70 |
+
</style>
|
| 71 |
+
</head>
|
| 72 |
+
|
| 73 |
+
<body>
|
| 74 |
+
<div class="gm4html5_div_class" id="gm4html5_div_id">
|
| 75 |
+
<!-- Create the canvas element the game draws to -->
|
| 76 |
+
<canvas id="canvas" width="900" height="540">
|
| 77 |
+
<p>Your browser doesn't support HTML5 canvas.</p>
|
| 78 |
+
</canvas>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<!-- Run the game code -->
|
| 82 |
+
<script type="text/javascript" src="html5game/SuperOrdinaryJoe.js?ZEDZB=518224492"></script>
|
| 83 |
+
<script>window.onload = GameMaker_Init;</script>
|
| 84 |
+
</body>
|
| 85 |
+
</html>
|
uph_ArmorGamesIntro.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var donePlayingIntro = false;
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Play the Armor Games intro
|
| 5 |
+
* @param {string} windowHandleName Index of the canvas element
|
| 6 |
+
* @param {string} directory Directory to find the armor games intros in. A / will be automatically added
|
| 7 |
+
*/
|
| 8 |
+
function playIntro(windowHandleName, directory) {
|
| 9 |
+
var windowHandle = document.getElementById(windowHandleName);
|
| 10 |
+
|
| 11 |
+
donePlayingIntro = false;
|
| 12 |
+
|
| 13 |
+
var videoElementA = document.createElement("a");
|
| 14 |
+
videoElementA.style.textDecoration = "none";
|
| 15 |
+
videoElementA.href = "http://armor.ag/MoreGames";
|
| 16 |
+
videoElementA.target = "_blank";
|
| 17 |
+
|
| 18 |
+
var videoElement = document.createElement("video");
|
| 19 |
+
if (videoElement.canPlayType("video/ogg")) {
|
| 20 |
+
videoElement.setAttribute("src", directory + "/armorIntro.ogv");
|
| 21 |
+
} else if (videoElement.canPlayType("video/x-m4v")) {
|
| 22 |
+
videoElement.setAttribute("src", directory + "/armorIntro.m4v");
|
| 23 |
+
} else if (videoElement.canPlayType("video/webm")) {
|
| 24 |
+
videoElement.setAttribute("src", directory + "/armorIntro.webm");
|
| 25 |
+
} else {
|
| 26 |
+
console.log("Cannot play Armor Games intro, skipping!");
|
| 27 |
+
donePlayingIntro = true;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
videoElement.setAttribute("width", windowHandle.width);
|
| 31 |
+
videoElement.setAttribute("height", windowHandle.height);
|
| 32 |
+
videoElement.style.backgroundColor = "black";
|
| 33 |
+
videoElement.style.position = "fixed";
|
| 34 |
+
var rect = windowHandle.getBoundingClientRect();
|
| 35 |
+
videoElement.style.left = rect.left + "px";
|
| 36 |
+
videoElement.style.top = rect.top + "px";
|
| 37 |
+
var promise = videoElement.play();
|
| 38 |
+
if (promise !== undefined) {
|
| 39 |
+
promise.catch(function(err) {
|
| 40 |
+
videoElement.muted = true;
|
| 41 |
+
promise = videoElement.play();
|
| 42 |
+
promise.catch(function(err) {
|
| 43 |
+
//Failed, skip the intro
|
| 44 |
+
finalizeIntro();
|
| 45 |
+
});
|
| 46 |
+
});
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
videoElement.addEventListener("ended", function() {
|
| 50 |
+
finalizeIntro();
|
| 51 |
+
});
|
| 52 |
+
videoElementA.appendChild(videoElement);
|
| 53 |
+
document.body.appendChild(videoElementA);
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* Finalize the intro animation.
|
| 57 |
+
*/
|
| 58 |
+
function finalizeIntro() {
|
| 59 |
+
document.body.removeChild(videoElementA);
|
| 60 |
+
donePlayingIntro = true;
|
| 61 |
+
videoElement = null;
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/**
|
| 66 |
+
* Whether we're done playing the armor games intro
|
| 67 |
+
*/
|
| 68 |
+
function hasPlayedIntro() {
|
| 69 |
+
return donePlayingIntro;
|
| 70 |
+
}
|
vph_kongExt.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function kongSubmitStat(name, val)
|
| 2 |
+
{
|
| 3 |
+
kongregate.stats.submit(name, val);
|
| 4 |
+
}
|