Esempio n. 1
0
 @Override
 public boolean wyTouchesBegan(MotionEvent event) {
   WYPoint loc = Director.getInstance().convertToGL(event.getX(), event.getY());
   emitter.setPosition(loc.x, loc.y);
   return true;
 }
Esempio n. 2
0
 private void setEmitterPosition() {
   WYSize s = Director.getInstance().getWindowSize();
   emitter.setPosition(s.width / 2, s.height / 2);
 }