diff --git a/.github/makecode/blocks.png b/.github/makecode/blocks.png index 6969bb6..bf390fe 100644 Binary files a/.github/makecode/blocks.png and b/.github/makecode/blocks.png differ diff --git a/.github/makecode/blocksdiff.png b/.github/makecode/blocksdiff.png index ef34d3b..876093d 100644 Binary files a/.github/makecode/blocksdiff.png and b/.github/makecode/blocksdiff.png differ diff --git a/main.blocks b/main.blocks index ea88e4a..3bdee91 100644 --- a/main.blocks +++ b/main.blocks @@ -1 +1 @@ -shipspriteshootship024Button.Aship-1Button.Bship1Button.ABshoot02LedSpriteProperty.Xship2LedSpriteProperty.Xshipshipship \ No newline at end of file +shipspriteshootthisship024Button.Aship-1Button.Bship1Button.ABshoot02LedSpriteProperty.Xship2LedSpriteProperty.Xship4LedSpriteProperty.Yshoot-1150shootshipship100 \ No newline at end of file diff --git a/main.ts b/main.ts index fc00faa..3f45a9f 100644 --- a/main.ts +++ b/main.ts @@ -3,6 +3,11 @@ input.onButtonPressed(Button.A, function () { }) input.onButtonPressed(Button.AB, function () { shoot = game.createSprite(ship.get(LedSpriteProperty.X), ship.get(LedSpriteProperty.X)) + for (let index = 0; index < 4; index++) { + shoot.change(LedSpriteProperty.Y, -1) + basic.pause(150) + } + shoot.delete() }) input.onButtonPressed(Button.B, function () { ship.move(1)