summaryrefslogtreecommitdiff
path: root/objs/paddle.go
blob: fa7cea08d35256e1d3909c354b5413180f67c2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package objs

import (
	"github.com/Zyko0/go-sdl3/sdl"
	"ponger/ecs"
)

type Paddle struct {
	*ecs.GameObject
}

func NewPaddle() ecs.IsGameObject {
	p := &Paddle{
		GameObject: &ecs.GameObject{
			Position: sdl.FPoint{},
			Children: nil,
		},
	}
	return p
}