示例#1
0
        public void Initialize()
        {
            moveBlock = new MoveBlock(this, new Vector2(320, 640), 2.5f);
            text      = new Text("Hey", new Vector2(320, 640));
            Device.Camera.Initializa(Vector2.Zero);
            IsEndFlag = false;

            robot            = new Robot(this, map1, 5);
            characterManager = new CharacterManager();
            characterManager.Initialize();

            characterManager.Add(robot);
            characterManager.Add(moveBlock);
            player = new Player(this, map1);
            characterManager.Add(player);

            bullets = new List <Bullet>();

            map1.Initialize();
        }