Exemple #1
0
            public SampleScene(GameContainer container, FadeTransitionScene tscene)
            {
                Container       = container;
                TransitionScene = tscene;

                position = 10;
                Resource.AddSolidColorBrushResource("MainBrush", new RawColor4(1, 1, 1, 1));
                Resource.AddPngImageResource("Image", Container.ImagingFactory, @"D:\ingen\Desktop\saikoro_145.png");
                Resource.AddPngImageSprite("Saikoro", Container.ImagingFactory, @"D:\ingen\Desktop\saikoro_145.png");
                var atlas = Resource.AddSpriteAtlas("ImageAtlas", Resource.Get <ImageResource>("Image"));

                Resource.AddResource("Sprite", atlas.MakeSprite(new RawRectangle(100, 50, 200, 100)));


                SpriteBatch = new Framework.Sprite.SpriteBatch(container);

                System.Threading.Thread.Sleep(1000);
            }