✨ Interactable object!
This commit is contained in:
@@ -3,6 +3,7 @@ package tiles
|
||||
import (
|
||||
"git.solsynth.dev/highland/codingland/pkg/internal/land"
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
"log"
|
||||
)
|
||||
|
||||
type Tile struct {
|
||||
@@ -38,3 +39,7 @@ func (p *Tile) GetSize() land.Vector2D {
|
||||
|
||||
func (p *Tile) OnCollide(other land.CollidableObject) {
|
||||
}
|
||||
|
||||
func (p *Tile) OnClick(mousePos land.Vector2D) {
|
||||
log.Printf("user clicked tile: %s", mousePos.String())
|
||||
}
|
||||
|
Reference in New Issue
Block a user