Create a class named ParticleBase, a subclass of Actor( Actor class is not needed for this code) that should be the parent of all of your particle classes(You will not need to create the other classes only ParticleBase). It provides minimal features for setting a particle's color in its constructor. The ParticleBase class included in the starting scenario provides the following for your use: ParticleBase(color) A constructor that takes the particle's color (as a Color object). The constructor takes care of setting the particle's image to the appropriate color and size. getColor() A getter method that returns this particle's color as a Color object.
**PLEASE HELP WRITE IN JAVA
please post whatever you can get done I will thumbs up.
Create a class named ParticleBase, a subclass of Actor( Actor class is not needed for this code) that should be the parent of all of your particle classes(You will not need to create the other classes only ParticleBase). It provides minimal features for setting a particle's color in its constructor.
The ParticleBase class included in the starting scenario provides the following for your use:
ParticleBase(color)
A constructor that takes the particle's color (as a Color object). The constructor takes care of setting the particle's image to the appropriate color and size.
getColor()
A getter method that returns this particle's color as a Color object.
Step by step
Solved in 2 steps