Skip to content

Commit

Permalink
chore: version
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Dec 5, 2024
1 parent 8e9bb06 commit b89b97c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kaplay",
"description": "KAPLAY is a JavaScript & TypeScript game library that helps you make games fast and fun!",
"version": "4000.0.0-alpha.14",
"version": "4000.0.0-alpha.15",
"license": "MIT",
"homepage": "https://v4000.kaplayjs.com/",
"repository": {
Expand Down
22 changes: 12 additions & 10 deletions src/kaplay.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const VERSION = "3001.0.0";
// the definitive version! :bean:
const VERSION = "4000.0.0";

import { type ButtonsDef, initApp } from "./app";

Expand Down Expand Up @@ -262,10 +263,6 @@ import {
onCollideEnd,
onCollideUpdate,
onDestroy,
onUse,
onUnuse,
onTag,
onUntag,
onDraw,
onError,
onFixedUpdate,
Expand All @@ -277,7 +274,11 @@ import {
onLoading,
onResize,
onSceneLeave,
onTag,
onUntag,
onUnuse,
onUpdate,
onUse,
scene,
setCamPos,
setCamRot,
Expand Down Expand Up @@ -353,7 +354,8 @@ const kaplay = <
>(
gopt: KAPLAYOpt<TPlugins, TButtons> = {},
): TPlugins extends [undefined] ? KAPLAYCtx<TButtons, TButtonsName>
: KAPLAYCtx<TButtons, TButtonsName> & MergePlugins<TPlugins> => {
: KAPLAYCtx<TButtons, TButtonsName> & MergePlugins<TPlugins> =>
{
if (_k.k) {
console.warn(
"KAPLAY already initialized, you are calling kaplay() multiple times, it may lead bugs!",
Expand Down Expand Up @@ -985,7 +987,7 @@ const kaplay = <

// TODO: this should only run once
app.run(
() => { },
() => {},
() => {
frameStart();

Expand Down Expand Up @@ -1048,7 +1050,7 @@ const kaplay = <
// clear canvas
gl.clear(
gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT
| gl.STENCIL_BUFFER_BIT,
| gl.STENCIL_BUFFER_BIT,
);

// unbind everything
Expand Down Expand Up @@ -1484,7 +1486,7 @@ const kaplay = <
KEvent,
KEventHandler,
KEventController,
cancel: () => EVENT_CANCEL_SYMBOL
cancel: () => EVENT_CANCEL_SYMBOL,
};

_k.k = ctx;
Expand All @@ -1498,7 +1500,7 @@ const kaplay = <
// export everything to window if global is set
if (gopt.global !== false) {
for (const key in ctx) {
(<any>window[<any>key]) = ctx[key as keyof KAPLAYCtx];
(<any> window[<any> key]) = ctx[key as keyof KAPLAYCtx];
}
}

Expand Down

0 comments on commit b89b97c

Please sign in to comment.