Beispiel #1
0
        //loading imagines
        private static void LoadImages()
        {
            // Backgrounds
            GameResources.NewImage("Menu", "main_page.jpg");
            GameResources.NewImage("Discovery", "discover.jpg");
            GameResources.NewImage("Deploy", "deploy.jpg");

            // Deployment
            GameResources.NewImage("LeftRightButton", "deploy_dir_button_horiz.png");
            GameResources.NewImage("UpDownButton", "deploy_dir_button_vert.png");
            GameResources.NewImage("SelectedShip", "deploy_button_hl.png");
            GameResources.NewImage("PlayButton", "deploy_play_button.png");
            GameResources.NewImage("RandomButton", "deploy_randomize_button.png");

            // Ships
            for (int i = 1; (i <= 5); i++)
            {
                GameResources.NewImage(("ShipLR" + i), ("ship_deploy_horiz_" + (i + ".png")));
                GameResources.NewImage(("ShipUD" + i), ("ship_deploy_vert_" + (i + ".png")));
            }

            // Explosions
            GameResources.NewImage("Explosion", "explosion.png");
            GameResources.NewImage("Splash", "splash.png");
            //hit markers
            GameResources.NewImage("HitMarker", "explosionStill.png");
            GameResources.NewImage("MissMarker", "splashStill.png");
        }