Brought in screen manager, minor refactor.

This commit is contained in:
diego committed 2024-11-11 09:54:30 -05:00
1 parent 9130155999
commit 6f794b7bb2
21 files changed
+373 -170

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
package gamedata
type Coordinates struct {
X float64
Y float64
}
+16
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
}