Join Walt Ritscher for an in-depth discussion in this video Clone the exercise files from GitHub, part of Create Universal Windows Apps for Xbox One: Enhance Your First App.
- [Instructor] During this course I'll show code examples in most of the videos. I'll host the sample code on GitHub. That means, if you want to follow along, you'll need to clone my repo on your computer. If you're new to Git, or GitHub, I recommend you watch some of our source control courses on our website. Since this course uses Visual Studio, I suggest you also watch this source control course, protecting your code base with source control providers. Look at this chapter, the Visual Studio and Git chapter, it has lots of examples of using Git and GitHub innovation in Visual Studio.
Don't worry if you don't have time right now to explore those courses, I'll show you the basics of cloning the GitHub repo in this video. If you're a Git veteran, you can skip the rest of this intro movie. First stop on the tour is to go find my public repo on GitHub, that's on github.com/waltritscher. This list, popular repositories, if you don't see it here click on the repositories link here at the top of the page and then look for the XBox02 link.
Now you want to go over to the clone or download button and then click on this copy to clipboard button. Now that you've copied the URL to your clipboard, it's time to look at how to clone the remote repo to your local computer. Today I'm looking at how to do that from within Visual Studio. There are other approaches you can take, like using the Git command line or using other third party tools. In Visual Studio open team explorer by clicking on the team explorer tab. If you don't see that tab, you can also open it by going to your view menu and choosing team explorer.
Next step is to click on the connection button. Now you'll see at the bottom of the screen all your local Git repositories. I don't have a local Git repository for the Xbox course, so it's not showing up here. That means I need to click on this clone hyperlink and then paste in the URL here. When I paste in the URL, Visual Studio suggests this location for the new repo. This is in the default location for repos on my computer which, as you can see, is in the users folder and then in my folder which has my initials on it, WR, and then the path to the repos folder.
And then it's suggesting a new folder called XBox02, and it's getting that from the name of this Git repo. This looks good so I'll leave this checked, recursively clone submodule, and click the clone button. Now I'll come down here and right-click on this and choose open in file explorer. And you can see that in my repos folder is now a new folder that contains my SLN file, and this is what I'll open in Visual Studio. The way I'll do that is I'll switch back to Visual Studio and I'll go to the solution explorer, then back to file explorer, and I'll just drag the solution over and drop it in the solution explorer.
That's one of the many ways you can open a solution in Visual Studio. The other one, of course, is to just go up here and do File, Open, and go out to your repos folder and find that folder and open it from there. At this point I've loaded the solution and I've got the project veil, but it's called Art Center two. The next step, which I'll show you in the next video, is how to switch to the different branches for each demo.
- Configuring the deploy and debug settings
- Understanding the controllers
- Using the KeyUp event with controller buttons
- Understanding XY focus navigation
- Choosing a good initial focus
- Understanding Xbox UI scaling
- Working with sounds