Skip to Main Content
Killer Game Programming in Java
book

Killer Game Programming in Java

by Andrew Davison
May 2005
Intermediate to advanced content levelIntermediate to advanced
998 pages
26h
English
O'Reilly Media, Inc.
Content preview from Killer Game Programming in Java

Class Diagrams for Particles3D

Figure 21-5 shows the class diagrams for the Particles3D program. Only the class names are shown.

Particles3D is the top-level JFrame for the application. WrapParticles3D creates the 3D scene and is similar to the earlier Wrap classes in that it creates the checkered floor and sets up lighting. WrapParticles3D invokes one of the three particle systems (PointParticles, LineParticles , or QuadParticles ), depending on user input.

The PointParticles and LineParticles particle systems are subclasses of Shape3D, allowing them to be added to the 3D scene easily. QuadParticles is a subclass of OrientedShape3D and permits its on-screen representation to rotate towards the viewer.

Point particle systems class structure

Figure 21-4. Point particle systems class structure

The diagrams for the particle system classes show they use the inner classes approach with GeometryUpdater and Behavior classes. CheckerFloor and ColouredTiles are the same as in previous examples.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Game Development with LibGDX: From Beginner to Professional

Java Game Development with LibGDX: From Beginner to Professional

Lee Stemkoski

Publisher Resources

ISBN: 0596007302Supplemental ContentErrata Page