KitronikLtd / pxt-kitronik-game-controller

Custom blocks for :GAME Controller for BBC micro:bit
https://www.kitronik.co.uk/5644
MIT License
2 stars 4 forks source link

How to import into makecode? #3

Closed Swmboy closed 1 year ago

Swmboy commented 1 year ago

How do I import and use this in makecode?

DaveAtKitronik commented 1 year ago

Press Extensions:

image

Type kitronik game in the search bar:

image

Press the game controller image:

image

blocks appear in the pallet:

image

The blocks are similar to the On Button A pressed block - where you can trigger some code when the button is pressed, or a sub block you can drop inot other blocks (like an if block)

image

You need to set the pitch pin to buzzer in on start to make the buzzer use the music blocks.:

image

Swmboy commented 1 year ago

No I mean directly importing it. I'm using brilliantlabs (literally the same as makecode except it uses a special microbit board) it does not have the addon, but it has the import addon feature. If you could tell me how to compile this then import it into that, it would be greatly appreciated

Thanks

DaveAtKitronik commented 1 year ago

The BrillaintLabs editor is customised makecode only for use with the b.board, or a stand alone micro:bit. It cannot as far as I can tell be used with any other micro:bit add ons.

If you have our board and a micro:bit you should use the micro:bit makecode editor (https://makecode.microbit.org/) and import our extension into that.

Swmboy commented 1 year ago

Oh alright. Do you know of any microbit controllers compatible with the b board? Thanks

DaveAtKitronik commented 1 year ago

I dont understand? The b.board appears to take a normal micro:bit and then lock you into their walled garden. If you want to use the micro:bit with other accessories then unplug it from the b board, plug it into what ever accessory you have and use the standard makecode editor to write the code. If you have to use b board editor for some reason (school locked IT for instance) then you are stuck with what ever brilliant labs will provide - maybe ask them.