moving with arrows , can now also with the microbit up and down
idea from
https://forum.zimjs.com/t/i-care-about-tilt-games-when-there-are-no-sensors-how-to-make-it-a-touch-game-alternative-made-idea-example-but-long-code/4979/4?u=karelrosseel82
flying around with the microbit as control
can now here
as the microbit can tilt forward, Y and X I can make catching game with microbit
idea catch wafels
but here with new code (fullscreen not working when sensors are active)
I made the arraw in the black circle as compass visible and emitter to the bottom with smoke https://zimjs.org/016/emitter
app to test where the fullscreen works when tilt is active
so now with 4 possibilities (not yet microbit)
portret rocket
rocket version
landscape
firstperson rocket + microbit and arrow visible
firstperson rocket + microbit ( no arrow)
supercat
shakemonster 020 new .shake() code
I'm trying to use all microbit directions left right up and down to move around on the screen with a rocket
octopus with microbit: you can do yaw and roll (no mirror when going left/right)
here with a shark: need to swim always correct : with mirroring
and I created a death zone so the shark starts moving when the roll is bigger as -5 and +5 degree
the code needed for the makecode
bluetooth.onBluetoothConnected(function () {
connected = 1
basic.showIcon(IconNames.Yes)
})
bluetooth.onBluetoothDisconnected(function () {
connected = 0
basic.showIcon(IconNames.No)
})
let connected = 0
bluetooth.startUartService()
basic.showIcon(IconNames.Square)
basic.forever(function () {
if (connected == 1) {
bluetooth.uartWriteLine("" + input.rotation(Rotation.Roll))
basic.pause(100)
}
})
and the app with arrow on shark visible
no arrow visible



