Beispiel #1
0
        protected override void Initialize()
        {
            // Create all Sprites objects
            renderContext = new RenderContext();
            scope = 0;
            _background = new Background("Background");
            _bird = new Bird("Bird", new Vector2(50, 350), 50, 79);
            _land = new Land("Land", 142, this.GraphicsDevice.Viewport.Height);
            _pipes = new PipeList("Pipe");
            _font = new Font("Font", scope.ToString(), new Vector2(50, 125));

            base.Initialize();
        }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     bird = GetComponent <Bird>();
 }