nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modelize_property: use resolve_mtype_unchecked during build_signature
[nit.git]
/
lib
/
scene2d.nit
diff --git
a/lib/scene2d.nit
b/lib/scene2d.nit
index
b01c3e5
..
aa567e8
100644
(file)
--- a/
lib/scene2d.nit
+++ b/
lib/scene2d.nit
@@
-48,9
+48,16
@@
class Sprite
# height of the sprite
var height: Int = 100 is writable
# height of the sprite
var height: Int = 100 is writable
+ # X coordinate of left side.
fun left: Int do return x - width/2
fun left: Int do return x - width/2
+
+ # X coordinate of right side.
fun right: Int do return x + width/2
fun right: Int do return x + width/2
+
+ # Y coordinate of top.
fun top: Int do return y - height/2
fun top: Int do return y - height/2
+
+ # Y coordinate of bottom.
fun bottom: Int do return y + height/2
# x velocity (applied by `update')
fun bottom: Int do return y + height/2
# x velocity (applied by `update')
@@
-102,10
+109,6
@@
class LiveGroup[E: LiveObject]
super LiveObject
super List[E]
super LiveObject
super List[E]
- init
- do
- end
-
# Recursively update each live objects that `exists'
redef fun update
do
# Recursively update each live objects that `exists'
redef fun update
do