Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package levels
|
||||
|
||||
import "github.com/inkyblackness/hacked/ss1/content/archive/level"
|
||||
|
||||
// MapPosition describes a specific two-dimensional point on the map.
|
||||
type MapPosition struct {
|
||||
X level.Coordinate
|
||||
Y level.Coordinate
|
||||
}
|
||||
|
||||
// Tile returns the tile position of the exact position.
|
||||
func (pos MapPosition) Tile() level.TilePosition {
|
||||
return level.TilePosition{X: pos.X.Tile(), Y: pos.Y.Tile()}
|
||||
}
|
||||
|
||||
// Fine returns the fine position of the exact position.
|
||||
func (pos MapPosition) Fine() level.FinePosition {
|
||||
return level.FinePosition{X: pos.X.Fine(), Y: pos.Y.Fine()}
|
||||
}
|
||||
Reference in New Issue
Block a user