예제 #1
0
        public World()
        {
            _spVerdana = Game1.instance.Content.Load <SpriteFont>("Verdana");

            bowl = new FoodBowl(new Vector2(20, 20));
            cat  = new Cat(new Vector2(70, 170), bowl);
            cat2 = new Cat(new Vector2(420, 170), bowl);
            cat3 = new Cat(new Vector2(240, 60), bowl);
            cat4 = new Cat(new Vector2(240, 300), bowl);
        }
예제 #2
0
 public Cat(Vector2 position, FoodBowl b) : base(position)
 {
     state = new Sleeping(this);
     bowl  = b;
 }