1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sedbober [7]
2 years ago
6

The unit has you writing a script that ends each level when a sprite gets to the right edge of the screen. Propose another “leve

l completed” solution where the levels ends when the player hits a certain part of the screen WITHOUT relying on coordinates. Describe your solution, including the code blocks you would use instead of coordinates.
Computers and Technology
1 answer:
cricket20 [7]2 years ago
3 0

Answer:

I  would make a system to go to the next level of the game without using coordinates by creating a finish line for each level that is a color like green or red. When the player’s sprite hits the finish line, it will activate a part of the code which will make the next level appear. To do this I will use an if statement. If the sprite is touching green, it will move to the next backdrop. This will create a way to go to the next level without using coordinates.

Explanation:

This is what i put as the answer, hope it helps! Dont forget to change it a little bit so you dont get flagged and stuff.

You might be interested in
Robert is working on an image as part of his school project. he has to do multiple edits on the file. what is a good practice fo
kenny6666 [7]
D, save the file in multiple formats at the beginning
8 0
3 years ago
technical processor used in translate of instruction programs into single easy form for the computer to execute​
faltersainse [42]

Answer: The process of translation instructions expressed in a higher-level language into machine instructions (sometimes translating into Assembly language as an intermediate step) is called compilation, using a tool called a Compiler.

Explanation:

8 0
3 years ago
Write a program that asks the user to guess the next roll of a six-sided die. Each guess costs $ 1. If they guess correctly, the
jasenka [17]

Answer in python:

import random

money = 10

winnings = 0

def main():

global winnings

global money

dice_num = random.randrange(1,6)

input_str = "Guess the dice number. You have $"+str(money)+" > "

input_num = input(input_str)

if int(input_num) == dice_num:

 money = money + 10

 winnings = winnings + 10

else:

 money = money - 1

if money < 0:

 print("You lose. You won "+str(winnings)+" times. Press enter to try again")

 useless_variable = input()

 main()

else:

 main()  

main()

Explanation:

3 0
3 years ago
Write a recursive function called DrawTriangle() that outputs lines of '*' to form a right side up isosceles triangle. Function
lorasvet [3.4K]

Answer:

Code:-  

# function to print the pattern

def draw_triangle(n, num):

     

   # base case

   if (n == 0):

       return;

   print_space(n - 1);

   print_asterisk(num - n + 1);

   print("");

 

   # recursively calling pattern()

   pattern(n - 1, num);

   

# function to print spaces

def print_space(space):

     

   # base case

   if (space == 0):

       return;

   print(" ", end = "");

 

   # recursively calling print_space()

   print_space(space - 1);

 

# function to print asterisks

def print_asterisk(asterisk):

     

   # base case

   if(asterisk == 0):

       return;

   print("* ", end = "");

 

   # recursively calling asterisk()

   print_asterisk(asterisk - 1);

   

# Driver Code

n = 19;

draw_triangle(n, n);

Output:-  

# Driver Code n = 19;| draw_triangle(n, n);

4 0
3 years ago
PLEASE HELP
mario62 [17]

Answer:

the 3rd one you put

Explanation:

6 0
3 years ago
Other questions:
  • Which machine will work best to dig a hole in the soil?
    6·1 answer
  • What is The first letter o f each word in a secondary title
    11·1 answer
  • java Consider a class MotorBoat that represents motorboats. A motorboat has attributes for: The capacity of the fuel tank The am
    15·1 answer
  • Describa las características más importantes de cada procedimiento,difencias entre si Procedimiento Bessemer Procedimiento Sieme
    15·1 answer
  • A computer may keep freezing if it's software is up-to-date? <br> True <br> False
    11·1 answer
  • This is my paragraph . The type of color is ude in this code line is ..............................
    5·1 answer
  • प्रश्न 19 भारत के संविधान की उद्देशिका में वर्णित किन्ही पॉच मूल्यों का उल्लेख कर अर्थ स्पष्ट करे ?5
    9·1 answer
  • Please help me with this question<br>it on the picture​
    9·1 answer
  • Describe two benefits of the community of replacing the printed copy with an online version.
    14·1 answer
  • How does a computer do its work? Mention its working principle.<br><br>​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!