reimplement marble behavior, making it more consistent in different directions. Triggers no longer activate from blocked marbles, and bounces take the same amount of time to travel through a chain of marbles in all directions

This commit is contained in:
Crispy 2024-10-08 21:51:31 +02:00
parent 82d0ff0f37
commit ae4e84bb90
4 changed files with 167 additions and 100 deletions

View file

@ -118,10 +118,6 @@ impl Board {
sum
}
pub fn pos_in_bounds(&self, p: Pos) -> bool {
self.in_bounds(p)
}
fn in_bounds(&self, p: Pos) -> bool {
p.x >= 0 && p.y >= 0 && p.x < self.width as isize && p.y < self.height as isize
}