Пример #1
0
        public void init(CharacterEnum alienType = CharacterEnum.crab)
        {
            int xCordinate = GameSpecs.ScreenWidth / 2;
            int yCordinate = GameSpecs.ScreenHeight / 2;

            states = RectFactory.GetRects(alienType);
            sprite = SpriteFactory.GetSprite(states[0], xCordinate, yCordinate);
            Debug.Assert(sprite != null);
        }
Пример #2
0
 public virtual void Init(CharacterEnum alienType = CharacterEnum.crab, int xCordinate = 100, int yCordinate = 50)
 {
     states = RectFactory.GetRects(alienType);
     sprite = SpriteFactory.GetSprite(states[0], xCordinate, yCordinate);
     Debug.Assert(sprite != null);
 }