Ghosts turn left, not right!
This commit is contained in:
parent
422c702777
commit
ef78085e40
@ -1884,11 +1884,10 @@ const TILE_TYPES = {
|
|||||||
movement_speed: 4,
|
movement_speed: 4,
|
||||||
// TODO ignores /most/ walls. collision is basically completely different. has a regular inventory, except red key. good grief
|
// TODO ignores /most/ walls. collision is basically completely different. has a regular inventory, except red key. good grief
|
||||||
decide_movement(me, level) {
|
decide_movement(me, level) {
|
||||||
// turn right: preserve current direction; if that doesn't work, turn right, then left,
|
// turn left: preserve current direction; if that doesn't work, turn left, then right,
|
||||||
// then back the way we came
|
// then back the way we came (same as glider)
|
||||||
// (same as fireball)
|
|
||||||
let d = DIRECTIONS[me.direction];
|
let d = DIRECTIONS[me.direction];
|
||||||
return [me.direction, d.right, d.left, d.opposite];
|
return [me.direction, d.left, d.right, d.opposite];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
floor_mimic: {
|
floor_mimic: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user