-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathkontra.js
91 lines (91 loc) · 1.97 KB
/
kontra.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export { default as Animation, AnimationClass } from './animation.js';
export {
imageAssets,
audioAssets,
dataAssets,
setImagePath,
setAudioPath,
setDataPath,
loadImage,
loadAudio,
loadData,
load
} from './assets.js';
export { default as Button, ButtonClass } from './button.js';
export { init, getCanvas, getContext } from './core.js';
export { on, off, emit } from './events.js';
export { default as GameLoop } from './gameLoop.js';
export {
default as GameObject,
GameObjectClass
} from './gameObject.js';
export {
gamepadMap,
updateGamepad,
initGamepad,
onGamepad,
offGamepad,
gamepadPressed,
gamepadAxis
} from './gamepad.js';
export {
gestureMap,
initGesture,
onGesture,
offGesture
} from './gesture.js';
export { default as Grid, GridClass } from './grid.js';
export {
degToRad,
radToDeg,
angleToTarget,
rotatePoint,
movePoint,
lerp,
inverseLerp,
clamp,
setStoreItem,
getStoreItem,
collides,
getWorldRect,
depthSort
} from './helpers.js';
export { initInput, onInput, offInput } from './input.js';
export {
keyMap,
initKeys,
onKey,
offKey,
keyPressed
} from './keyboard.js';
export {
registerPlugin,
unregisterPlugin,
extendObject
} from './plugin.js';
export {
initPointer,
getPointer,
track,
untrack,
pointerOver,
onPointer,
offPointer,
pointerPressed
} from './pointer.js';
export { default as Pool, PoolClass } from './pool.js';
export { default as Quadtree, QuadtreeClass } from './quadtree.js';
export { rand, randInt, getSeed, seedRand } from './random.js';
export { default as Scene, SceneClass } from './scene.js';
export { default as Sprite, SpriteClass } from './sprite.js';
export {
default as SpriteSheet,
SpriteSheetClass
} from './spriteSheet.js';
export { default as Text, TextClass } from './text.js';
export {
default as TileEngine,
TileEngineClass
} from './tileEngine.js';
export { default as Vector, VectorClass } from './vector.js';
export { default } from './kontra.defaults.js';