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:
parent
82d0ff0f37
commit
ae4e84bb90
4 changed files with 167 additions and 100 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue