public GObject(GObject Obj) { m_ID = Obj.m_ID; m_Position = Obj.m_Position; m_Status = Obj.m_Status; m_Sprite = new GSprite(Obj.SPRITE); m_TotalFrame = Obj.m_TotalFrame; m_Origin = new Vector2(Obj.m_Origin.X, Obj.Origin.Y); }
public GObject(eGMyObject eObj, eGStatus estt, Vector2 position, GSprite sprite) { this.m_ID = eObj; this.STATUS = estt; this.POSITION = position; this.SPRITE = new GSprite(sprite); this.SIZE = new Point(SPRITE.Size.X, SPRITE.Size.Y); this.TOTALFRAME = sprite.TotalFrame; this.Time = new GTimer(); m_Origin = new Vector2(this.POSITION.X + SIZE.X / 2, this.POSITION.Y + SIZE.Y / 2); }
public GSquare(eGMyObject eObj, eGStatus eStt, Vector2 Pos, GSprite sprite) : base(eObj, eStt, Pos, sprite) { this.VELOC = new Vector2(1, 1); }