Brought in screen manager, minor refactor.
This commit is contained in:
6
gamedata/coordinates.go
Normal file
6
gamedata/coordinates.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package gamedata
|
||||
|
||||
type Coordinates struct {
|
||||
X float64
|
||||
Y float64
|
||||
}
|
||||
16
gamedata/gameinfo.go
Normal file
16
gamedata/gameinfo.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user