From 4f5ea15e469e04b8d3227086f63fc02fdc276676 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 3 May 2022 21:15:39 -0700 Subject: [PATCH] Spit and polish * New built-in wallpaper: "Dotted paper (dark)" is a dark-themed wallpaper. * New built-in palette: "Neon Bright" with bright colors for dark levels. * New cheat: "warp whistle" to automatically win the level. * In case the user has a VERY LARGE screen resolution bigger than the full bounds of a Bounded level, the Play Scene will cap the size and center the level canvas onto the window. This is preferable to being able to see beyond the level's boundaries and hitting an invisible wall in-game. * Make the titlescreen Lazy Scroll work on unbounded levels. It can't bounce off scroll boundaries but it will reverse course if it reaches the level's furthest limits. * Bugfix: characters' white eyes were transparent in-game. Multiple culprits from the `doodad convert` tool defaulting the chroma key to white, to the SDL2 textures considering white to be transparent. For the latter, the game offsets the color by -1 blue. --- dev-assets/doodads/box/box.js | 1 - dev-assets/doodads/gems/totem.js | 8 -------- dev-assets/doodads/snake/snake.js | 4 ---- 3 files changed, 13 deletions(-) diff --git a/dev-assets/doodads/box/box.js b/dev-assets/doodads/box/box.js index b78c83d..0ca950a 100644 --- a/dev-assets/doodads/box/box.js +++ b/dev-assets/doodads/box/box.js @@ -22,7 +22,6 @@ function main() { // Be sure to position them snug on top. // TODO: this might be a nice general solution in the // collision detector... - console.log("new box code"); e.Actor.MoveTo(Point( e.Actor.Position().X, Self.Position().Y - e.Actor.Hitbox().Y - e.Actor.Hitbox().H - 2, diff --git a/dev-assets/doodads/gems/totem.js b/dev-assets/doodads/gems/totem.js index b2e494f..3598f50 100644 --- a/dev-assets/doodads/gems/totem.js +++ b/dev-assets/doodads/gems/totem.js @@ -35,8 +35,6 @@ function main() { } } - console.log("Totem %s is linked to %d neighbors", Self.ID(), Object.keys(totems).length); - // Shimmer animation is just like the gemstones: first 4 frames // are the filled socket sprites. Self.AddAnimation("shimmer", 100, [0, 1, 2, 3, 0]); @@ -81,14 +79,10 @@ function tryPower() { return; } - console.log("Totem %s (%s) tries power", Self.ID(), Self.Filename); - // Can't if any of our linked totems aren't activated. try { for (let totemId of Object.keys(totems)) { - console.log("Totem %s (%s) sees linked totem %s", Self.ID(), Self.Filename, totemId); if (totems[totemId] === false) { - console.log("Can't, a linked totem not active!"); return; } } @@ -98,11 +92,9 @@ function tryPower() { // Can't if we aren't powered. if (activated === false) { - console.log("Can't, we are not active!"); return; } // Emit power! - console.log("POWER!"); Message.Publish("power", true); } \ No newline at end of file diff --git a/dev-assets/doodads/snake/snake.js b/dev-assets/doodads/snake/snake.js index e8b2aaf..952f742 100644 --- a/dev-assets/doodads/snake/snake.js +++ b/dev-assets/doodads/snake/snake.js @@ -66,15 +66,12 @@ function main() { } if (delta < watchRadius) { - console.log("Player is nearby snake! %d", delta); nearby = true; } // If we are idle and the player is jumping nearby... if (state == states.idle && nearby && Self.Grounded()) { if (playerPoint.Y - point.Y+(size.H/2) < 20) { - console.warn("Player is jumping near us!") - // Enter attack state. if (time.Since(jumpCooldownStart) > 500 * time.Millisecond) { state = states.attacking; @@ -88,7 +85,6 @@ function main() { // If we are attacking and gravity has claimed us back. if (state === states.attacking && Self.Grounded()) { - console.log("Landed again after jump!"); state = states.idle; jumpCooldownStart = time.Now(); Self.StopAnimation();