Browse Source

fixed the pathing and rules for the pawns.

master
SilverEmber 4 years ago
parent
commit
6ec4e686b6
  1. 6
      src/apr.rs

6
src/apr.rs

@ -54,16 +54,16 @@ impl Apr {
// white side pawns
actors.push(actor::Actor::new(_ctx, "/pawn.png", i, 1, 0));
behaviours.push(behaviour::Behaviour::new(
vec![(-1, -1), (1, -1)],
vec![(1, -1)],
vec![(1, 1)],
vec![(1, -1), (-1, -1)],
));
}
for i in 0..r {
// black side pawns
actors.push(actor::Actor::new(_ctx, "/pawn2.png", i, c - 2, 0));
behaviours.push(behaviour::Behaviour::new(
vec![(1, 1), (-1, 1)],
vec![(1, 1)],
vec![(1, 1), (-1, 1)],
));
}
Ok(Apr {

Loading…
Cancel
Save