-
Notifications
You must be signed in to change notification settings - Fork 0
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
Joseph Suarez
committed
Nov 21, 2024
1 parent
968ebf5
commit 4a81409
Showing
18 changed files
with
13,849 additions
and
1,689 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,89 @@ | ||
<!doctypehtml><html lang=EN-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><title>raylib web game</title><meta content="raylib web game"name=title><meta content="New raylib web videogame, developed using raylib videogames library"name=description><meta content="raylib, programming, examples, html5, C, C++, library, learn, games, videogames"name=keywords><meta content="width=device-width"name=viewport><meta content=website property=og:type><meta content="raylib web game"property=og:title><meta content=image/png property=og:image:type><meta content=https://www.raylib.com/common/raylib_logo.png property=og:image><meta content="New raylib web videogame, developed using raylib videogames library"property=og:image:alt><meta content="raylib - example"property=og:site_name><meta content=https://www.raylib.com/games.html property=og:url><meta content="New raylib web videogame, developed using raylib videogames library"property=og:description><meta content=summary_large_image name=twitter:card><meta content=@raysan5 name=twitter:site><meta content="raylib web game"name=twitter:title><meta content=https://www.raylib.com/common/raylib_logo.png name=twitter:image><meta content="New raylib web videogame, developed using raylib videogames library"name=twitter:image:alt><meta content=https://www.raylib.com/games.html name=twitter:url><meta content="New raylib web videogame, developed using raylib videogames library"name=twitter:description><link href=https://www.raylib.com/favicon.ico rel="shortcut icon"><style>body{margin:0;overflow:hidden;background-color:#000}canvas.emscripten{border:0 none;background-color:#000}</style><script src=https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js></script><script>function saveFileFromMEMFSToDisk(e,a){var i,o=FS.readFile(e);i=new Blob([o.buffer],{type:"application/octet-binary"}),saveAs(i,a)}</script></head><body><canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas><p id=output><script>var Module={print:function(){var e=document.getElementById("output");return e&&(e.value=""),function(n){arguments.length>1&&(n=Array.prototype.slice.call(arguments).join(" ")),console.log(n),e&&(e.value+=n+"\n",e.scrollTop=e.scrollHeight)}}(),canvas:document.getElementById("canvas")}</script><script src=game.js async></script></body></html> | ||
<!doctype html> | ||
<html lang="EN-us"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
|
||
<title>raylib web game</title> | ||
|
||
<meta name="title" content="raylib web game"> | ||
<meta name="description" content="New raylib web videogame, developed using raylib videogames library"> | ||
<meta name="keywords" content="raylib, programming, examples, html5, C, C++, library, learn, games, videogames"> | ||
<meta name="viewport" content="width=device-width"> | ||
|
||
<!-- Open Graph metatags for sharing --> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="raylib web game"> | ||
<meta property="og:image:type" content="image/png"> | ||
<meta property="og:image" content="https://www.raylib.com/common/raylib_logo.png"> | ||
<meta property="og:image:alt" content="New raylib web videogame, developed using raylib videogames library" /> | ||
<meta property="og:site_name" content="raylib - example"> | ||
<meta property="og:url" content="https://www.raylib.com/games.html"> | ||
<meta property="og:description" content="New raylib web videogame, developed using raylib videogames library"> | ||
|
||
<!-- Twitter metatags for sharing --> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta name="twitter:site" content="@raysan5"> | ||
<meta name="twitter:title" content="raylib web game"> | ||
<meta name="twitter:image" content="https://www.raylib.com/common/raylib_logo.png"> | ||
<meta name="twitter:image:alt" content="New raylib web videogame, developed using raylib videogames library"> | ||
<meta name="twitter:url" content="https://www.raylib.com/games.html"> | ||
<meta name="twitter:description" content="New raylib web videogame, developed using raylib videogames library"> | ||
|
||
<!-- Favicon --> | ||
<link rel="shortcut icon" href="https://www.raylib.com/favicon.ico"> | ||
|
||
<style> | ||
body { | ||
margin: 0px; | ||
overflow: hidden; | ||
background-color: black; | ||
} | ||
canvas.emscripten { border: 0px none; background-color: black;} | ||
</style> | ||
<script type='text/javascript' src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js/dist/FileSaver.min.js"> </script> | ||
<script type='text/javascript'> | ||
function saveFileFromMEMFSToDisk(memoryFSname, localFSname) // This can be called by C/C++ code | ||
{ | ||
var isSafari = false; // Not supported, navigator.userAgent access is being restricted | ||
//var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); | ||
var data = FS.readFile(memoryFSname); | ||
var blob; | ||
|
||
if (isSafari) blob = new Blob([data.buffer], { type: "application/octet-stream" }); | ||
else blob = new Blob([data.buffer], { type: "application/octet-binary" }); | ||
|
||
// NOTE: SaveAsDialog is a browser setting. For example, in Google Chrome, | ||
// in Settings/Advanced/Downloads section you have a setting: | ||
// 'Ask where to save each file before downloading' - which you can set true/false. | ||
// If you enable this setting it would always ask you and bring the SaveAsDialog | ||
saveAs(blob, localFSname); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas> | ||
<p id="output" /> | ||
<script> | ||
var Module = { | ||
print: (function() { | ||
var element = document.getElementById('output'); | ||
if (element) element.value = ''; // clear browser cache | ||
return function(text) { | ||
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' '); | ||
console.log(text); | ||
if (element) { | ||
element.value += text + "\n"; | ||
element.scrollTop = element.scrollHeight; // focus on bottom | ||
} | ||
}; | ||
})(), | ||
canvas: (function() { | ||
var canvas = document.getElementById('canvas'); | ||
return canvas; | ||
})() | ||
}; | ||
</script> | ||
<script async type="text/javascript" src="game.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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