public BackgroundObjects(int x, int y, float z, float scale, Texture2D texture, Core.AnimationStyle style, int depth = 0) { Z = z; Texture = texture; _aabb = new Rectangle(x, y + (int)(Texture.Height * scale), (int)(Texture.Width * scale), (int)(Texture.Height * scale)); Depth = depth; _animationStyle = style; if (style == Core.AnimationStyle.Cloud) { _tween = new Tween(1000000, x, x - 20000, EasingFunctions.Linear); } else if (style == Core.AnimationStyle.Tree) { _tween = new Tween(Core.R.Next(6000, 10000), -MathF.PI / 32, MathF.PI / 32, EasingFunctions.CubicInOut, true); } }
public ForegroundObjects(int x, int y, float z, float scale, Texture2D texture, Core.AnimationStyle style, int depth = 0) : base(x, y, z, scale, texture, style, depth) { }