Resources file

On the previous page you created classes to represent crops and animals graphically. We will need to sub-classes these to produce classes for each specific type of crop and animal that we have:

  • Crops:

    • Potato
    • Wheat
  • Animals:

    • Cow
    • Sheep

However, before we do that it is necessary to have the graphics prepared that we will use for each representation as a resource file. You previously used resource files during the crop interface tutorials. The following images are required for each crop and animal:

Wheat images
Seed Seedling
Seed Seedling
Young Mature
Young Mature
Old
Old
Cow images
Baby Poor
Baby Poor
Fine Prime
Fine Prime

In addition, you will need a graphic to represent the field background. You can find a set of images for this task on our GitHub repository for the Field Simulation.

Field background

You will need to create the resource file for these images or if you are unable to do so you can use the prepared file from our GitHub repository.


Task 2

Create a resource file contains all of the required images. Refer back to the crop simulation tutorial on creating resource files if required.