remove unneede info logging

This commit is contained in:
John Alanbrook 2024-07-01 10:59:31 -05:00
parent 829b6386da
commit f7fdae024d
5 changed files with 1 additions and 7 deletions

View file

@ -2,7 +2,6 @@ var actor = {};
actor.spawn = function(script, config, callback){ actor.spawn = function(script, config, callback){
if (typeof script !== 'string') return undefined; if (typeof script !== 'string') return undefined;
console.info(`spawning actor with script ${script}`);
var padawan = Object.create(actor); var padawan = Object.create(actor);
use(script, padawan); use(script, padawan);

View file

@ -182,13 +182,11 @@ SpriteAnim.make = function(path) {
return animcache[path]; return animcache[path];
}; };
SpriteAnim.gif = function(path) { SpriteAnim.gif = function(path) {
console.info(`making an anim from ${path}`);
var anim = {}; var anim = {};
anim.frames = []; anim.frames = [];
anim.path = path; anim.path = path;
var tex = game.texture(path); var tex = game.texture(path);
var frames = tex.frames; var frames = tex.frames;
console.info(`frames are ${frames}`);
if (frames === 1) return undefined; if (frames === 1) return undefined;
var yslice = 1/frames; var yslice = 1/frames;
for (var f = 0; f < frames; f++) { for (var f = 0; f < frames; f++) {
@ -207,7 +205,6 @@ SpriteAnim.gif = function(path) {
anim.frames[i].time = times[i]/1000; anim.frames[i].time = times[i]/1000;
anim.loop = true; anim.loop = true;
var dim = [tex.width,tex.height]; var dim = [tex.width,tex.height];
console.info(`dimensions are ${dim}`);
dim.y /= frames; dim.y /= frames;
anim.dim = dim; anim.dim = dim;
return {0:anim}; return {0:anim};

View file

@ -727,6 +727,7 @@ game.loadurs = function() {
} }
} }
return;
for (var file of io.glob("**.json").filter(f => !ur[f.name()])) { for (var file of io.glob("**.json").filter(f => !ur[f.name()])) {
if (file[0] === '.' || file[0] === '_') continue; if (file[0] === '.' || file[0] === '_') continue;
var newur = ur_from_file(file); var newur = ur_from_file(file);

View file

@ -2304,7 +2304,6 @@ JSC_CCALL(os_make_seg2d,
JSC_SCALL(os_make_texture, JSC_SCALL(os_make_texture,
ret = texture2js(texture_from_file(str)); ret = texture2js(texture_from_file(str));
YughInfo("Made texture with %s", str);
JS_SetPropertyStr(js, ret, "path", JS_DupValue(js,argv[0])); JS_SetPropertyStr(js, ret, "path", JS_DupValue(js,argv[0]));
) )

View file

@ -126,8 +126,6 @@ struct texture *texture_from_file(const char *path) {
int mips = mip_levels(tex->width, tex->height)+1; int mips = mip_levels(tex->width, tex->height)+1;
YughInfo("Has %d mip levels, from wxh %dx%d, pow2 is %ux%u.", mips, tex->width, tex->height,nw,nh);
int mipw, miph; int mipw, miph;
mipw = tex->width; mipw = tex->width;
miph = tex->height; miph = tex->height;