Example #1
0
        public void LoadLevel(ContentManager content, string cKite, string cWindMap, string cBackground)
        {
            /*windDirection.Position = new Vector2((float)Game.SCREEN_WIDTH - 75, 30);
             * windStrength.Position = new Vector2(50, 30);
             * windStrength.LoadFont(content, "Fonts\\Courier New");
             * windDirection.LoadFont(content, "Fonts\\Courier New");*/
            Sprite s = new Sprite();

            s.loadContent(content, cWindMap);
            colorMap = new ColorMap(s);

            background.LoadBackground(content, cBackground);

            kite = new Kite(new Vector2(background.Size.X / 2, (3 * background.Size.Y) / 4));
            kite.loadContent(content, cKite);
            windSock.init(content);
            indicator.init(content);

            InitLevel();
        }
Example #2
0
 public void Update(Kite kite)
 {
     position = kite.Position;
 }