示例#1
0
        public override void Load()
        {
            paste = Pixmap.Create(16, 16, Color.Orange);

            Blitter.Begin(paste);

            Blitter.Rect(0, 0, 8, 8, Color.Blue);
            Blitter.Rect(8, 8, 8, 8, Color.Blue);

            Blitter.End();

            surface = new Sprite(Texture2D.Create(512, 512, Color.White));
            surface.SetOrigin(0, 0);
            surface.SetPosition(Engine.Canvas.Width / 2 - surface.Width / 2, Engine.Canvas.Height / 2 - surface.Height / 2);

            Input.OnKeyPress += Input_OnKeyPress;
        }