Пример #1
0
        protected override void LoadContent()
        {
            this.spriteTexture = this.Game.Content.Load <Texture2D>("pacManSingle");

            this.Location = new Vector2(300, 300);
            this.Speed    = 100;
            base.LoadContent();
            this.Origin   = new Vector2(this.spriteTexture.Width / 2, this.spriteTexture.Height / 2);
            this.Scale    = 1;
            this.Pacstate = PacState.Stopped;
        }
Пример #2
0
 public Pacman()
 {
     _observers = new List <IPacmanObserver>();
     MyState    = PacState.Spawning;
 }
Пример #3
0
 public void Update(PacState p)
 {
     Console.WriteLine(string.Format("{0} has been updated pacman state is {1}", this, p));
 }
Пример #4
0
 public PacManEventArgs(PacState state)
 {
     this.State = state;
 }
Пример #5
0
 public Pacman()
 {
     MyState = PacState.Spawning;
 }