Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use basic p5js functions i like to use visual studio code to create the program. Write a P5 Sketch that implements a simple computer

image text in transcribed

please use basic p5js functions

i like to use visual studio code to create the program.

image text in transcribed
Write a P5 Sketch that implements a simple computer game where you squish bugs (or other creatures) with the mouse. Begin with several bugs walking around the screen. The user must click the mouse on a bug to squish it. The user must squish as many bugs as possible in 30 seconds. Keep an on-screen count of the number of bugs squished and an on-screen timer counting down from 30 seconds. The game should get harder as it proceeds, so make the bugs move faster with each squish. After 30 seconds, the game ends. Recall the Homework 3 animation. It has seven frames. Use your favorite image editing software (Photoshop, Illustrator, Paint, Gimp, Inkscape, ...) to draw an animated bug that walks similarly. In the case of the bug, there should be an additional image: squished and dead. Animate the bug so that it faces the direction that it's moving. You can accomplish this by drawing an animation for each direction, or by simply using the rotate or scale function. It's recommended that you define a class to represent a bug, and use an array of objects to create several bugs. Note, the player must *click* on a bug to kill it. Do not simply test if the mouse button is pressed while the pointer is on the bug, as this lets the player click once and simply drag around to score squishes. Too easy! Write a P5 Sketch that implements a simple computer game where you squish bugs (or other creatures) with the mouse. Begin with several bugs walking around the screen. The user must click the mouse on a bug to squish it. The user must squish as many bugs as possible in 30 seconds. Keep an on-screen count of the number of bugs squished and an on-screen timer counting down from 30 seconds. The game should get harder as it proceeds, so make the bugs move faster with each squish. After 30 seconds, the game ends. Recall the Homework 3 animation. It has seven frames. Use your favorite image editing software (Photoshop, illustrator, Paint, Gimp, Inkscape, ...) to draw an animated bug that walks similarly. In the case of the bug, there should be an additional image: squished and dead. Animate the bug so that it faces the direction that it's moving. You can accomplish this by drawing an animation for each direction, or by simply using the rotate or scale function. It's recommended that you define a class to represent a bug, and use an array of objects to create several bugs. Note, the player must click on a bug to kill it. Do not simply test if the mouse button is pressed while the pointer is on the bug, as this lets the player click once and simply drag around to score squishes. Too easy! You'll likely have several files for this project (HTML, JS, images, font, etc), so package them all in a ZIP and upload that. Write a P5 Sketch that implements a simple computer game where you squish bugs (or other creatures) with the mouse. Begin with several bugs walking around the screen. The user must click the mouse on a bug to squish it. The user must squish as many bugs as possible in 30 seconds. Keep an on-screen count of the number of bugs squished and an on-screen timer counting down from 30 seconds. The game should get harder as it proceeds, so make the bugs move faster with each squish. After 30 seconds, the game ends. Recall the Homework 3 animation. It has seven frames. Use your favorite image editing software (Photoshop, Illustrator, Paint, Gimp, Inkscape, ...) to draw an animated bug that walks similarly. In the case of the bug, there should be an additional image: squished and dead. Animate the bug so that it faces the direction that it's moving. You can accomplish this by drawing an animation for each direction, or by simply using the rotate or scale function. It's recommended that you define a class to represent a bug, and use an array of objects to create several bugs. Note, the player must *click* on a bug to kill it. Do not simply test if the mouse button is pressed while the pointer is on the bug, as this lets the player click once and simply drag around to score squishes. Too easy! Write a P5 Sketch that implements a simple computer game where you squish bugs (or other creatures) with the mouse. Begin with several bugs walking around the screen. The user must click the mouse on a bug to squish it. The user must squish as many bugs as possible in 30 seconds. Keep an on-screen count of the number of bugs squished and an on-screen timer counting down from 30 seconds. The game should get harder as it proceeds, so make the bugs move faster with each squish. After 30 seconds, the game ends. Recall the Homework 3 animation. It has seven frames. Use your favorite image editing software (Photoshop, illustrator, Paint, Gimp, Inkscape, ...) to draw an animated bug that walks similarly. In the case of the bug, there should be an additional image: squished and dead. Animate the bug so that it faces the direction that it's moving. You can accomplish this by drawing an animation for each direction, or by simply using the rotate or scale function. It's recommended that you define a class to represent a bug, and use an array of objects to create several bugs. Note, the player must click on a bug to kill it. Do not simply test if the mouse button is pressed while the pointer is on the bug, as this lets the player click once and simply drag around to score squishes. Too easy! You'll likely have several files for this project (HTML, JS, images, font, etc), so package them all in a ZIP and upload that

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions