예제 #1
0
 public static void LoadContent(ContentManager content)
 {
     ship = new CollisionTexture(content, "Ship");
     bullet = new CollisionTexture(content, "Bullet");
     star = content.Load<Texture2D>("Star");
     enemy = new CollisionTexture(content, "Enemy");
     gun = content.Load<Texture2D>("Gun");
     mine = new CollisionTexture(content, "Star");
 }
예제 #2
0
 public Collidable(CollisionTexture texture, Vector2 position, Color color, float rotation, Vector2 origin, float depth)
     : base(texture.Texture, position, color, rotation, origin, depth)
 {
     this.texture = texture;
 }