Java Reference
In-Depth Information
Figure 10-3. Fireballs
This example builds on the code from Listing 10-1 with the remainder of the Main.fx class shown in
Listing 10-5.
Listing 10-5. Fireballs (part of Main.fx)
function fireballs():Void{
for (y in [1..4],i in [1..2],x in [1..24]){
radius: 4
translateX: x*24+i*12
translateY: 100+y*48+i*24
Search WWH ::

Custom Search