Beispiel #1
0
        static void Main(string[] args)
        {
            manager = new EvolutionManager();

            var window = new CarWindow(new VideoMode(700, 700), manager);

            window.OnRender += Window_OnRender;
            window.Start();
        }
Beispiel #2
0
        public CarWindow(VideoMode mode, EvolutionManager manager)
        {
            this.manager = manager;
            window       = new RenderWindow(mode, "Cars");
            window.SetFramerateLimit(200);

            window.KeyPressed          += Window_KeyPressed;
            window.MouseButtonPressed  += Window_MouseButtonPressed;
            window.MouseButtonReleased += Window_MouseButtonReleased;
            window.MouseMoved          += Window_MouseMoved;
        }