From a125a1475d71e7d14e335ef1d5f915f402d917b7 Mon Sep 17 00:00:00 2001 From: Juliana Sims Date: Sat, 25 May 2024 16:44:28 -0400 Subject: [PATCH] Increase default bomb countdown Because of how the countdown works, the fuse was one tick shorter than intended; this should fix that and allow players to push a lit bomb exactly once before having to retreat --- modules/game/actors.scm | 2 +- modules/game/levels/rat-1.tmx | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/game/actors.scm b/modules/game/actors.scm index 49c0022..d5a46e6 100644 --- a/modules/game/actors.scm +++ b/modules/game/actors.scm @@ -357,7 +357,7 @@ (define alive? (spawn ^cell #t)) (define countdown (spawn ^cell -1)) (define pushed? (spawn ^cell)) - (define* (light-fuse #:optional (time 2)) + (define* (light-fuse #:optional (time 3)) ($ countdown time)) (match-lambda* (('type) 'bomb) diff --git a/modules/game/levels/rat-1.tmx b/modules/game/levels/rat-1.tmx index ebcecef..466df58 100644 --- a/modules/game/levels/rat-1.tmx +++ b/modules/game/levels/rat-1.tmx @@ -16,7 +16,7 @@ 83,128,82,84,92,85,24,24,24,24,24,24,20,24,24,24,24,107,83,83, 24,24,24,86,89,105,24,24,24,87,103,102,103,102,103,88,24,24,24,24, 24,18,24,86,150,101,88,24,87,104,191,151,130,109,189,85,24,19,24,24, -24,24,24,106,91,110,85,24,24,130,209,130,110,131,89,105,24,24,24,24, +24,24,24,106,91,110,85,24,106,130,209,130,110,131,89,105,24,24,24,24, 102,102,102,104,169,189,85,24,86,150,151,149,171,151,190,101,103,103,103,103 @@ -33,15 +33,10 @@ - - - - - - - + +