Пример #1
0
 public ActorPart(GeomCloneGame theGame, string theTexture, Vector2 thePosition, float theRotation, Vector2 setDisplacement,
                  float setRotationOffset, float scaleX, float scaleY, Color color)
     : base(theGame, theTexture, thePosition, theRotation, scaleX, scaleY, color)
 {
     displacement   = setDisplacement;
     rotationOffset = setRotationOffset;
     UpdatePositionAndRotation(thePosition, theRotation);
     Color = new Color(color, (byte)160);
 }
Пример #2
0
 public ActorPart(GeomCloneGame theGame, string theTexture, Vector2 thePosition, float theRotation, Vector2 setDisplacement,
     float setRotationOffset, float scaleX, float scaleY, Color color)
     : base(theGame, theTexture, thePosition, theRotation, scaleX, scaleY, color)
 {
     displacement = setDisplacement;
     rotationOffset = setRotationOffset;
     UpdatePositionAndRotation(thePosition, theRotation);
     Color = new Color(color, (byte)160);
 }