Skip to content

Instantly share code, notes, and snippets.

//@ts-check
const items = require(__dirname + "/data/items");
console.log(items);
let ai = 5;
class Projectile {
constructor(speed, rotation, x, y, type, frames) {
this.speed = speed;
const fs = require("fs");
const items = [
{
id: 1,
img: {
source: [
"img/inv-wood-out.png",
"img/inv-wood-in.png",
"img/inv-wood-click.png",
],
const items = [
{
id: 1,
img: {
source: [
"img/inv-wood-out.png",
"img/inv-wood-in.png",
"img/inv-wood-click.png",
],
W: [
{
"items": [
{
"id": 1,
"img": {
"source": [
"img/inv-wood-out.png",
"img/inv-wood-in.png",
"img/inv-wood-click.png"
]
var e, i, _, o, d, t, n, r, g, s, l, m, c, u, p = window.navigator.userAgent
.toLowerCase(),
L = -1 !== p.indexOf("isTouchScreen") || -1 !== p.indexOf("android") || -1 !==
p.indexOf("ipad") || -1 !== p.indexOf("iphone") || -1 !== p.indexOf("ipod") ||
-1 !== p.indexOf("kindle") || -1 !== p.indexOf("silk/") ? 1 : 0;
if (1 === L) {
var E = window.document.createElement("meta");
E.name = "viewport", E.content = "initial-scale=1.0 maximum-scale=1.0", window
.document.getElementsByTagName("head")[0].appendChild(E)
}