public SpriteEditor(Project project)
{
InitializeComponent();
this.project = project;
snap = true;
spriteWidth = spriteHeight = 32;
textWidth.Text = textHeight.Text = "32";
InitSprite(32, 32);
timer = new Timer();
timer.Interval = 17;
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}