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
| collide = 4 # between [0 - Player_img_size] | |
| def collideWithPlayer(Player,enemy): | |
| """return: (bool) collide with Player or not """ | |
| p_pos = Player.getPos() # where the position is x y | |
| playr_x, playr_y = p_pos.x, p_pos.y | |
| playr_w, playr_h = Player.getSize() #where the size is w h | |
| for pos in self.pos: |