Skip to content

Commit d4150cb

Browse files
committed
Update main.blocks, main.ts
1 parent ea69766 commit d4150cb

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/makecode/blocks.png

24.7 KB
Loading

.github/makecode/blocksdiff.png

-243 KB
Loading

main.blocks

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ controller.up.onEvent(ControllerButtonEvent.Pressed, function () {
66
jack.vy = -100
77
jumpcount += 2
88
}
9+
music.playMelody("E G C5 - - - - - ", 416)
910
})
1011
scene.onOverlapTile(SpriteKind.Player, sprites.builtin.brick, function (sprite, location) {
1112
game.over(true)
1213
})
1314
sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
14-
coll1.destroy()
15+
otherSprite.destroy()
1516
info.changeLifeBy(-1)
1617
})
1718
info.onLifeZero(function () {
19+
info.setScore(0)
1820
game.over(false, effects.confetti)
1921
})
2022
scene.onHitWall(SpriteKind.Projectile, function (sprite, location) {

0 commit comments

Comments
 (0)