예제 #1
0
    /// <summary>
    /// Main entry point into the system.
    /// </summary>
    public static void Main(string[] args)
    {
        // Set up Gtk
        Application.Init();

        // Load in the tileset
        // Create the demo
        ViewerEntry demo = new ViewerEntry();

        Viewer.TilesetFactory.Load(new FileInfo(args[0]));

        // Load the sprite
        IDrawable      drawable = Viewer.TilesetFactory.Create(args[1]);
        DrawableSprite sprite   = new DrawableSprite(drawable);

        sprite.Height = sprite.Width = 64;
        sprite.X      = sprite.Y = 10;
        sprite.Randomize();
        Viewer.Sprites.Add(sprite);
        Viewer.Sprite = sprite;

        // Start everything running
        demo.ShowAll();
        Application.Run();
    }
예제 #2
0
    /// <summary>
    /// Main entry point into the system.
    /// </summary>
    public static void Main(string[] args)
    {
        // Set up Gtk
        Application.Init();

        // Load in the tileset
        // Create the demo
        ViewerEntry demo = new ViewerEntry();
        Viewer.TilesetFactory.Load(new FileInfo(args[0]));

        // Load the sprite
        IDrawable drawable = Viewer.TilesetFactory.Create(args[1]);
        DrawableSprite sprite = new DrawableSprite(drawable);
        sprite.Height = sprite.Width = 64;
        sprite.X = sprite.Y = 10;
        sprite.Randomize();
        Viewer.Sprites.Add(sprite);
        Viewer.Sprite = sprite;

        // Start everything running
        demo.ShowAll();
        Application.Run();
    }