microsoft/pxt-arcade

Chase the Pizza Python - Step 3 Code Has Error

Opened this issue · 0 comments

The code recommended in Step 3 of the Save the Pizza python tutorial results in an error message. It seems the empty image causes in issue. We should probably just support this empty string in our APIs? That, or potentially combine this step and the next so the image is set by the end of the step.

mySprite: Sprite = None
scene.set_background_color(0)
mySprite = sprites.create(img(""" """), SpriteKind.player)

image