public void Main() { Form form = (Form)this; game = new Cipher(form, 800, 600); GameInitialize(); while (true) { } }
public Sprite(ref Cipher cipher) { game = cipher; position = new PointF(0, 0); velocity = new PointF(0, 0); mSize = new Size(0, 0); bitmap = null; alive = true; colums = 1; totalFrames = 1; currentFrame = 0; animateDirection = AnimateDir.Forward; animateWrap = AnimateWrap.Wrap; lastTime = 0; animationRate = 30; }