14 lines
357 B
Go
14 lines
357 B
Go
package game
|
|
|
|
// player represents a collection of stuff controlled by the user's input.
|
|
// It contains the camera used to view the world,
|
|
// the viewport for the part of the screen to draw to (splitscreen support),
|
|
// as well as the entity the player is currently controlling.
|
|
type player struct {
|
|
}
|
|
|
|
func NewPlayer() *player {
|
|
p := player{}
|
|
return &p
|
|
}
|