Abstract
Besides the GUI screen, usually a game requires other multiple screens, such as, splash screen, setting screen, instruction screen, and the like. How to organize these multiple screens such that only one of them will be visible at a time? This chapter extends the game Pong with an additional splash screen for demonstrating the suitability of the CardLayout manager for that purpose. In addition, the game Pong is further extended with more features, such as, increasing the number of bouncing balls with different animation speeds, changing the objective of the game from bouncing balls to catching balls, in order to explore the significance of the word “extension”.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Xu, Cw. (2018). Multiple Screens: An Extension of the Game Pong. In: Learning Java with Games. Springer, Cham. https://doi.org/10.1007/978-3-319-72886-5_14
Download citation
DOI: https://doi.org/10.1007/978-3-319-72886-5_14
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)