summaryrefslogtreecommitdiff
path: root/objs
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-13 14:34:37 +0200
committerewy <ewy0@protonmail.com>2026-08-13 14:34:37 +0200
commite8bbe5a8001bcb51ed26d0f7733cb77621164e53 (patch)
tree9c3530cabc6859d95333309899cdc243c1a8828a /objs
parenta5ce1401312b97fd447d00656b250571c4db4880 (diff)
update paddle to use IsGameObject
Diffstat (limited to 'objs')
-rw-r--r--objs/paddle.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/objs/paddle.go b/objs/paddle.go
index e997ff9..843c301 100644
--- a/objs/paddle.go
+++ b/objs/paddle.go
@@ -15,12 +15,12 @@ func (p *Paddle) Process(ev input.Event) {
panic("implement me")
}
-func NewPaddle() *ecs.GameObject {
+func NewPaddle() ecs.IsGameObject {
p := &Paddle{
GameObject: &ecs.GameObject{
Position: sdl.FPoint{},
Children: nil,
},
}
- return p.GameObject
+ return p
}