Inheritance: Sprite
Beispiel #1
0
        private void GameSetup(Window window)
        {
            window.SetClearColor(0f, 0f, 1f);
            sprite001 = new Sprite(300, 300);
            sprite001.position = new Vector2(window.Width / 2 - 150, window.Height / 2 - 150);
            particleSystem001 = new ParticleSystem(10, 10, 100);
            particleSystem001.position = new Vector2(window.Width / 2, window.Height / 2);

            alienTexture = new Texture("Assets/2.png");
            alien = new Sprite(alienTexture.Width, alienTexture.Height);

            lineDrawer = new Segment(0, 0, window.Width, window.Height, 4);
        }