Ejemplo n.º 1
0
        public override Scene Initialize()
        {
            scene.Camera.SetViewFromViewport();
            //GameLog.DebugLog.Log("start");

            BaseSprite background = new BaseSprite();
            background.setTexture("background.png");
            //background.Quad.S = new Vector2(128,128);

            player = new PlayerEntity();

            scoreLabel = WriteString.DrawSprite(scoreText + score, 720, 450, 50, new ImageColor(255,255,255,255)); //new TextLabel(scoreText + 0);

            //enemyArray[0] = new FireEnemyEntity();
            //enemyArray[1] = new WaterEnemyEntity();
            //enemyArray[2] = new GrandEnemyEntity();
            //enemyArray[3] = new WoodEnemyEntity();

            scene.AddChild(background);
            scene.AddChild(player);
            //Console.WriteLine(scoreLabel);
            scene.AddChild(scoreLabel);

            return scene;
        }
Ejemplo n.º 2
0
 public BaseSprite(BaseSprite bs)
 {
     this.TextureInfo = bs.TextureInfo;
 }