June 2013
Intermediate to advanced
346 pages
8h 42m
English
Now we can start creating the particle system. Let’s create a new class called ParticleSystem inside the package com.particles.android.objects, starting off with the following code in the class:
| Particles/src/com/particles/android/objects/ParticleSystem.java | |
| | private static final int POSITION_COMPONENT_COUNT = 3; |
| | private static final int COLOR_COMPONENT_COUNT = 3; |
| | private static final int VECTOR_COMPONENT_COUNT = 3; |
| | private static final int PARTICLE_START_TIME_COMPONENT_COUNT = 1; |
| | |
| | private static final int TOTAL_COMPONENT_COUNT = |
| | POSITION_COMPONENT_COUNT |
| | + COLOR_COMPONENT_COUNT |
| | + VECTOR_COMPONENT_COUNT |
| | + PARTICLE_START_TIME_COMPONENT_COUNT; |
| | |
| | private static ... |
Read now
Unlock full access