|
// prevent TS errors in app.vue |
|
|
|
// taken from the kaplay/dist/declaration/global.d.ts |
|
|
|
import { KaboomCtx } from "kaplay/dist/declaration/types.d.ts" |
|
declare global { |
|
const _k: KaboomCtx["_k"] |
|
const add: KaboomCtx["add"] |
|
const make: KaboomCtx["make"] |
|
const readd: KaboomCtx["readd"] |
|
const get: KaboomCtx["get"] |
|
const query: KaboomCtx["query"] |
|
const destroy: KaboomCtx["destroy"] |
|
const destroyAll: KaboomCtx["destroyAll"] |
|
const pos: KaboomCtx["pos"] |
|
const scale: KaboomCtx["scale"] |
|
const rotate: KaboomCtx["rotate"] |
|
const color: KaboomCtx["color"] |
|
const opacity: KaboomCtx["opacity"] |
|
const sprite: KaboomCtx["sprite"] |
|
const text: KaboomCtx["text"] |
|
const polygon: KaboomCtx["polygon"] |
|
const rect: KaboomCtx["rect"] |
|
const circle: KaboomCtx["circle"] |
|
const uvquad: KaboomCtx["uvquad"] |
|
const area: KaboomCtx["area"] |
|
const anchor: KaboomCtx["anchor"] |
|
const z: KaboomCtx["z"] |
|
const layer: KaboomCtx["layer"] |
|
const outline: KaboomCtx["outline"] |
|
const particles: KaboomCtx["particles"] |
|
const body: KaboomCtx["body"] |
|
const doubleJump: KaboomCtx["doubleJump"] |
|
const move: KaboomCtx["move"] |
|
const offscreen: KaboomCtx["offscreen"] |
|
const follow: KaboomCtx["follow"] |
|
const shader: KaboomCtx["shader"] |
|
const timer: KaboomCtx["timer"] |
|
const fixed: KaboomCtx["fixed"] |
|
const stay: KaboomCtx["stay"] |
|
const health: KaboomCtx["health"] |
|
const lifespan: KaboomCtx["lifespan"] |
|
const named: KaboomCtx["named"] |
|
const state: KaboomCtx["state"] |
|
const fadeIn: KaboomCtx["fadeIn"] |
|
const mask: KaboomCtx["mask"] |
|
const drawon: KaboomCtx["drawon"] |
|
const tile: KaboomCtx["tile"] |
|
const agent: KaboomCtx["agent"] |
|
const sentry: KaboomCtx["sentry"] |
|
const patrol: KaboomCtx["patrol"] |
|
const navigation: KaboomCtx["navigation"] |
|
const raycast: KaboomCtx["raycast"] |
|
const on: KaboomCtx["on"] |
|
const onUpdate: KaboomCtx["onUpdate"] |
|
const onDraw: KaboomCtx["onDraw"] |
|
const onAdd: KaboomCtx["onAdd"] |
|
const onDestroy: KaboomCtx["onDestroy"] |
|
const onLoad: KaboomCtx["onLoad"] |
|
const onLoading: KaboomCtx["onLoading"] |
|
const onError: KaboomCtx["onError"] |
|
const onResize: KaboomCtx["onResize"] |
|
const onCleanup: KaboomCtx["onCleanup"] |
|
const onGamepadConnect: KaboomCtx["onGamepadConnect"] |
|
const onGamepadDisconnect: KaboomCtx["onGamepadDisconnect"] |
|
const onCollide: KaboomCtx["onCollide"] |
|
const onCollideUpdate: KaboomCtx["onCollideUpdate"] |
|
const onCollideEnd: KaboomCtx["onCollideEnd"] |
|
const onClick: KaboomCtx["onClick"] |
|
const onHover: KaboomCtx["onHover"] |
|
const onHoverUpdate: KaboomCtx["onHoverUpdate"] |
|
const onHoverEnd: KaboomCtx["onHoverEnd"] |
|
const onKeyDown: KaboomCtx["onKeyDown"] |
|
const onKeyPress: KaboomCtx["onKeyPress"] |
|
const onKeyPressRepeat: KaboomCtx["onKeyPressRepeat"] |
|
const onKeyRelease: KaboomCtx["onKeyRelease"] |
|
const onCharInput: KaboomCtx["onCharInput"] |
|
const onMouseDown: KaboomCtx["onMouseDown"] |
|
const onMousePress: KaboomCtx["onMousePress"] |
|
const onMouseRelease: KaboomCtx["onMouseRelease"] |
|
const onMouseMove: KaboomCtx["onMouseMove"] |
|
const onTouchStart: KaboomCtx["onTouchStart"] |
|
const onTouchMove: KaboomCtx["onTouchMove"] |
|
const onTouchEnd: KaboomCtx["onTouchEnd"] |
|
const onScroll: KaboomCtx["onScroll"] |
|
const onHide: KaboomCtx["onHide"] |
|
const onShow: KaboomCtx["onShow"] |
|
const onGamepadButtonDown: KaboomCtx["onGamepadButtonDown"] |
|
const onGamepadButtonPress: KaboomCtx["onGamepadButtonPress"] |
|
const onGamepadButtonRelease: KaboomCtx["onGamepadButtonRelease"] |
|
const onGamepadStick: KaboomCtx["onGamepadStick"] |
|
const onButtonPress: KaboomCtx["onButtonPress"] |
|
const onButtonRelease: KaboomCtx["onButtonRelease"] |
|
const onButtonDown: KaboomCtx["onButtonDown"] |
|
const onSceneLeave: KaboomCtx["onSceneLeave"] |
|
const getSceneName: KaboomCtx["getSceneName"] |
|
const loadRoot: KaboomCtx["loadRoot"] |
|
const loadSprite: KaboomCtx["loadSprite"] |
|
const loadSpriteAtlas: KaboomCtx["loadSpriteAtlas"] |
|
const loadAseprite: KaboomCtx["loadAseprite"] |
|
const loadPedit: KaboomCtx["loadPedit"] |
|
const loadBean: KaboomCtx["loadBean"] |
|
const loadJSON: KaboomCtx["loadJSON"] |
|
const loadSound: KaboomCtx["loadSound"] |
|
const loadMusic: KaboomCtx["loadMusic"] |
|
const loadFont: KaboomCtx["loadFont"] |
|
const loadBitmapFont: KaboomCtx["loadBitmapFont"] |
|
const loadShader: KaboomCtx["loadShader"] |
|
const loadShaderURL: KaboomCtx["loadShaderURL"] |
|
const load: KaboomCtx["load"] |
|
const loadProgress: KaboomCtx["loadProgress"] |
|
const getSprite: KaboomCtx["getSprite"] |
|
const getSound: KaboomCtx["getSound"] |
|
const getFont: KaboomCtx["getFont"] |
|
const getBitmapFont: KaboomCtx["getBitmapFont"] |
|
const getShader: KaboomCtx["getShader"] |
|
const getAsset: KaboomCtx["getAsset"] |
|
const Asset: KaboomCtx["Asset"] |
|
const SpriteData: KaboomCtx["SpriteData"] |
|
const SoundData: KaboomCtx["SoundData"] |
|
const width: KaboomCtx["width"] |
|
const getTreeRoot: KaboomCtx["getTreeRoot"] |
|
const height: KaboomCtx["height"] |
|
const center: KaboomCtx["center"] |
|
const dt: KaboomCtx["dt"] |
|
const time: KaboomCtx["time"] |
|
const isFocused: KaboomCtx["isFocused"] |
|
const isTouchscreen: KaboomCtx["isTouchscreen"] |
|
const mousePos: KaboomCtx["mousePos"] |
|
const mouseDeltaPos: KaboomCtx["mouseDeltaPos"] |
|
const isKeyDown: KaboomCtx["isKeyDown"] |
|
const isKeyPressed: KaboomCtx["isKeyPressed"] |
|
const isKeyPressedRepeat: KaboomCtx["isKeyPressedRepeat"] |
|
const isKeyReleased: KaboomCtx["isKeyReleased"] |
|
const isMouseDown: KaboomCtx["isMouseDown"] |
|
const isMousePressed: KaboomCtx["isMousePressed"] |
|
const isMouseReleased: KaboomCtx["isMouseReleased"] |
|
const isMouseMoved: KaboomCtx["isMouseMoved"] |
|
const isGamepadButtonPressed: KaboomCtx["isGamepadButtonPressed"] |
|
const isGamepadButtonDown: KaboomCtx["isGamepadButtonDown"] |
|
const isGamepadButtonReleased: KaboomCtx["isGamepadButtonReleased"] |
|
const isButtonPressed: KaboomCtx["isButtonPressed"] |
|
const isButtonDown: KaboomCtx["isButtonDown"] |
|
const isButtonReleased: KaboomCtx["isButtonReleased"] |
|
const getButton: KaboomCtx["getButton"] |
|
const setButton: KaboomCtx["setButton"] |
|
const getGamepadStick: KaboomCtx["getGamepadStick"] |
|
const charInputted: KaboomCtx["charInputted"] |
|
const shake: KaboomCtx["shake"] |
|
const camPos: KaboomCtx["camPos"] |
|
const camScale: KaboomCtx["camScale"] |
|
const camRot: KaboomCtx["camRot"] |
|
const camFlash: KaboomCtx["camFlash"] |
|
const camTransform: KaboomCtx["camTransform"] |
|
const toScreen: KaboomCtx["toScreen"] |
|
const toWorld: KaboomCtx["toWorld"] |
|
const setGravity: KaboomCtx["setGravity"] |
|
const getGravity: KaboomCtx["getGravity"] |
|
const setGravityDirection: KaboomCtx["setGravityDirection"] |
|
const getGravityDirection: KaboomCtx["getGravityDirection"] |
|
const setBackground: KaboomCtx["setBackground"] |
|
const getBackground: KaboomCtx["getBackground"] |
|
const getGamepads: KaboomCtx["getGamepads"] |
|
const setCursor: KaboomCtx["setCursor"] |
|
const getCursor: KaboomCtx["getCursor"] |
|
const setCursorLocked: KaboomCtx["setCursorLocked"] |
|
const isCursorLocked: KaboomCtx["isCursorLocked"] |
|
const setFullscreen: KaboomCtx["setFullscreen"] |
|
const isFullscreen: KaboomCtx["isFullscreen"] |
|
const wait: KaboomCtx["wait"] |
|
const loop: KaboomCtx["loop"] |
|
const play: KaboomCtx["play"] |
|
const burp: KaboomCtx["burp"] |
|
const volume: KaboomCtx["volume"] |
|
const audioCtx: KaboomCtx["audioCtx"] |
|
const rand: KaboomCtx["rand"] |
|
const randi: KaboomCtx["randi"] |
|
const randSeed: KaboomCtx["randSeed"] |
|
const vec2: KaboomCtx["vec2"] |
|
const rgb: KaboomCtx["rgb"] |
|
const hsl2rgb: KaboomCtx["hsl2rgb"] |
|
const quad: KaboomCtx["quad"] |
|
const choose: KaboomCtx["choose"] |
|
const chooseMultiple: KaboomCtx["chooseMultiple"] |
|
const shuffle: KaboomCtx["shuffle"] |
|
const chance: KaboomCtx["chance"] |
|
const lerp: KaboomCtx["lerp"] |
|
const tween: KaboomCtx["tween"] |
|
const easings: KaboomCtx["easings"] |
|
const easingSteps: KaboomCtx["easingSteps"] |
|
const easingLinear: KaboomCtx["easingLinear"] |
|
const easingCubicBezier: KaboomCtx["easingCubicBezier"] |
|
const map: KaboomCtx["map"] |
|
const mapc: KaboomCtx["mapc"] |
|
const wave: KaboomCtx["wave"] |
|
const deg2rad: KaboomCtx["deg2rad"] |
|
const rad2deg: KaboomCtx["rad2deg"] |
|
const clamp: KaboomCtx["clamp"] |
|
const evaluateQuadratic: KaboomCtx["evaluateQuadratic"] |
|
const evaluateQuadraticFirstDerivative: KaboomCtx["evaluateQuadraticFirstDerivative"] |
|
const evaluateQuadraticSecondDerivative: KaboomCtx["evaluateQuadraticSecondDerivative"] |
|
const evaluateBezier: KaboomCtx["evaluateBezier"] |
|
const evaluateBezierFirstDerivative: KaboomCtx["evaluateBezierFirstDerivative"] |
|
const evaluateBezierSecondDerivative: KaboomCtx["evaluateBezierSecondDerivative"] |
|
const evaluateCatmullRom: KaboomCtx["evaluateCatmullRom"] |
|
const evaluateCatmullRomFirstDerivative: KaboomCtx["evaluateCatmullRomFirstDerivative"] |
|
const curveLengthApproximation: KaboomCtx["curveLengthApproximation"] |
|
const normalizedCurve: KaboomCtx["normalizedCurve"] |
|
const testLinePoint: KaboomCtx["testLinePoint"] |
|
const testLineLine: KaboomCtx["testLineLine"] |
|
const testLineCircle: KaboomCtx["testLineCircle"] |
|
const testRectRect: KaboomCtx["testRectRect"] |
|
const testRectLine: KaboomCtx["testRectLine"] |
|
const testRectPoint: KaboomCtx["testRectPoint"] |
|
const testCirclePolygon: KaboomCtx["testCirclePolygon"] |
|
const isConvex: KaboomCtx["isConvex"] |
|
const triangulate: KaboomCtx["triangulate"] |
|
const NavMesh: KaboomCtx["NavMesh"] |
|
const Point: KaboomCtx["Point"] |
|
const Line: KaboomCtx["Line"] |
|
const Rect: KaboomCtx["Rect"] |
|
const Circle: KaboomCtx["Circle"] |
|
const Ellipse: KaboomCtx["Ellipse"] |
|
const Polygon: KaboomCtx["Polygon"] |
|
const Vec2: KaboomCtx["Vec2"] |
|
const Color: KaboomCtx["Color"] |
|
const Mat4: KaboomCtx["Mat4"] |
|
const Quad: KaboomCtx["Quad"] |
|
const RNG: KaboomCtx["RNG"] |
|
const scene: KaboomCtx["scene"] |
|
const go: KaboomCtx["go"] |
|
const layers: KaboomCtx["layers"] |
|
const addLevel: KaboomCtx["addLevel"] |
|
const getData: KaboomCtx["getData"] |
|
const setData: KaboomCtx["setData"] |
|
const drawSprite: KaboomCtx["drawSprite"] |
|
const drawText: KaboomCtx["drawText"] |
|
const drawRect: KaboomCtx["drawRect"] |
|
const drawLine: KaboomCtx["drawLine"] |
|
const drawLines: KaboomCtx["drawLines"] |
|
const drawCurve: KaboomCtx["drawCurve"] |
|
const drawBezier: KaboomCtx["drawBezier"] |
|
const drawTriangle: KaboomCtx["drawTriangle"] |
|
const drawCircle: KaboomCtx["drawCircle"] |
|
const drawEllipse: KaboomCtx["drawEllipse"] |
|
const drawPolygon: KaboomCtx["drawPolygon"] |
|
const drawUVQuad: KaboomCtx["drawUVQuad"] |
|
const drawFormattedText: KaboomCtx["drawFormattedText"] |
|
const drawMasked: KaboomCtx["drawMasked"] |
|
const drawSubtracted: KaboomCtx["drawSubtracted"] |
|
const pushTransform: KaboomCtx["pushTransform"] |
|
const popTransform: KaboomCtx["popTransform"] |
|
const pushTranslate: KaboomCtx["pushTranslate"] |
|
const pushScale: KaboomCtx["pushScale"] |
|
const pushRotate: KaboomCtx["pushRotate"] |
|
const pushMatrix: KaboomCtx["pushMatrix"] |
|
const usePostEffect: KaboomCtx["usePostEffect"] |
|
const formatText: KaboomCtx["formatText"] |
|
const makeCanvas: KaboomCtx["makeCanvas"] |
|
const debug: KaboomCtx["debug"] |
|
const plug: KaboomCtx["plug"] |
|
const screenshot: KaboomCtx["screenshot"] |
|
const download: KaboomCtx["download"] |
|
const downloadText: KaboomCtx["downloadText"] |
|
const downloadJSON: KaboomCtx["downloadJSON"] |
|
const downloadBlob: KaboomCtx["downloadBlob"] |
|
const record: KaboomCtx["record"] |
|
const addKaboom: KaboomCtx["addKaboom"] |
|
const ASCII_CHARS: KaboomCtx["ASCII_CHARS"] |
|
const LEFT: KaboomCtx["LEFT"] |
|
const RIGHT: KaboomCtx["RIGHT"] |
|
const UP: KaboomCtx["UP"] |
|
const DOWN: KaboomCtx["DOWN"] |
|
const RED: KaboomCtx["RED"] |
|
const GREEN: KaboomCtx["GREEN"] |
|
const BLUE: KaboomCtx["BLUE"] |
|
const YELLOW: KaboomCtx["YELLOW"] |
|
const MAGENTA: KaboomCtx["MAGENTA"] |
|
const CYAN: KaboomCtx["CYAN"] |
|
const WHITE: KaboomCtx["WHITE"] |
|
const BLACK: KaboomCtx["BLACK"] |
|
const canvas: KaboomCtx["canvas"] |
|
const quit: KaboomCtx["quit"] |
|
const KEvent: KaboomCtx["KEvent"] |
|
const KEventHandler: KaboomCtx["KEventHandler"] |
|
const KEventController: KaboomCtx["KEventController"] |
|
const VERSION: KaboomCtx["VERSION"] |
|
} |