public SwitchGameState(GraphicsDevice graphicsDevice, GraphicsDeviceManager graphics, ContentManager content) { //class initialize cube = new Cube(); lang = new Text(); camera = new Camera(); button = new ButtonSetUp(graphics, graphicsDevice, content) { ClassicBound = new Rectangle((int)(graphicsDevice.Viewport.Width / 1.32f), graphicsDevice.Viewport.Height / 3, 60, 40), RockBound = new Rectangle((int)(graphicsDevice.Viewport.Width / 1.55f), graphicsDevice.Viewport.Height / 3, 50, 40) }; cube.Model = content.Load<Model>("rubik"); //text font = content.Load<SpriteFont>("font"); //matrixes world = Matrix.CreateTranslation(new Vector3(0, 0, 0)); view = camera.View; projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45f), graphicsDevice.Viewport.AspectRatio, 10f, 200f); }
public SwitchGameState(GraphicsDevice graphicsDeviceFromMain, GraphicsDeviceManager graphics, ContentManager content, Music _music) { shouldRunStopper = true; shouldShowStopper = true; graphicsDevice = graphicsDeviceFromMain; allCubeColors = new List<string> { "white", "yellow", "green", "blue" }; //class initialize cube = new Cube(); lang = new Text(); camera = new Camera(); clocks = new Clocks(); solve = new SelfSolve(cube); music = _music; button = new ButtonSetUp(graphics, graphicsDevice, content) { ClassicBound = new Rectangle((int)(graphicsDevice.Viewport.Width / 1.32f), graphicsDevice.Viewport.Height / 3, 60, 40), RockBound = new Rectangle((int)(graphicsDevice.Viewport.Width / 1.55f), graphicsDevice.Viewport.Height / 3, 50, 40) }; cube.Model = content.Load<Model>("rubik"); //text font = content.Load<SpriteFont>("font"); //matrixes world = Matrix.CreateTranslation(new Vector3(0, 0, 0)); view = camera.View; projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45f), graphicsDevice.Viewport.AspectRatio, 10f, 200f); }