Created
          August 22, 2018 02:27 
        
      - 
      
- 
        Save fabito/2ff4a37cc705db5f5b532c484e44ac2a to your computer and use it in GitHub Desktop. 
    neyboy game - tap methods
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | async def tap_left(self, delay=0): | |
| x = self.x + self.width // 4 | |
| y = self.y + self.height // 3 | |
| await self.page.mouse.click(x, y, {'delay': delay}) | |
| async def tap_right(self, delay=0): | |
| x = (self.x + self.width) - self.width // 4 | |
| y = self.y + self.height // 3 | |
| await self.page.mouse.click(x, y, {'delay': delay}) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment