public Tutorial(ContentManager content) { var welcome = new Welcome(); welcome.Show(); lang = new Text(); font = content.Load<SpriteFont>("font"); }
public SwitchGameState(GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, ContentManager Content) { lang = new Text(); cube = new Cube(); button = new ButtonSetUp(graphics, GraphicsDevice, Content); music = new Music(graphics, GraphicsDevice, Content); button.ClassicBound = new Rectangle((int)(GraphicsDevice.Viewport.Width / 1.32f), GraphicsDevice.Viewport.Height / 3, 60, 40); button.RockBound = new Rectangle((int)(GraphicsDevice.Viewport.Width / 1.55f), GraphicsDevice.Viewport.Height / 3, 50, 40); cube.Model = Content.Load<Model>("rubik"); text = Content.Load<SpriteFont>("font"); world = Matrix.CreateTranslation(new Vector3(0, 0, 0)); view = Matrix.CreateLookAt(new Vector3(20, 20, 20), new Vector3(0, 0, 0), Vector3.Up); projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45f), GraphicsDevice.Viewport.AspectRatio, 10f, 200f); }
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); }