Skip to content

Commit

Permalink
扩大点击范围
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieChan1993 committed Jun 16, 2023
1 parent 0090938 commit c7cc910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/words.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (this_ *Words) In(currentX, currentY float64) bool {
wordX := this_.X + width
wordY := this_.Y + width

if !(currentX >= this_.X-width && currentX <= wordX) {
if !(currentX >= this_.X-width-22 && currentX <= wordX) {
return false
}
if !(currentY >= this_.Y-width && currentY <= wordY) {
Expand Down

0 comments on commit c7cc910

Please sign in to comment.