Beispiel #1
0
 public Player Copy()
 {
     return(new Player(Hitbox.Copy(), new Vector2(Velocity.X, Velocity.Y), new Texture2D[] { Frames[0], Frames[1] }, Origin, count, Offset, Rotation));
 }
Beispiel #2
0
 public StaticEntity Copy()
 {
     return(new StaticEntity(Hitbox.Copy(), new Vector2(Velocity.X, Velocity.Y), Sprite, Origin, Offset));
 }
Beispiel #3
0
 public DynamicEntity Copy()
 {
     return(new DynamicEntity(Hitbox.Copy(), new Vector2(Velocity.X, Velocity.Y), Frames, Origin, count, Offset));
 }