예제 #1
0
 public bool update(GameTime gtime, Rectangle playerRect)
 {
     moves.update();
     area = new Rectangle((int)location.X, (int)location.Y, texture.Width, texture.Height);
     return(IntersectPixels(area, PoliceTextureData,
                            playerRect, HackerTextureData));
 }
예제 #2
0
파일: Sprite.cs 프로젝트: Azcryte/Untrusted
 public void update(GameTime gtime)
 {
     moves.update();
     area = new Rectangle((int)location.X, (int)location.Y, texture.Width, texture.Height);
 }