summaryrefslogtreecommitdiff
path: root/objs/paddle.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-13 13:59:25 +0200
committerewy <ewy0@protonmail.com>2026-08-13 14:03:36 +0200
commit06dd690345a02ad5f158138b2d6597220b716e38 (patch)
treed2ee623052dbbd215924f95c7d834988d891f89b /objs/paddle.go
parent83b6f3af3ff4195801c0973a10c1519958d4fe71 (diff)
add stuff
Diffstat (limited to 'objs/paddle.go')
-rw-r--r--objs/paddle.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/objs/paddle.go b/objs/paddle.go
new file mode 100644
index 0000000..e997ff9
--- /dev/null
+++ b/objs/paddle.go
@@ -0,0 +1,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
+}