https://agendaweb.org/exercises/vocabulary/weather/weather-listen-match.htm
What’ the weather like?
https://www.liveworksheets.com/w/en/english-second-language-esl/985524
https://www.liveworksheets.com/w/en/english-second-language-esl/637361
input.onButtonPressed(Button.A, function () {
Uto.move(-1)
})
function loves () {
for (let index = 0; index < 4; index++) {
labda.move(1)
basic.pause(500)
}
// music.play(music.stringPlayable(„C D E F D – D – „, 120), music.PlaybackMode.UntilDone)
if (labda.isTouching(Cel)) {
basic.showIcon(IconNames.Heart)
} else {
basic.showIcon(IconNames.No)
music.play(music.tonePlayable(523, music.beat(BeatFraction.Whole)), music.PlaybackMode.UntilDone)
}
}
input.onButtonPressed(Button.AB, function () {
labda = game.createSprite(Uto.get(LedSpriteProperty.X), 4)
labda.turn(Direction.Left, 90)
loves()
labda.delete()
})
input.onButtonPressed(Button.B, function () {
Uto.move(1)
})
let labda: game.LedSprite = null
let Cel: game.LedSprite = null
let Uto: game.LedSprite = null
let Labdaoszlop = randint(0, 4)
Uto = game.createSprite(Labdaoszlop, 4)
let Celoszlop = randint(0, 4)
Cel = game.createSprite(Celoszlop, 0)
let szunet = 2000
let szlepes = 100
basic.forever(function () {
Cel.move(1)
basic.pause(szunet)
if (Cel.isTouchingEdge()) {
Cel.ifOnEdgeBounce()
if (szunet < 100) {
szlepes = 100
}
if (szunet > 2500) {
szlepes = -100
}
szunet = szunet + szlepes
}
})
input.onButtonPressed(Button.A, function () {
Labda.move(-1)
})
input.onButtonPressed(Button.AB, function () {
let Arcoszlop = 0
Labda.turn(Direction.Left, 90)
for (let index = 0; index < 4; index++) {
Labda.move(1)
basic.pause(500)
}
if (Labda.isTouching(Cel)) {
basic.showIcon(IconNames.Heart)
// music.play(music.stringPlayable(„C D E F D – D – „, 120), music.PlaybackMode.UntilDone)
} else {
basic.showIcon(IconNames.No)
music.play(music.tonePlayable(523, music.beat(BeatFraction.Whole)), music.PlaybackMode.UntilDone)
}
Labda.delete()
Labdaoszlop = randint(0, 4)
Labda = game.createSprite(Arcoszlop, 4)
})
input.onButtonPressed(Button.B, function () {
Labda.move(1)
})
let Cel: game.LedSprite = null
let Labda: game.LedSprite = null
let Labdaoszlop = 0
Labdaoszlop = randint(0, 4)
Labda = game.createSprite(Labdaoszlop, 4)
let Celoszlop = randint(0, 4)
Cel = game.createSprite(Celoszlop, 0)
let szunet = 2000
let szlepes = 100
basic.forever(function () {
Cel.move(1)
basic.pause(szunet)
if (Cel.isTouchingEdge()) {
Cel.ifOnEdgeBounce()
if (szunet < 100) {
szlepes = 100
}
if (szunet > 2500) {
szlepes = -100
}
szunet = szunet + szlepes
}
})
input.onButtonPressed(Button.A, function () {
Ark.move(-1)
})
input.onButtonPressed(Button.AB, function () {
Ark.turn(Direction.Left, 90)
for (let index = 0; index < 4; index++) {
Ark.move(1)
basic.pause(500)
}
if (Ark.isTouching(Cel)) {
basic.showIcon(IconNames.Heart)
} else {
basic.showIcon(IconNames.No)
}
Ark.delete()
Arcoszlop = randint(0, 4)
Ark = game.createSprite(Arcoszlop, 4)
})
input.onButtonPressed(Button.B, function () {
Ark.move(1)
})
let Arcoszlop = 0
let Cel: game.LedSprite = null
let Ark: game.LedSprite = null
let Arcoszlop2 = randint(0, 4)
Ark = game.createSprite(Arcoszlop2, 4)
let Celoszlop = randint(0, 4)
Cel = game.createSprite(Celoszlop, 0)
let szunet = 2000
let szlepes = 100
basic.forever(function () {
Cel.move(1)
basic.pause(szunet)
if (Cel.isTouchingEdge()) {
Cel.ifOnEdgeBounce()
if (szunet < 100) {
szlepes = 100
}
if (szunet > 2500) {
szlepes = -100
}
szunet = szunet + szlepes
}
})
function mutato () {
basic.clearScreen()
ParosSor = true
ParosOszlop = true
for (let indexY = 0; indexY <= szam; indexY++) {
parosY = indexY % 2
ParosSor = parosY == 0
for (let indexX = 0; indexX <= szam; indexX++) {
parosX = indexX % 2
ParosOszlop = parosX == 0
if (ParosOszlop && ParosSor) {
led.plot(indexX, indexY)
}
if (!(ParosOszlop) && !(ParosSor)) {
led.plot(indexX, indexY)
}
basic.pause(mp)
if (Kikapcs) {
led.unplot(indexX, indexY)
}
}
}
}
// basic.pause(1000)
input.onButtonPressed(Button.A, function () {
basic.clearScreen()
})
// basic.clearScreen()
// basic.pause(1000)
input.onButtonPressed(Button.B, function () {
Kikapcs = !(Kikapcs)
})
function vege () {
basic.clearScreen()
basic.pause(2000)
if (sziv) {
basic.showIcon(IconNames.Heart)
basic.pause(100)
sziv = !(sziv)
} else {
basic.showIcon(IconNames.SmallHeart)
basic.pause(100)
}
basic.clearScreen()
}
let Kikapcs = false
let parosX = 0
let parosY = 0
let ParosOszlop = false
let ParosSor = false
let szam = 0
let mp = 0
let sziv = false
sziv = true
mp = 100
szam = 4
basic.forever(function () {
mutato()
vege()
})