Skip to main content

Game Physics

  • Chapter
  • 4105 Accesses

Abstract

In this chapter, we go into depth on how the character interacts with the game world. We can make a character move from left to right, but if we simply place the character in the level, he/she will only be able to walk on the bottom of the screen. This is not enough. We want the character to be able to jump on top of wall tiles, we want the character to fall down if he/she moves off a wall tile, and we do not want the character to fall off the edge of the screen. For these things, we need to implement a basic physics system. There are two aspects of physics: one is giving the character the ability to jump or fall, the other is handling collisions between the character and other game objects, and responding to these collisions. Both aspects will be dealt with in this chapter.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Egges, A., Fokker, J.D., Overmars, M.H. (2013). Game Physics. In: Learning C# by Programming Games. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-36580-5_27

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-36580-5_27

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-36579-9

  • Online ISBN: 978-3-642-36580-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics