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

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

type Paddle struct {
	*ecs.GameObject
}

func (p *Paddle) Process(ev input.Event) {
	//TODO implement me
	panic("implement me")
}

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