示例#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;
 }