Brought in screen manager, minor refactor.

This commit is contained in:
2024-11-11 09:54:30 -05:00
parent 9130155999
commit 6f794b7bb2
21 changed files with 373 additions and 170 deletions

6
gamedata/coordinates.go Normal file
View File

@@ -0,0 +1,6 @@
package gamedata
type Coordinates struct {
X float64
Y float64
}

16
gamedata/gameinfo.go Normal file
View File

@@ -0,0 +1,16 @@
package gamedata
type Area struct {
Width int
Height int
}
func (a *Area) Area() int {
return a.Height * a.Width
}
type GameInfo struct {
Name string
Version string
Dimensions Area
}