diff --git a/.gitignore b/.gitignore index ffa2ea9..fc54264 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ primum.exe core.cdb.h jsc .DS_Store -primum.html \ No newline at end of file +primum.html +.vscode \ No newline at end of file diff --git a/scripts/engine.js b/scripts/engine.js index 71023b0..5d90d32 100644 --- a/scripts/engine.js +++ b/scripts/engine.js @@ -99,7 +99,6 @@ globalThis.global = globalThis; function use(file, env, script) { file = Resources.find_script(file); - console.info(`loading up ${file}`); var st = profile.now(); env ??= {}; diff --git a/scripts/entity.js b/scripts/entity.js index 42b303c..e8ce2ad 100644 --- a/scripts/entity.js +++ b/scripts/entity.js @@ -281,7 +281,7 @@ var gameobject = { } } - console.info(`Creating entity of type ${ent.ur}`); + console.spam(`Creating entity of type ${ent.ur}`); ent.warp_layer = [true]; ent.components = {}; @@ -543,12 +543,9 @@ var gameobject = { kill() { if (this.__kill) return; this.__kill = true; - console.info(`Killing entity of type ${this.ur}`); + console.spam(`Killing entity of type ${this.ur}`); - console.info(`killing ${this.timers.length} timers.`); this.timers.forEach(t => t()); - console.info(`now there are ${this.timers.length}`); - for (var i of this.timers) console.info(i); this.timers = []; Event.rm_obj(this); Player.do_uncontrol(this); diff --git a/source/engine/2dphysics.c b/source/engine/2dphysics.c index 5b1ac9f..67f327d 100644 --- a/source/engine/2dphysics.c +++ b/source/engine/2dphysics.c @@ -641,7 +641,6 @@ JSValue arb2js(cpArbiter *arb) void phys_run_post(cpSpace *space, JSValue *fn, JSValue *hit) { - YughInfo("Run post for %p", fn); JSValue hh = *hit; script_call_sym(*fn, 1, &hh); JS_FreeValue(js, hh); @@ -651,10 +650,10 @@ void phys_run_post(cpSpace *space, JSValue *fn, JSValue *hit) int script_phys_cb_begin(cpArbiter *arb, cpSpace *space, gameobject *go) { if (!arb_valid(arb)) return 1; - YughInfo("Adding begin callbacks for go %p", go); + YughSpam("Adding begin callbacks for go %p", go); if (!JS_IsUndefined(go->cbs.begin) && cpSpaceAddPostStepCallback(space, phys_run_post, &go->cbs.begin, &go->cbs.bhit)) { - YughInfo("Added begin for %p", &go->cbs.begin); + YughSpam("Added begin for %p", &go->cbs.begin); go->cbs.bhit = arb2js(arb); } diff --git a/source/engine/gameobject.c b/source/engine/gameobject.c index ba09f94..2175f1c 100644 --- a/source/engine/gameobject.c +++ b/source/engine/gameobject.c @@ -105,7 +105,7 @@ void go_shape_moi(cpBody *body, cpShape *shape, gameobject *go) { } void gameobject_apply(gameobject *go) { - YughInfo("Applying gameobject %p", go); + YughSpam("Applying gameobject %p", go); cpBodySetType(go->body, go->phys); cpBodyEachShape(go->body, go_shape_apply, go);