Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let generic_apple_man = sprites.create(img`
- . . . . . . . e c 7 . . . . . .
- . . . . e e e c 7 7 e e . . . .
- . . c e e e e c 7 e 2 2 e e . .
- . c e e e e e c 6 e e 2 2 2 e .
- . c e e e 2 e c c 2 4 5 4 2 e .
- c e e e 2 2 2 2 2 2 4 5 5 2 2 e
- c e e 2 2 2 2 2 2 2 2 4 4 2 2 e
- c e e 2 2 2 c 2 2 c 2 2 2 2 2 e
- c e e 2 2 2 c 2 2 c 2 2 2 2 2 e
- c e e 2 2 2 c 2 2 c 2 2 2 2 2 e
- c e e 2 2 2 2 2 2 2 2 2 2 4 2 e
- . e e e 2 c c c c c c 2 2 4 e .
- . 2 e e 2 2 2 2 2 2 2 2 4 2 e .
- . . 2 e e 2 2 2 2 2 4 4 2 e . .
- . . . 2 2 e e 4 4 4 2 e e . . .
- . . . . . 2 2 e e e e . . . . .
- `, SpriteKind.Player)
- controller.moveSprite(generic_apple_man)
- let no_joke_pure_evil = sprites.create(img`
- . . . . . . . . . . . . . . . .
- . . . . . . . . . . b 5 b . . .
- . . . . . . . . . b 5 b . . . .
- . . . . . . b b b b b b . . . .
- . . . . . b b 4 5 5 5 5 b 4 . .
- . b b b b b 5 5 4 5 5 5 4 b . .
- . b d 5 b 5 5 5 5 4 5 4 5 b . .
- . . b 5 5 b 5 d 1 f 4 d 4 f . .
- . . b d 5 5 b 1 f f 5 4 4 c . .
- b b d b 5 5 5 d f b f f 4 f 4 b
- b d d c d 5 5 b 5 4 4 4 f 4 b .
- c d d d c c b 5 5 5 5 5 5 5 b .
- c b d d d d d 5 5 5 5 5 5 5 b .
- . c d d d d d d 5 5 5 5 5 d b .
- . . c b d d d d d 5 5 5 b b . .
- . . . c c c c c c c c b b . . .
- `, SpriteKind.Enemy)
- no_joke_pure_evil.setPosition(140, 15)
- game.onUpdate(function () {
- for (let value of sprites.allOfKind(SpriteKind.Enemy)) {
- if (value.x > generic_apple_man.x - 48 && value.x < generic_apple_man.x + 48 && (value.y > generic_apple_man.y - 48 && value.y < generic_apple_man.y + 48)) {
- value.follow(generic_apple_man, 50)
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement