Tower Defense
- Building
-
- Currency
-
- Attacks
-
- Waves
Shooter
- Weapons
- Bullets
- Enemies
Tower Defense
Shooter
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Pose detection</title> | |
<script src="https://unpkg.com/@tensorflow/tfjs"></script> | |
<script src="https://unpkg.com/@tensorflow-models/posenet"></script> | |
<style> | |
#preview { |
const ArrayExtensions = { | |
remove(array, needle) { | |
const index = array.indexOf(needle); | |
if (index !== -1) { | |
array.splice(index, 1); | |
return index; | |
} | |
return false; |
Vector created | |
Initialized Vector(0, 0) | |
Vector created | |
Initialized Vector(10, 10) | |
Rectangle created | |
Vector created | |
Initialized Vector(10, 10) | |
Initialized Rectangle(0, 0, 10, 10) | |
Disposed Rectangle(0, 0, 10, 10) | |
Disposed Vector(0, 0) |
#!/usr/bin/env node | |
const {promisify} = require('util'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const glob = promisify(require('glob')); | |
const readFile = promisify(fs.readFile); | |
const writeFile = promisify(fs.writeFile); | |
const extension = process.argv[3]; |
#!/usr/bin/env bash | |
cmd=$@; | |
for i in $(ls) | |
do | |
if [ -d "$i" ] | |
then | |
echo "Entering ./$i" | |
cd "$i" |
function stringify(value, indent = '') { | |
const nextIndent = `${indent} `; | |
if (isNative(value)) | |
return JSON.stringify(value); | |
if (Array.isArray(value)) { | |
if (value.length === 1 && isNative(value[0])) | |
return JSON.stringify(value); |
type myMethodSignature<T> = (value: T) => void; | |
class Test { | |
alias: myMethodSignature<T>; | |
constructor() { | |
this.alias = this.myMethod.bind(this); | |
} | |
myMethod<T>(value: T): void {} |
class ReadableStream<T> { | |
// ... | |
debounce(milliseconds: number): ReadableStream<T[]>; | |
debounce<TOut>(milliseconds: number, join?: (list: T[]) => TOut): ReadableStream<TOut> { | |
let lastTime = Date.now(); | |
let buffer: T[] = []; | |
return new ReadableStream<TOut>((push: (value: TOut) => void) => { |
interface IChainLink { | |
type: 'resource' | 'value'; | |
value: string; | |
} | |
type SingleApiIndex<T> = { [p in keyof T]: SingleApi<T[p]>; }; | |
type ApiIndex<T> = { [p in keyof T]: Api<T[p]>; }; | |
interface BaseApi<T> { |