Prev | Current Page 1013 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


mouseButtonState Returns the pressed state of the last pressed button, where 1 is pressed and
0 is released.
MouseX Returns the current x coordinate of the mouse cursor.
MouseY Returns the current y coordinate of the mouse cursor.
mouseMoveX Returns the x coordinate distance travelled of the mouse cursor since the
last query.
mouseMoveY Returns the y coordinate distance travelled of the mouse cursor since the
last query.
Chapter 19: Multimedia with Neko
551
{
mainObject = new Collision();
}
public function new()
{
keys = new Array();
prevTime = 0;
curTime = 0;
var mng = new Manager( 200, 200, ???Collision Test???, false, ???ico.gif??? );
var batSrf : Surface = new Surface( ???bat.png??? );
bat = new Sprite( batSrf );
bat2 = new Sprite( batSrf );
batSrf.setKey( 255, 0, 255 );
bat.setFrame( new Rect(24, 63, 65, 44), 0, 0 );
bat.setFrame( new Rect(156, 63, 65, 44), 0, 1 );
bat.setFrame( new Rect(288, 63, 65, 44), 0, 2 );
bat.setFrame( new Rect(420, 63, 65, 44), 0, 3 );
bat2.setFrame( new Rect(24, 63, 65, 44), 0, 0 );
bat2.


Pages:
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025