Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mySprite = sprites.create(img`
- 1 . 2 . 3 .
- . . . . . .
- 1 . 2 . 3 .
- . . . . . .
- 1 . 2 . 3 .
- . . . . . .
- `, SpriteKind.Player)
- // mySprite.say("hi", 5000)
- let bg = scene.backgroundImage()
- bg.drawLine(0, 0, 100, 100, 10)
- bg.print("hihi", 100, 100);
- for (const sprite of sprites.allOfKind(SpriteKind.Player)) {
- // Replace all pixels with the color 0 (transparent) with 1 (white)
- sprite.image.replace(0, 1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement