O'Reilly logo

Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 22. The Physics of Gravity

What You’ll Learn in This Hour:

Simulating gravity

Escape velocity

Calculating “gravity”

The Gravity Demo

This hour digs into some trigonometry again in order to explore the fascinating subject of game physics. Although the overall topic is broad, we will focus solely on the calculations for computing the effect of gravity on two massive objects. This hour, along with the preceding one, is developing code and concepts that will be used in sample game that will be completed by Hour 24. The gameplay will involve simulating the construction of a Hawking radiation reactor. The theory proposed by Stephen Hawking states that black holes emit a small amount of radiation from the poles of a black hole. The game ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required