some refinement

This commit is contained in:
2025-09-05 22:18:36 -04:00
parent 4e6d720a91
commit 8e7db331a7
16 changed files with 371 additions and 119 deletions

View File

@@ -2,6 +2,7 @@ package mouse
import (
"git.vezzani.net/ben/games/common/elements/v1"
"git.vezzani.net/ben/games/common/geo"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/inpututil"
)
@@ -24,8 +25,8 @@ type State struct {
Clicked bool
}
func (s *State) Point() elements.Point {
return elements.Point{
func (s *State) Point() geo.Point {
return geo.Point{
X: s.X,
Y: s.Y,
}