stop to swallow

This commit is contained in:
ethan merchant 2024-11-26 00:13:08 -05:00
parent fc082d293b
commit b3dc63f154

View file

@ -168,6 +168,8 @@ static class Mono
return;
}
if (eaten_latch.delta != +1)
{
if (snake_len == snake.Length)
{
// win condition
@ -189,6 +191,7 @@ static class Mono
snake[i] = snake[i - 1];
}
snake[0] += snake_dir;
}
in_box.Step(box_space.InRange(snake[0]));
if (in_box.delta != 0) // 1 just in -1 just out