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
<html> | |
<body> | |
<canvas></canvas> | |
<script> | |
var devicePixelRatio = window.devicePixelRatio; | |
var windowWidth = window.innerWidth * devicePixelRatio; | |
var windowHeight = window.innerHeight * devicePixelRatio; | |
canvas.width = windowWidth; | |
canvas.height = windowHeight; | |
window.requestAnimationFrame(step); |
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
class MuteTrigger { | |
private count: number = 0; | |
private inputSet = {}; | |
mute(reason: string) { | |
if (this.inputSet[reason]) { | |
return; | |
} | |
this.inputSet[reason] = true; |
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
.DS_Store |
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
(function() { | |
var hidden = "hidden"; | |
// Standards: | |
if (hidden in document) | |
document.addEventListener("visibilitychange", onchange); | |
else if ((hidden = "mozHidden") in document) | |
document.addEventListener("mozvisibilitychange", onchange); | |
else if ((hidden = "webkitHidden") in document) | |
document.addEventListener("webkitvisibilitychange", onchange); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<ProjectGuid>{2CC2CEE3-2A51-4C0C-811F-1096A488E1C2}</ProjectGuid> | |
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> | |
<OutputType>Library</OutputType> | |
<OutputPath>bin</OutputPath> | |
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |
<DebugType>full</DebugType> |
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
mogrify -path "output" -background "#ff0000" -format jpg -resize 768x4096^ -gravity center -extent 768x1024 input/*.png |
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
convert test.png -background "#ff0000" -resize 768x4096^ -gravity center -extent 768x1024 test-out.png |
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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
clean: ["deploy"], | |
typescript: { | |
base: { | |
src: ['src/main.ts'], | |
dest: 'js/game.min.js', |
NewerOlder