New Level Added
Some checks failed
MakeCode / build (14.x) (push) Failing after 1m28s
Check pxt.json / check-cfg (14.x) (push) Successful in 12m1s

This commit is contained in:
Waylon Walker 2022-03-20 08:18:16 -05:00
parent 726a7fc973
commit 9e316079e1
7 changed files with 475 additions and 93 deletions

17
main.ts
View file

@ -57,12 +57,14 @@ scene.onOverlapTile(SpriteKind.Player, sprites.swamp.swampTile7, function (sprit
game.over(false)
})
scene.onHitWall(SpriteKind.Projectile, function (sprite, location) {
for (let value of tiles.getTilesByType(sprites.dungeon.doorClosedNorth)) {
tiles.setTileAt(value, sprites.castle.tilePath5)
tiles.setWallAt(value, true)
if (!(tiles.tileAtLocationEquals(location, sprites.dungeon.floorDark0))) {
for (let value of tiles.getTilesByType(sprites.dungeon.doorClosedNorth)) {
tiles.setTileAt(value, sprites.castle.tilePath5)
tiles.setWallAt(value, true)
}
tiles.setTileAt(location, sprites.dungeon.doorClosedNorth)
tiles.setWallAt(location, false)
}
tiles.setTileAt(location, sprites.dungeon.doorClosedNorth)
tiles.setWallAt(location, false)
})
scene.onOverlapTile(SpriteKind.Player, sprites.swamp.swampTile9, function (sprite, location) {
game.over(false)
@ -261,7 +263,7 @@ levelStartMessage = [
"You are much faster at this than the others",
"some portals require great timing",
"some portals require you to look up when you place them",
""
"You, can't portal through bricks."
]
level = 5
music.setVolume(20)
@ -274,9 +276,6 @@ game.onUpdate(function () {
})
game.onUpdateInterval(1000, function () {
canTP = 1
})
forever(function () {
})
forever(function () {
if (mySprite.vx < 0) {