-
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.
Showing
29 changed files
with
369 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!21 &2100000 | ||
Material: | ||
serializedVersion: 8 | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_Name: NovaSquare-Bold SDF 1 | ||
m_Shader: {fileID: 4800000, guid: 68e6db2ebdc24f95958faec2be5558d6, type: 3} | ||
m_ValidKeywords: | ||
- UNDERLAY_ON | ||
m_InvalidKeywords: [] | ||
m_LightmapFlags: 4 | ||
m_EnableInstancingVariants: 0 | ||
m_DoubleSidedGI: 0 | ||
m_CustomRenderQueue: -1 | ||
stringTagMap: {} | ||
disabledShaderPasses: [] | ||
m_SavedProperties: | ||
serializedVersion: 3 | ||
m_TexEnvs: | ||
- _BumpMap: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _Cube: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _FaceTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _MainTex: | ||
m_Texture: {fileID: 3996172845468620811, guid: 86a9875a210857b4483886b292270398, type: 2} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
- _OutlineTex: | ||
m_Texture: {fileID: 0} | ||
m_Scale: {x: 1, y: 1} | ||
m_Offset: {x: 0, y: 0} | ||
m_Ints: [] | ||
m_Floats: | ||
- _Ambient: 0.5 | ||
- _Bevel: 0.5 | ||
- _BevelClamp: 0 | ||
- _BevelOffset: 0 | ||
- _BevelRoundness: 0 | ||
- _BevelWidth: 0 | ||
- _BumpFace: 0 | ||
- _BumpOutline: 0 | ||
- _ColorMask: 15 | ||
- _CullMode: 0 | ||
- _Diffuse: 0.5 | ||
- _FaceDilate: 0 | ||
- _FaceUVSpeedX: 0 | ||
- _FaceUVSpeedY: 0 | ||
- _GlowInner: 0.05 | ||
- _GlowOffset: 0 | ||
- _GlowOuter: 0.05 | ||
- _GlowPower: 0.75 | ||
- _GradientScale: 6 | ||
- _LightAngle: 3.1416 | ||
- _MaskSoftnessX: 0 | ||
- _MaskSoftnessY: 0 | ||
- _OutlineSoftness: 0 | ||
- _OutlineUVSpeedX: 0 | ||
- _OutlineUVSpeedY: 0 | ||
- _OutlineWidth: 0 | ||
- _PerspectiveFilter: 0.875 | ||
- _Reflectivity: 10 | ||
- _ScaleRatioA: 0.8333333 | ||
- _ScaleRatioB: 0.6770833 | ||
- _ScaleRatioC: 0.6770833 | ||
- _ScaleX: 1 | ||
- _ScaleY: 1 | ||
- _ShaderFlags: 0 | ||
- _Sharpness: 0 | ||
- _SpecularPower: 2 | ||
- _Stencil: 0 | ||
- _StencilComp: 8 | ||
- _StencilOp: 0 | ||
- _StencilReadMask: 255 | ||
- _StencilWriteMask: 255 | ||
- _TextureHeight: 512 | ||
- _TextureWidth: 512 | ||
- _UnderlayDilate: -0.089 | ||
- _UnderlayOffsetX: 0 | ||
- _UnderlayOffsetY: 0 | ||
- _UnderlaySoftness: 1 | ||
- _VertexOffsetX: 0 | ||
- _VertexOffsetY: 0 | ||
- _WeightBold: 0.75 | ||
- _WeightNormal: 0 | ||
m_Colors: | ||
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} | ||
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} | ||
- _FaceColor: {r: 1, g: 1, b: 1, a: 1} | ||
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} | ||
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} | ||
- _OutlineColor: {r: 0, g: 0.04956346, b: 0.41509432, a: 1} | ||
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} | ||
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} | ||
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1} | ||
- _UnderlayColor: {r: 0, g: 0.049706575, b: 0.4125427, a: 1} | ||
m_BuildTextureStacks: [] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-us"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>{{{ PRODUCT_NAME }}}</title> | ||
<style> | ||
html, | ||
body { | ||
background: {{{ BACKGROUND || '#000' }}}; | ||
width: 100%; | ||
height: 100%; | ||
overflow: visible; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
div#gameContainer { | ||
background: transparent !important; | ||
position: absolute; | ||
} | ||
|
||
div#gameContainer canvas { | ||
position: absolute; | ||
} | ||
|
||
div#gameContainer canvas[data-pixel-art="true"] { | ||
position: absolute; | ||
image-rendering: optimizeSpeed; | ||
image-rendering: -webkit-crisp-edges; | ||
image-rendering: -moz-crisp-edges; | ||
image-rendering: -o-crisp-edges; | ||
image-rendering: crisp-edges; | ||
image-rendering: -webkit-optimize-contrast; | ||
image-rendering: optimize-contrast; | ||
image-rendering: pixelated; | ||
-ms-interpolation-mode: nearest-neighbor; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="gameContainer"> | ||
<canvas id="unity-canvas" data-pixel-art="{{{ OPTIMIZE_FOR_PIXEL_ART }}}"></canvas> | ||
<script src="Build/{{{ LOADER_FILENAME }}}"></script> | ||
<script> | ||
var canvas = document.querySelector("#unity-canvas"); | ||
var config = { | ||
dataUrl: "Build/{{{ DATA_FILENAME }}}", | ||
frameworkUrl: "Build/{{{ FRAMEWORK_FILENAME }}}", | ||
codeUrl: "Build/{{{ CODE_FILENAME }}}", | ||
#if MEMORY_FILENAME | ||
memoryUrl: "Build/{{{ MEMORY_FILENAME }}}", | ||
#endif | ||
#if SYMBOLS_FILENAME | ||
symbolsUrl: "Build/{{{ SYMBOLS_FILENAME }}}", | ||
#endif | ||
streamingAssetsUrl: "StreamingAssets", | ||
companyName: "{{{ COMPANY_NAME }}}", | ||
productName: "{{{ PRODUCT_NAME }}}", | ||
productVersion: "{{{ PRODUCT_VERSION }}}", | ||
}; | ||
var scaleToFit; | ||
try { | ||
scaleToFit = !!JSON.parse("{{{ SCALE_TO_FIT }}}"); | ||
} catch (e) { | ||
scaleToFit = true; | ||
} | ||
function progressHandler(progress) { | ||
var percent = progress * 100 + '%'; | ||
canvas.style.background = 'linear-gradient(to right, white, white ' + percent + ', transparent ' + percent + ', transparent) no-repeat center'; | ||
canvas.style.backgroundSize = '100% 1rem'; | ||
} | ||
function onResize() { | ||
var container = canvas.parentElement; | ||
var w; | ||
var h; | ||
|
||
if (scaleToFit) { | ||
w = window.innerWidth; | ||
h = window.innerHeight; | ||
|
||
var r = {{{ HEIGHT }}} / {{{ WIDTH }}}; | ||
|
||
if (w * r > window.innerHeight) { | ||
w = Math.min(w, Math.ceil(h / r)); | ||
} | ||
h = Math.floor(w * r); | ||
} else { | ||
w = {{{ WIDTH }}}; | ||
h = {{{ HEIGHT }}}; | ||
} | ||
|
||
container.style.width = canvas.style.width = w + "px"; | ||
container.style.height = canvas.style.height = h + "px"; | ||
container.style.top = Math.floor((window.innerHeight - h) / 2) + "px"; | ||
container.style.left = Math.floor((window.innerWidth - w) / 2) + "px"; | ||
} | ||
createUnityInstance(canvas, config, progressHandler).then(function (instance) { | ||
canvas = instance.Module.canvas; | ||
onResize(); | ||
}); | ||
window.addEventListener('resize', onResize); | ||
onResize(); | ||
</script> | ||
</div> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.
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.
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,16 @@ | ||
{ | ||
"MonoBehaviour": { | ||
"Version": 4, | ||
"EnableBurstCompilation": true, | ||
"EnableOptimisations": true, | ||
"EnableSafetyChecks": false, | ||
"EnableDebugInAllBuilds": false, | ||
"UsePlatformSDKLinker": false, | ||
"CpuMinTargetX32": 0, | ||
"CpuMaxTargetX32": 0, | ||
"CpuMinTargetX64": 0, | ||
"CpuMaxTargetX64": 0, | ||
"CpuTargetsX64": 72, | ||
"OptimizeFor": 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,14 @@ | ||
{ | ||
"MonoBehaviour": { | ||
"Version": 4, | ||
"EnableBurstCompilation": true, | ||
"EnableOptimisations": true, | ||
"EnableSafetyChecks": false, | ||
"EnableDebugInAllBuilds": false, | ||
"CpuMinTargetX32": 0, | ||
"CpuMaxTargetX32": 0, | ||
"CpuMinTargetX64": 0, | ||
"CpuMaxTargetX64": 0, | ||
"OptimizeFor": 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
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