Summary

In this chapter we have not only looked at how to use the mouse and keyboard at a basic level but have attacked the integration of their respective events within the main loop thread. This chapter not only should have allowed you to understand how mouse and keyboard events are read and used but also should have pushed your understanding of threads and synchronization up a notch or two. Now that we know how to display graphics and handle real-time input, and more importantly know how to handle these features in a main loop thread, we can now create a game framework to base our games upon, which we will look into in Chapter 12, "Game Programming Techniques." For now, however, we will take a look at implementing sound in Java.



Java 1.4 Game Programming
Java 1.4 Game Programming (Wordware Game and Graphics Library)
ISBN: 1556229631
EAN: 2147483647
Year: 2003
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net