nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: share/man: Update man for `nitpretty`
[nit.git]
/
examples
/
shoot
/
src
/
shoot.nit
diff --git
a/examples/shoot/src/shoot.nit
b/examples/shoot/src/shoot.nit
index
48cadaa
..
f897ae0
100644
(file)
--- a/
examples/shoot/src/shoot.nit
+++ b/
examples/shoot/src/shoot.nit
@@
-222,7
+222,7
@@
redef class PlayScene
end
end
return true
- else if input_event isa PointerEvent then
+ else if input_event isa PointerEvent and input_event.pressed then
var x = (input_event.x * app.scale).to_i
var y = (input_event.y * app.scale).to_i
player.goes_to(x, y, speed)