?? readme.txt
字號:
Chapter 21. Particle Systems
From:
Killer Game Programming in Java
Andrew Davison
O'Reilly, May 2005
ISBN: 0-596-00730-2
http://www.oreilly.com/catalog/killergame/
Web Site for the book: http://fivedots.coe.psu.ac.th/~ad/jg
Contact Address:
Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University
Hat Yai, Songkhla 90112, Thailand
E-mail: ad@fivedots.coe.psu.ac.th
If you use this code, please mention my name, and include a link
to the book's Web site.
Thanks,
Andrew
============================
Particles3D.java
-----
Compilation:
$ javac *.java
// you must have Java 3D installed for the compilation to succeed;
// if you get "Warning" messages, please see the note below
Java 3D is available from http://java.sun.com/products/java-media/3D/
-----
Execution:
Use the Particles3D.bat batch file.
You supply up to two arguments which set the number of
particles and the type of particles.
Type Number meaning
1 points
2 lines
3 quads
e.g.
$ Particles3D 6000 3
- means 6000 particles as quads (= 1500 quads)
$ Particles3D
- means the default: 3000 particles as points (= 3000 points)
$ Particles3D 4000
- means 4000 particles as points
-----------
Note on "unchecked or unsafe operation" Warnings
As explained in chapter 3, I have not used J2SE 5.0's type-safe
collections, so that this code will compile in early versions of
J2SE (e.g. version 1.4).
The warning messages are always related to my use of collections
(e.g. ArrayList) without specifying a type for the objects they will
contain at run time.
No. of Warnings generated in J2SE 5.0 for the examples:
/Particles3D: 9 warnings
---------
Last updated: 19th April 2005
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -