From 9af752349c40be745d1296d95675916f95977890 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 21 Apr 2024 23:16:57 +0100 Subject: fix placing things on the floor --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main.go') 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 -- cgit v1.2.1