Updated Linux (and Windows) instructions

This commit is contained in:
Ron Hale-Evans
2016-07-08 16:34:56 -07:00
parent 8751d2aaa1
commit 4cc7215d35
3 changed files with 41 additions and 13 deletions

View File

@ -2,7 +2,12 @@
Reports true if sprite is touching specified sprite
```blocks
let matter = game.createSprite(2, 2);
let antimatter = game.createSprite(2, 2);
if (matter.isTouching(antimatter)) {
basic.pause(500);
basic.clearScreen();
basic.showString("BOOM!");
}
```
export function isTouching(_this: micro_bitSprites.LedSprite, other: micro_bitSprites.LedSprite) : boolean
```