Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed May 27, 2024
1 parent 3e37217 commit e6ce180
Showing 1 changed file with 4 additions and 34 deletions.
38 changes: 4 additions & 34 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import {
DEF_FONT_FILTER,
DEF_FRAG,
DEF_HASH_GRID_SIZE,
DEF_JUMP_FORCE,
DEF_OFFSCREEN_DIS,
DEF_TEXT_CACHE_SIZE,
DEF_VERT,
FONT_ATLAS_HEIGHT,
Expand All @@ -35,7 +33,6 @@ import {
MAX_BATCHED_INDICES,
MAX_BATCHED_VERTS,
MAX_TEXT_CACHE_SIZE,
MAX_VEL,
SPRITE_ATLAS_HEIGHT,
SPRITE_ATLAS_WIDTH,
TEXT_STYLE_RE,
Expand Down Expand Up @@ -92,9 +89,7 @@ import easings from "./easings";
import TexPacker from "./texPacker";

import {
benchmark,
BinaryHeap,
comparePerf,
dataURLToArrayBuffer,
download,
downloadBlob,
Expand All @@ -113,23 +108,18 @@ import {
} from "./utils";

import type {
AgentComp,
AgentCompOpt,
Anchor,
AreaComp,
AsepriteData,
AudioPlay,
AudioPlayOpt,
BitmapFontData,
BodyComp,
BodyCompOpt,
BoomOpt,
CharTransform,
ColorComp,
Comp,
CompList,
Debug,
DoubleJumpComp,
DrawBezierOpt,
DrawCircleOpt,
DrawCurveOpt,
Expand All @@ -143,10 +133,7 @@ import type {
DrawTextureOpt,
DrawTriangleOpt,
DrawUVQuadOpt,
Edge,
EmptyComp,
FixedComp,
FollowComp,
FormattedChar,
FormattedText,
GameObj,
Expand All @@ -158,55 +145,35 @@ import type {
KaboomOpt,
KaboomPlugin,
Key,
LerpValue,
LevelComp,
LevelOpt,
LifespanCompOpt,
LoadBitmapFontOpt,
LoadFontOpt,
LoadSpriteOpt,
LoadSpriteSrc,
Mask,
MaskComp,
MouseButton,
MusicData,
NineSlice,
OffScreenComp,
OffScreenCompOpt,
OpacityComp,
Outline,
OutlineComp,
PathFindOpt,
PeditFile,
PolygonComp,
PolygonCompOpt,
PosComp,
Recording,
RectComp,
RectCompOpt,
RenderProps,
RotateComp,
ScaleComp,
SceneDef,
SceneName,
ShaderComp,
ShaderData,
SpriteAnims,
SpriteAtlasData,
StateComp,
StayComp,
Tag,
TexFilter,
TextAlign,
TileComp,
TileCompOpt,
TimerComp,
TimerController,
Uniform,
UVQuadComp,
Vec2Args,
Vertex,
ZComp,
} from "@/types";

import {
Expand Down Expand Up @@ -4891,7 +4858,10 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => {
});

if (gopt.debug !== false) {
app.onKeyPress(gopt.debugKey ?? "f1", () => debug.inspect = !debug.inspect);
app.onKeyPress(
gopt.debugKey ?? "f1",
() => debug.inspect = !debug.inspect,
);
app.onKeyPress("f2", () => debug.clearLog());
app.onKeyPress("f8", () => debug.paused = !debug.paused);
app.onKeyPress("f7", () => {
Expand Down

0 comments on commit e6ce180

Please sign in to comment.