Skip to main content

A Three-Layer Software Structure for Games: A Game PongStruTwo

  • Chapter
  • First Online:
Learning Java with Games
  • 1791 Accesses

Abstract

The extensions of the game Pong explore a fact that the number of sprites and their behaviors, as well as the complexity of the game could be dynamically changed during the game in execution. For example, the game Pong7 asks for two bouncing balls. What if a game asks for adding 10 or 100 sprites? We not only need new techniques but also require a stable software structure for accommodating these changes. Based on the inheritance, abstract class, abstract method, and polymorphism of OOP, a three-layer software structure is constructed as a template for developing video games in order to handle such requirements.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 69.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

Institutional subscriptions

Notes

  1. 1.

    [Meyer, B., 1998] Bertrand Meyer, “Object Oriented software Construction”, Prentice Hall, 1998.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Xu, Cw. (2018). A Three-Layer Software Structure for Games: A Game PongStruTwo. In: Learning Java with Games. Springer, Cham. https://doi.org/10.1007/978-3-319-72886-5_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-72886-5_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-72885-8

  • Online ISBN: 978-3-319-72886-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics