This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw FileNotFoundException instead of Exception when an asset is mis…
…sing from the manifest so apps can respond to it.
- Loading branch information
Showing
10 changed files
with
225 additions
and
36 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
html { | ||
margin: 0px; | ||
padding: 0px; | ||
} | ||
body { | ||
background-color: black; | ||
color: white; | ||
margin: 0px; | ||
padding: 0px; | ||
} | ||
a, a:visited { | ||
color: silver; | ||
} | ||
#canvas { | ||
left: 0px; | ||
top: 0px; | ||
cursor: none; | ||
} | ||
#welcomeMessage { | ||
width: 620px; | ||
height: 140px; | ||
left: 42px; | ||
top: 162px; | ||
} | ||
#loadButton { | ||
width: 200px; | ||
height: 40px; | ||
left: 539px; | ||
top: 320px; | ||
} | ||
#quitButton { | ||
width: 32px; | ||
height: 32px; | ||
left: 1284px; | ||
top: 2px; | ||
} | ||
#loadingProgress { | ||
width: 600px; | ||
height: 40px; | ||
left: 52px; | ||
top: 252px; | ||
} | ||
#progressBar { | ||
height: 40px; | ||
} | ||
#log { | ||
width: 704px; | ||
height: 200px; | ||
left: 2px; | ||
top: 544px; | ||
overflow-x: hidden; | ||
overflow-y: scroll; | ||
} | ||
#fullscreenButton { | ||
left: 708px; | ||
top: 2px; | ||
height: 45px; | ||
} | ||
#stats { | ||
left: 708px; | ||
top: 50px; | ||
} | ||
.boxCaption { | ||
position: absolute; | ||
font-size: 10pt; | ||
font-family: Consolas, Courier New, Courier; | ||
z-index: -999; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
} |
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,88 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Soulcaster 2</title> | ||
|
||
<link rel="stylesheet" href="../Common/browser.css"> | ||
<link rel="stylesheet" href="Soulcaster2.css"> | ||
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
</head> | ||
<body onload="onLoad()"> | ||
<script type="text/javascript"> | ||
var jsilConfig = { | ||
printStackTrace: false, | ||
webgl2d: true, | ||
winForms: true, | ||
xna: 4, | ||
localStorage: true, | ||
|
||
manifests: [ | ||
"Soulcaster2.exe", | ||
"Soulcaster2Content.contentproj" | ||
], | ||
|
||
showProgressBar: true, | ||
showStats: true, | ||
showFullscreenButton: true | ||
}; | ||
</script> | ||
<script src="../Libraries/JSIL.js" type="text/javascript"></script> | ||
|
||
<!-- 352x272 --> | ||
<canvas id="canvas" width="704" height="544"> | ||
</canvas><br> | ||
|
||
<div id="welcomeMessage"> | ||
<p align="center"><a href="http://jsil.org/"><img src="http://jsil.org/images/jsil_48px.png" alt="JSIL logo" border="0"></a></p> | ||
</div> | ||
<div id="log"><center><span style="font-size: 16pt; text-align: center; display: inline-block"> | ||
Use mouse to move and interact with menus.<br> | ||
For best performance, play in <a href="https://www.google.com/chrome">Google Chrome</a>.<br> | ||
</span></center><br></div> | ||
|
||
<script type="text/javascript"> | ||
var scriptRoot = ""; | ||
var libraryRoot = "../Libraries/"; | ||
var fileRoot = "Soulcaster2Content/"; | ||
var contentRoot = "Soulcaster2Content/"; | ||
|
||
var assetsToLoad = [ | ||
// Used to read the levels | ||
["Script", "TarchonData.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.js", { "sizeBytes": 10127 }], | ||
]; | ||
|
||
function runMain () { | ||
try { | ||
document.getElementById("welcomeMessage").setAttribute("style", "display: none"); | ||
} catch (ex) { | ||
} | ||
|
||
// Crisp square pixels! | ||
integralFullscreenScaling = true; | ||
// We default the canvas to 2x native framebuffer size, but we want fullscreen scaling to be based on 1x | ||
overrideFullscreenBaseSize = [352, 272] | ||
|
||
// Set up the localStorage backend | ||
JSIL.LocalStorage.Initialize("Soulcaster2"); | ||
|
||
// We can't invoke Main() since it disposes the Game immediately, breaking everything. | ||
var asm = JSIL.GetAssembly("Soulcaster2", true); | ||
var game = new asm.Tarchon.SoulcasterTwo(); | ||
game.Run(); | ||
}; | ||
</script> | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-6375004-2']); | ||
_gaq.push(['_setDomainName', '.luminance.org']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
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,21 @@ | ||
{ | ||
"UseThreads": true, | ||
"OutputDirectory": "%configpath%", | ||
"Assemblies": { | ||
"Proxies": [ | ||
"C:/Users/Kevin/Documents/Projects/Soulcaster/Proxies/bin/Debug/Proxies.dll" | ||
], | ||
"Ignored": [ | ||
"System.Data.*", | ||
"System.Deployment", | ||
"Proxies" | ||
] | ||
}, | ||
"ProfileSettings": { | ||
"OverwriteExistingContent": true, | ||
"ContentOutputDirectory": "%configpath%/Soulcaster2Content", | ||
"UsePNGQuant": true, | ||
"FileSettings": { | ||
} | ||
} | ||
} |