Reworked the directories to be a little more machine independent and make the hero snap to grid cells when moving, which improved collision handling.

This commit is contained in:
dalyjame
2019-08-06 20:49:31 -04:00
parent 0071e5af80
commit 2fc918a728
9 changed files with 149 additions and 30 deletions

View File

@@ -6,6 +6,7 @@ import fmon.stat._
import fmon.util.{Dice, IntFraction}
package object fmon {
type Direction = fmon.util.Direction.Val
implicit def rngDice(rng : Random) = new Dice(rng)
implicit def int2Helper(x : Int) = new IntFraction(x)