linter stuff

main
Sean Hickey 2023-03-12 23:04:57 -07:00
parent 06bd0cfd12
commit 2e0ac84163
2 changed files with 2 additions and 7 deletions

View File

@ -17,10 +17,9 @@ type PhysicalObject interface {
// 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 {
ctx context.Context
timeout time.Duration
controlledObject PhysicalObject
ctx context.Context
timeout time.Duration
}
func NewPlayer(ctx context.Context) *player {

View File

@ -39,14 +39,10 @@ func (s *spritesheet) Draw(
color rl.Color,
) error {
var err error
channels.RL.Do(func() {
origin := rl.Vector2{}
rl.DrawTexturePro(s.texture, section, placement, origin, angle, color)
})
if err != nil {
return err
}
return nil
}