LastMUD/internal/game/player.go

20 lines
356 B
Go
Raw Normal View History

2025-06-20 16:26:39 +03:00
package game
type Player struct {
GameObject
Name
Description
Position
Velocity
}
func CreatePlayer(name, description string, x, y int) *Player {
return &Player{
GameObject: CreateGameObject(),
Name: WithName(name),
Description: WithDescription(description),
Position: WithPosition(x, y),
Velocity: WithVelocity(0, 0),
}
}