Design software solutions by high-level programming language


Assignment Problem: Fly Swatter!

Aims:

  • Develop a piece of software that matches the task description.
  • Solve problems and design software solutions using a high-level programming language and a range of technologies, protocols and algorithms.
  • Build a program with visual elements.
  • Move an object around the screen.
  • Implemented interactive elements.

Description:

The UFO in your first task now appears to have been of alien origin. Using their advanced technologies they have realized that we have been tracking them and this has angered them greatly. The alien civilization has grown tired of buzzing overheard and has now launched a full scale invasion. Reports indicate that the creatures resemble an over sized version of our humble house fly. Governments of the world have come together to developed a giant fly swatter to fend off our home invader.

Due to your success in the tracking mission and difficulties establishing on the ground surveillance technology, your mission is to develop a GUI representation of the war against the flies. With apparent budget cuts, the artists that assisted you in your last mission have been fired. Luckily one of your associates has developed some graphics using a cheap paint program. Good luck and happy coding!

Task:

Your task is to develop a simple interactive graphical user interface using the Processing environment. The specific implementation details and images, as well as skeleton code are provided, but if you wish to add any further details or use additional/alternative images, you are free to do so.

  • The first task will be to get the images to appear on the screen and to set the interface size.
  • Once this is complete, try to get the fly swatter object to follow the mouse around the screen.
  • As this is a fictional exercise, the starting position of the flies can be randomly generate. With a new fly appended to memory each time one is swatted.
  • The flies do not need to move around the screen and can stay in one position with the swatted version of the fly replacing the fly image.
  • The swatter image should swap to the swatting image provided when the mouse button is clicked.
  • A simple collision detection algorithm (bounding box), should be implemented to detect swats.
  • A text object should be used to keep score of the amount of flies swatted.
  • Five marks have been allocated to any further effects you might want to add, this part is entirely up to you.
  • Lecture examples and tutorials for weeks 1 to 4 should assist you.

Attachment:- Case Study-Fly Swatter.rar

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Design software solutions by high-level programming language
Reference No:- TGS03053000

Expected delivery within 24 Hours