No student devices needed. Know more
11 questions
Why did this python code produce an error?
It is no python code.
Indentation is wrong.
The if statement is incorrect
can't see an error
What statement need to be there for ????
output = "x: " + ?????(self.player_sprite.center_x)
arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)
output = "y: " + ?????(self.player_sprite.center_y)
arcade.draw_text(output, 10, 40, arcade.color.WHITE, 14)
What is str in this python code?
output = "x: " + str(self.player_sprite.center_x)
arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)
Python arcade library function
Variable
string
build-in python function
What is a 'if' statement?
... programming conditional statement that, if proved true, performs a certain functionality.
Python Library used to provide build in functions.
A loop statement to provide extended functionality.
Sorry, don't know
How many variables have been defined here?
7
5
3
0
How does the movement, speed of a sprite (character) get controlled in python arcade?
In pushing buttons down.
In controlling the x and y co-ordinates
The code controls it automatically
What statements are correct to the programming lines 37 to 47?
The assembly a for-loop
The code saves us from having to repeat the same code (adding a bomb) several times.
The are a if-clause
The code belongs together.
Check what is a library in this code.
random
BOMB_COUNT
arcade
SPRITE_SCALING_COIN
Which section in your game code template do we use to display items on the screen.
any function will work
def on_update
def on_draw(self):
def __init__
What does this code section do?
Changes the x,y position to 0, stops the character sprite.
Changes the x,y velocity (speed) to 0, stops the character sprite.
Not sure
For what is an if-statement useful for in our code?
To check if player is leaving the screen.
To check what key the user pressed.
To draw bombs on the screen.
Don't know
Explore all questions with a free account