We've now got a functional game with a game loop, we're rendering balloons to the screen, …and we can have lots of fun popping balloons both with touch and mouse and getting some …pleasing sound effects when we pop those balloons. …But what fun is a game if we can't keep score? …So now we're going to go ahead and add a scoring system as well as allowing our players to …advance in levels. …So the first thing we're going to do is add a new sound called newlevel. …Newlevel is a sound I've created, so that when we reach a new level it will play.…
This is located in our exercise files and now we need to tell SoundJS to go ahead and …call newlevel. …I'm going to do that inside of default.js. …We're going to scroll down into initialize where we've had our original addBatch, and …we're going to add newlevel. …So just like we had with explosion, we're now telling newlevel to be the key for the …sound newlevel.wav.…
Next we need to create a new function called updateScore. …UpdateScore will increase the score when players are hitting balloons. …
- 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
Visual Studio 2010 Essential Trainingwith Walt Ritscher8h 8m 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.