Skip to content

Instantly share code, notes, and snippets.

@will-moore
will-moore / WarGames.js
Created May 15, 2018 21:21 — forked from gingemonster/WarGames.js
Micromonsters Episode 7 - WarGames code
let missile: game.LedSprite = null
let opponentsmissile: game.LedSprite = null
let score = 0
let nummissles = 0
let player: game.LedSprite = null
let switchxposition = 0
input.onButtonPressed(Button.A, () => {
player.change(LedSpriteProperty.X, -1)
})
radio.onDataPacketReceived( ({ receivedString: name, receivedNumber: value }) => {