I'd like to talk about the application bar for a bit. …In Window Store apps, the application bar is accessed by right-clicking with the mouse …button or swiping from the top or the bottom. …The application bar will hold commands that allow you to interact with the current page. …Commands on the left exist for just that page and commands on the right are global throughout …the entire app. …Since we've got our game set up now to work between a Start menu mode and a gaming mode, …it would be nice if we could switch back to the menu at anytime.…
The way that we do this is by building an application bar. …An application bar is a WinJS control. …Just like other WinJS controls we've seen, for example the Viewbox, we create a WinJS …control in the default.html. …The AppBar is located in WinJS.UI.AppBar and then we initialize commands using WinJS.UI.AppBarCommand. …Once we've setup our div tags in default.html, we simply need to handle the click events …of each command in our default.js.…
Let's go ahead and add an application bar now to our game. …
- Setting up your Visual Studio 2012 development environment
- Laying out the interface with Canvas
- Creating a game loop
- Adding a menu
- Supporting snapped, filled, and full-screen modes
- Working with the Touch API
- Playing music
- Creating a scoring and leveling system
- Working with the Application Bar
- Accessing the camera and accelerometer
- Debugging and deploying your application
Skill Level Intermediate
1. Getting Started
2. The Microsoft Web Platform
3. The Game Interface
4. The Game Engine
5. Screen Size Support
6. Touch Support
7. Music and Sound
8. Gaming Extras
9. Windows Features
10. Device Hardware
Using the accelerometer6m 59s
Next steps1m 29s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.