Coding4Fun: 10 .NET Programming Projects for Wiimote, YouTube, World of Warcraft, and More

Coding4Fun: 10 .NET Programming Projects for Wiimote, YouTube, World of Warcraft, and More

Dan Fernandez, Brian Peek

Language: English

Pages: 510

ISBN: B0028N4W5Q

Format: PDF / Kindle (mobi) / ePub


How would you like to build an Xbox game, use your Nintendo Wiimote to create an electronic whiteboard, or build your own peer-to-peer application? Coding4Fun helps you tackle some cool software and hardware projects using a range of languages and free Microsoft software. Now you can code for fun with C#, VB, ASP.NET, WPF, XNA Game Studio, Popfly, as well as the Lua programming language.

If you love to tinker, but don't have time to figure it all out, this book gives you clear, step-by-step instructions for building ten creative projects, including:

  • Alien Attack: Create a 2D clone of Space Invaders with XNA for the PC, Xbox 360, and Zune
  • LEGO Soldier: Create an action game using Popfly with a custom-built virtual LEGO character
  • World of Warcraft RSS Feed Reader: Use WoW's customizable interface to have feeds pop up while you're gaming
  • InnerTube: Download YouTube videos automatically and convert them to a file format for off-line viewing
  • PeerCast: Stream video files from any PC
  • TwitterVote: Create custom online polls on Twitter
  • WHSMail: Build a website with ASP.NET for Windows Home Server that lets you view the messages stored on a computer with Outlook
  • "Wiimote" Controlled Car: Steer your remote-controlled car by tilting the Wii Remote controller left and right
  • Wiimote Whiteboard: Create an interactive whiteboard using a Wii Remote
  • Holiday Lights: Synchronize your holiday light display with music to create your own light show

The perfect gift for any developer, Coding4Fun shows you how to use your programming skills in new and fun ways.

"This book is amazing! The scope is so wonderfully broad that anyone who has an interest in designing games at any level should read this book."

-- Alex Albrecht, Creator of Diggnation / Totally Rad Show / Project Lore

 

 

 

 

 

 

 

 

 

 

AlienAttackGame.AudioManager.PlayCue(AudioManager.Cue.PlayerShot); } // enumerate the player shots on the screen for(int i = 0; i < playerShots.Count; i++) { PlayerShot playerShot = playerShots[i]; playerShot.Update(gameTime); // if it's off the top of the screen, remove it from the list if(playerShot.Position.Y + playerShot.Height < 0) { playerShots.RemoveAt(i); playerShot = null; } } } Running the game at this point will allow you to fire shots up the screen. Scoring and lives

projector, obtaining very high-quality tracking without having to worry about blocking the camera. As mentioned before, if you do not have a projector, you can point the Wii remote at most flat displays and the tracking should still work, creating a tablet-PC-like display. Note If you are using this with a projector, this combination will actually allow you to transform most flat surfaces into an interactive whiteboard. This could be your wall, your table, your floor, your ceiling, or even

simulating, Putting It All Together KeyDown, Touch Calibration, Recording data KeyUp, Recording data L LEGO actors, Importing Actors importing, Importing Actors LEGO Digital Designer, Designing Custom Actors LEGO Lab actor, Designing the Second Half of Our Scene LEGO models, Designing Custom Actors, Exporting a LEGO Model, Exporting a LEGO Model, Upload Images to Popfly cropping out empty space, Exporting a LEGO Model designing, Designing Custom Actors exporting, Exporting

Player shots UpdatePolls, Voting Implementation UpdateSummary, How Feed Reader and Feed Grabber Work, Updating the summary UpdateVideoList, Receiving a video list UpdateVotes, Voting Implementation Uri (uniform resource identifier), Building Classes for YouTube Feeds and Videos, Twitter Implementation classes, Building Classes for YouTube Feeds and Videos converting into XML for Twitter, Twitter Implementation URLs (uniform resource locators), Standard YouTube Feeds YouTube, Standard

Name="MediaPlayer" LoadedBehavior="Manual" Margin="10,31,10,10" MinHeight="300" /> Adding the MainWindow.xaml Code Now that we've defined the appearance of our application, next we need to define the properties and events for MainWindow.xaml. MainWindow properties MainWindow defines two properties, as shown in Example 5-68 and Example 5-69: one for the NetworkManager class that we will use to send and receive data from P2PLib, and another for the FullScreen window that we'll

Download sample

Download