Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -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()}
}