On Edge; this assignment has been overdue for like three weeks because I DO NOT understand what to do, if you could help me that would me AMAZING, thanks <3 (If you need a link I could post it)

Let’s get to debugging! The program you’re about to look at is supposed to be a simple game where the ninja has to rescue the good monsters (in blue) while avoiding being touched by the bad monsters (in red). The ninja receives points whenever a good monster is touched, and points are taken away whenever a bad monster is touched. You can use the up, down, left, and right arrows to make the ninja move toward the good monsters accordingly


Try playing the game and be observant about what isn’t happening the way you thought it would.

There are two bugs in the program. Your job is to identify the problem blocks of code and fix them. Use the following steps.

Identify the problem blocks. You will have to click on the different actors in the game to see their code.

Attempt to fix the problem code blocks. Check your fix by running the game again. Take screenshots of your code.

Describe the problem in the program and how you attempted to fix it, including whether you were successful.

Submit your screenshots and descriptions of how to fix the bugs.

Answers

Answer 1

Answer:

There were several problems with the code:

- When pressing arrow left, the ninja was moving to the right.

- The ninja could be moved off the screen and then is lost

- When changing the direction, the ninja didn't change its appearance

Explanation:

See screenshot for changes. 10 was changed to -10, and I added checks to see if the ninja is at the edge of the screen.

On Edge; This Assignment Has Been Overdue For Like Three Weeks Because I DO NOT Understand What To Do,
Answer 2

I first played the game and noticed that the ninja was not receiving points for touching the good monsters. I also noticed that the ninja was losing points for touching the bad monsters, even though it was supposed to be the other way around.

How to explain the information

I then looked at the code for the ninja actor and found two problems. The first problem was that the code for receiving points was inside the on_bad_monster_touched event handler, instead of the on_good_monster_touched event handler.

The second problem was that the code for losing points was inside the on_good_monster_touched event handler, instead of the on_bad_monster_touched event handler.

I fixed the bugs by swapping the positions of the two blocks of code. I also added a print statement to the on_good_monster_touched event handler to confirm that the ninja was now receiving points for touching the good monsters.

Learn more about game

https://brainly.com/question/908343

#SPJ2


Related Questions

Pls help I turned invert on and turned it back off, now the colors on brainl.y are still the same inverted colors but other things like You.tube and stuff aren’t

Answers

Answer:

Try going into your brainly settings and see if night mode or high definition is on

Explanation:

if u are on iphone i think it’s the same on android

Settings > Accessibility > Display and text size > Classic invert (off)

What is the study of computers and computing including their theoretical and algorithmic foundations, hardware and software, and their uses for processing information called?

Question 1 options:

Information Technology


Computer Science


Computer Engineering


Software Engineering

Answers

It will be information technology
The answer is information technology hope that helps

please answer these
thank you....

Answers

Answer:

1. Don't know.

2. I've noticed that the cord has end points that can produce energy.

3. We use this tool in the picture to jump cars or add energy that something needs.

Explanation:

Answer:

1). It is a volt meter.

2).i mean this one depends on whatever you see on it

3).You use one to test and measure electric potential difference between two points in an electric circuit

Explanation:

I hope you get a fat A

If you see these REPORT.

Answers

Woah that’s scary- thanks for letting me know!
Thank you I didn’t even know there was viruses!

An understanding of basic psychology can help design and marketing teams ensure they meet their intended audience.
TRUE OR FALSE

Answers

Answer:

um true i think cause to understand something or someone you have to help it to find it place in the world by make design for them and have a team to help you so they can that there audience if that help you plz mark me brainliest if not then you don't have to

Explanation:

Ohhhhh the answer is true

Select the correct answer.

Project manager Kevin has to create a project team organizational chart. Which activity should he perform before creating this chart?

Answer choices that were given:

A. discussing project costs
B. minimizing project costs
C. allocating roles to project team members
D. identifying project risks

Answers

The answer for this is A
The answer is Because Kevin has to discuss first what will they do to the organizational chart

Give three examples of ethical or legal issues that an IT professional may encounter and the negative consequences of these issues.

Answers

Answer:

1. Private Informations being leaked.
2. Hackers that hacks accounts.
3. Computer Viruses obtained by clicking spam messages.

Explanation:

1. They can turn down the leaked informations by logging to it, legally.
2. IT Professionals could hack the hacker, or outsmart them.
3. Some people can stop Computer Viruses, but IT Professionals can prevent it much better than them.

I hope that my answer helped you. Thank you, and good luck.

The three examples of ethical or legal issues that an IT professional may encounter are:

Privacy violationsCybersecurity breachesIntellectual property violations

What are the  negative consequences of the issues with IT professional?

In Privacy violations: IT professionals may be faced with ethical dilemmas related to the collection, use, and protection of personal data. If personal data is not handled responsibly, it can lead to privacy violations, loss of trust, and potential legal consequences.

In Cybersecurity breaches: IT professionals are responsible for protecting the security of systems and data, and failure to do so can result in cybersecurity breaches that can have serious consequences, such as data loss, financial damage, and reputational harm.

Therefore, in Intellectual property violations: IT professionals may be faced with ethical issues related to the use of copyrighted or patented materials. If these materials are used without permission, it can result in legal consequences and damage to the reputation of the IT professional and their organization.

Learn more about IT professional from

https://brainly.com/question/6947486

#SPJ1

What is a drawback to the use of AI?

Answers

Answer:

No creativity

Explanation:

One of the biggest artificial intelligence problems is that the sophisticated and expensive processing resources needed are unavailable to the majority of businesses.

Answer: AI will not always give a different response

Explained: If you ask humans a question, you may get the same answer but spoken in different ways where as AI would always give the same answer and same way to do it

A bicycle is probably not a computer because it does not

have a screen
require electricity
use information to solve a problem
use the internet


Pls anwser quick

Answers

use info to solve a problem
use information to solve a problem

Which of the following are true about blogs? Check all that apply.
Group of answer choices

They should be well-written.

They must be anonymous.

They should be aesthetically pleasing.

They should be legible.

They should be sponsored by a company or organization.

Answers

Answer:

A and B...I think

Explanation:

Answer:

They should be aesthetically pleasing. & They should be well-written. & They should be legible.

Select the correct answer.

Which is a typical job role/career in business information management?

Answer choices that were given:

A. researcher
B. speaker
C. writer
D. project manager
E. accounting manager

Answers

Close call between researcher and project manager, but I say project manager
I think that the answer is D. Project Manager

HOW DOES HE HAVE THAT MANY POINTS AND NO ANSWERS

Answers

Answer:

LOL he be hacking xD

have a good day :)

Explanation:

Either maybe a creator, or as hacker. But seriously HOW??!

This career applies mathematical and theoretical knowledge in order to compare and produce computational solutions.

Question 3 options:

Information Systems


Computer Science


Information Technology


Cybersecurity

Answers

Answer:

Why does love.com redirect to Verizon.

Explanation:

My answer would be cyber security.
Other Questions
Write a conversation between two friends talking about the ways to prevent from Coronavirus. Please solve this or find an answer key. Math question!!!!!!!!!! Because Earth has a lot of nitrogen in its atmosphere and nitrogen has three atoms, this causes even more bluish coloring since three different paths are possible for any one photon (particle of light). Three paths means that more photons are scattered forward and backward than side-to-side, which will make the sky look bluer still. 1. Name six (6) physical or behavioral characteristics of the cane or bufo toad.2.How does the cane toad disrupt a given ecosystem? Nitrogen monoxide and oxygen can be formed from the thermal decomposition of nitrogen dioxide.2NO2 (g) = 2NO (g) + O(g)In an experiment, 4 moles of nitrogen dioxide were put into a 1.0 dm container and heatedto a constant temperature. The equilibrium mixture contains 0.8 moles of oxygen.What is the value of the equilibrium constant, Kc?1.5 POINTSACELU0.0320.8530.426BD0.2220.356FINISH QUIZ What is the P-value? 2.) Una pizza cuesta $12. Alfred compr 4_2/3 pizzas. Cuanto gastara le sobra de $60? a.) $56 b.) $14 c.) $4 a large interquartile range shows the data is What volume of solution must be added to 4.0 mol of NaCl to make a 1.2 M solution? Can someone please help me! How to fix wordPress upload error unexpected response from the server. the file may have been uploaded successfully. check in the media library or reload the page. Why are relics important in history? Find the measure of the missing angles. Written problem: I find that I can blow 1000 cm3 of air through a drinking straw in 1.3 s. The diameter of the straw is 5 mm. Find the velocity of the air through the straw. Adam is trying to spot a meteor. The probability he will see one in the next 10 minutes is 0.56.What are the odds in favor of Adam seeing a meteor in the next 10 minutes? The ancient Persians made the following improvements to their empire: building canals linking bodies of water, building roads and trading ports. Which was the most likely effect of these improvements?A. Flooding created a lot of damage throughout the region.B. Trade began expanding throughout the Persian empire.C. People used these as transportation to migrate out of the area.D. Fighting began over control of these improvements. Which developmental consideration is a nurse assessing when determining that an 8-year-old child is not equipped to understand the scientific explanation of the child's disease One of the legs of a right triangle measure 7 centimeters in the other leg measures 3 centimeters. Find the measure of the hypotenuse. What is the relationship between CO2 levels and sea levels?