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){
if (typeof script !== 'string') return undefined;
console.info(`spawning actor with script ${script}`);
var padawan = Object.create(actor);
use(script, padawan);

View file

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

View file

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

View file

@ -125,8 +125,6 @@ struct texture *texture_from_file(const char *path) {
sg_img_data.subimage[0][0] = (sg_range){.ptr = data, .size=tex->width*tex->height*4};
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;
mipw = tex->width;