summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-04-21 23:16:57 +0100
committerdavidovski <david@davidovski.xyz>2024-04-21 23:16:57 +0100
commit9af752349c40be745d1296d95675916f95977890 (patch)
tree326f087188c7885c0c070f656d21483a30f20680 /main.go
parentcffac12303402c3bfd2d7eb8ab982bdaa86bd72d (diff)
fix placing things on the floor
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.go b/main.go
index 2153470..5399cde 100644
--- a/main.go
+++ b/main.go
@@ -264,12 +264,10 @@ func (g *Game) Draw(screen *ebiten.Image) {
}
}
- cx, cy := ebiten.CursorPosition()
-
shop := &ebiten.DrawRectShaderOptions{}
shop.Uniforms = map[string]any{
"Time": float32(g.time) / 60,
- "Cursor": []float32{float32(cx), float32(cy)},
+ "NoiseOffset": float32(g.time) / 60,
}
shop.Images[0] = g.surface
shop.Images[1] = g.surface