diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-20 11:14:43 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-26 22:17:17 +0100 |
| commit | a72f4331a052c3e01ee27fc2cb96c9c12fed1651 (patch) | |
| tree | 6b5b68dd9da2af39df57b62f8f3b121860e314a8 /go/client/main.go | |
| parent | b0625b49ef265ca42df81fcea7fbbd6b4dbf8a5b (diff) | |
| download | muhqs-game-a72f4331a052c3e01ee27fc2cb96c9c12fed1651.tar.gz muhqs-game-a72f4331a052c3e01ee27fc2cb96c9c12fed1651.zip | |
reformat using gofmtp
Diffstat (limited to 'go/client/main.go')
| -rw-r--r-- | go/client/main.go | 4 |
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 { |
