I am wondering why it says the distance has to be less than 27? Why less than 27? Where is 27 coming from?
问题 My teacher gave us this code to analyze and I am not sure why he put 27 there for collision.. I asked him he said if the distance between the player and the enemy is less than 27 then I will call it a collision, but I still don't understand, can someone please kindly explain it to me in simpler terms. I don't understand where the number 27 comes from.. when my dimensions are so big? import math import random import pygame # Intialize the pygame pygame.init() # create the screen screen =