Beispiel #1
0
        public override void Draw()
        {
            if (!IsAlive())
            {
                return;
            }

            reel1Rot += 0.5f;
            reel2Rot += 0.5f;

            if (reel1Rot >= 360f)
            {
                reel1Rot -= 360f;
            }
            if (reel2Rot >= 360f)
            {
                reel2Rot -= 360f;
            }

            reel1.RotateZ(reel1Rot);
            reel2.RotateZ(reel2Rot);

            Game1.AddQuad(ref back);

            cube.DrawSides();

            //Game1.AddQuad(ref reel2);

            Game1.AddQuad(ref reel1);
            Game1.AddQuad(ref reel2);

            cube.DrawTop();

            Game1.AddQuad(ref sticker);

            DrawCol(Editor.colorDebug);
        }
Beispiel #2
0
 public void SetRotation(float r, float r2 = 0.0f)
 {
     quad.RotateZ(r, r2);
 }