when type a api followed by (, the parameters will aotu show, but the 'new' function did not show it's parameters. I always have to return to the doc to look up.
@alexzheng, my BhEventShield code (described in this blog post) has a dispatch event method that can be used to automate a game. You don't have to use the event recording part, you can just use:
It's naturally a bit slower than the native event dispatch but it's perfectly adequate for testing or programming game demos. I've build an automated test suite with it and it works rather well.
@bowerandy thanks. BTW, my idea comes from the finger images your posted,with these two nice images, I can make an auto played help scence by dispatch mouse events from code.
But my current implementation is a little dull, I just dispatch mouse events using the finger sprite.
Comments
is it possible to add tapCount to touch event?
https://sites.google.com/site/xraystudiogame
With that feature, we can operate the game by code.
https://sites.google.com/site/xraystudiogame
best regards
Likes: alexzheng
That's greate, thanks.
But the this blog post link seems not a link.
https://sites.google.com/site/xraystudiogame
thanks.
BTW, my idea comes from the finger images your posted,with these two nice images, I can make an auto played help scence by dispatch mouse events from code.
But my current implementation is a little dull, I just dispatch mouse events using the finger sprite.
https://sites.google.com/site/xraystudiogame
Your libraries are all awesome.
Do you have a skype accout, I have found some bug.
https://sites.google.com/site/xraystudiogame