aboutsummaryrefslogtreecommitdiff
path: root/go/client/main.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-20 11:14:43 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-01-26 22:17:17 +0100
commita72f4331a052c3e01ee27fc2cb96c9c12fed1651 (patch)
tree6b5b68dd9da2af39df57b62f8f3b121860e314a8 /go/client/main.go
parentb0625b49ef265ca42df81fcea7fbbd6b4dbf8a5b (diff)
downloadmuhqs-game-a72f4331a052c3e01ee27fc2cb96c9c12fed1651.tar.gz
muhqs-game-a72f4331a052c3e01ee27fc2cb96c9c12fed1651.zip
reformat using gofmtp
Diffstat (limited to 'go/client/main.go')
-rw-r--r--go/client/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/client/main.go b/go/client/main.go
index ec8fff5e..13a07d0b 100644
--- a/go/client/main.go
+++ b/go/client/main.go
@@ -26,8 +26,7 @@ const (
HOVER_THRESHOLD = 60
)
-type HandLayer struct {
-}
+type HandLayer struct{}
func (l *HandLayer) Draw(screen *ebiten.Image) {
cardImg := assets.GetCard("base/archer", "en")
@@ -56,6 +55,7 @@ func (h *hoverDetector) update(x, y int) {
h.reset()
}
}
+
func (h *hoverDetector) reset() {
h.ticks = 0
if h.resetFunc != nil {