Example #1
0
        public void Main()
        {
            Form form = (Form)this;
            game = new Cipher(form, 800, 600);

            GameInitialize();

            while (true)
            {

            }
        }
Example #2
0
        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;
        }