diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f94c164 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.blend1 +khafile.js +build_PuzzlePocalypse \ No newline at end of file diff --git a/PuzzlePocalypse.blend b/PuzzlePocalypse.blend new file mode 100644 index 0000000..a90a570 Binary files /dev/null and b/PuzzlePocalypse.blend differ diff --git a/Sources/Main.hx b/Sources/Main.hx new file mode 100644 index 0000000..cdf323c --- /dev/null +++ b/Sources/Main.hx @@ -0,0 +1,28 @@ +// Auto-generated +package; + +class Main { + public static inline var projectName = 'PuzzlePocalypse'; + public static inline var projectVersion = '1.0.4'; + public static inline var projectPackage = 'arm'; + + public static function main() { + iron.object.BoneAnimation.skinMaxBones = 8; + iron.object.LightObject.cascadeCount = 4; + iron.object.LightObject.cascadeSplitFactor = 0.800000011920929; + armory.system.Starter.numAssets = 17; + armory.system.Starter.drawLoading = armory.trait.internal.LoadingScreen.render; + armory.system.Starter.main( + 'Scene', + 0, + true, + true, + true, + 1920, + 1080, + 1, + true, + armory.renderpath.RenderPathCreator.get + ); + } +} \ No newline at end of file diff --git a/Sources/arm/Game.hx b/Sources/arm/Game.hx new file mode 100644 index 0000000..4b1b2f8 --- /dev/null +++ b/Sources/arm/Game.hx @@ -0,0 +1,16 @@ +package arm; + +class Game extends iron.Trait { + public function new() { + super(); + + // notifyOnInit(function() { + // }); + + // notifyOnUpdate(function() { + // }); + + // notifyOnRemove(function() { + // }); + } +} diff --git a/Sources/arm/Html.hx b/Sources/arm/Html.hx new file mode 100644 index 0000000..1d7e107 --- /dev/null +++ b/Sources/arm/Html.hx @@ -0,0 +1,74 @@ +package arm; + +/** + * This adds the correct css styling for a nice automatic full screen html5 + */ +class Html extends iron.Trait { + var css = "#khanvas { + display: block; + outline: none; + border: none !important; + bottom: 0 !important; + height: 100vh !important; + left: 0 !important; + min-height: 100% !important; + min-width: 100% !important; + position: fixed !important; + right: 0 !important; + top: 0 !important; + width: 100% !important; + }"; + + public function new() { + super(); + + notifyOnInit(function() { + #if kha_krom + #else + js.Syntax.code('var style = document.createElement("style"); style.type = "text/css"; style.appendChild(document.createTextNode({0})); document.getElementsByTagName("head")[0].appendChild(style);', + css); + #end + }); + + // notifyOnUpdate(function() { + // }); + + // notifyOnRemove(function() { + // }); + } +} +/* + + */