-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from silvereengames/master
added ball dodge
- Loading branch information
Showing
12 changed files
with
1,080 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,94 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<style type="text/css"> | ||
h1 { | ||
font-family: Arial, Helvetica, sans-serif; | ||
color: #F00; | ||
font-size: x-large; | ||
} | ||
|
||
p { | ||
font-family: Arial, Helvetica, sans-serif; | ||
color: #000; | ||
font-size: small; | ||
} | ||
|
||
body { | ||
background-color: #FFF; | ||
text-align: center; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
#bloctxt { | ||
border-left-width: 5px; | ||
border-left-style: solid; | ||
border-left-color: #F00; | ||
padding-left: 10px; | ||
position: absolute; | ||
left: 50%%; | ||
width: 600px; | ||
margin-left: -260px | ||
} | ||
</style> | ||
|
||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
||
<!-- Enables full-screen on iOS devices --> | ||
<meta name="viewport" | ||
content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
<meta name="HandheldFriendly" content="true" /> | ||
<link rel="icon" href="icon.png"> | ||
|
||
<title>Ball Dodge</title> | ||
|
||
|
||
<!-- EXTRASOURCES --> | ||
<!-- Loads the Javascript code...--> | ||
<script src="src/Runtime.js"></script> | ||
|
||
<script> | ||
|
||
// Detection of when the html file is ran locally. | ||
// You can remove this code for the final version | ||
if (window.location.protocol == "file:") { | ||
document.write('<div id="bloctxt">'); | ||
document.write('<h1>The application cannot be run...</h1>'); | ||
document.write('<p>HTML browsers do not allow you to launch data files directly from the file system.<br>'); | ||
document.write('A drag & drop of the html file on a web-browser window will not work, on any machine.<br>'); | ||
document.write('Please use the Build & Run option (it opens a local web server) to run your application,<br>') | ||
document.write('or upload your application folder to a remote web-server, and start it from there...</p>'); | ||
document.write('</div>'); | ||
throw new error("Cannot run application"); | ||
} | ||
</script> | ||
</head> | ||
|
||
<body> | ||
|
||
<div style="display: inline-block; -webkit-user-select: none; text-align: left;"> | ||
<canvas id="MMFCanvas" width="640" height="480"> | ||
Your browser does not support Canvas. | ||
</canvas> | ||
</div> | ||
|
||
<script> | ||
// RUNTIMESTART | ||
// This is where the HTML5 runtime is actually started | ||
window.addEventListener("load", windowLoaded, false); | ||
function windowLoaded() { | ||
// Calls the runtime | ||
// First parameter : name of the canvas element | ||
// Second parameter : path to the cch file. Images and sounds must lay beside this file | ||
new Runtime("MMFCanvas", "resources/Ball Dodge.cch"); | ||
} | ||
// RUNTIMESTARTEND | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
Binary file not shown.
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.
Oops, something went wrong.