[{"element_type":"text","content":"\n        \u003cp\u003eI enjoy programming little projects on the Microbit and CircuitPlayground because I find it easy to work on them \u003ca href=\"https://adafruit-playground.com/u/mrklingon/pages/make-code-on-the-go-makecode-adafruit-that-is\" target=\"_blank\"\u003e\"on the go\"! \u003c/a\u003eThis project meant I was able to start working on a computer, then continue the initial Makecode work using the iOS Makecode app - saving work to Github when switching from PC to phone and back.\u003c/p\u003e\n\u003cp\u003eIt came about because I recently was reading through the Shannara stories, and that lead me to come up with some Microbit programs for this simple \"Sword of Shannara\" game in python and Makecode.\u003c/p\u003e\n\u003cp\u003eThis is a vastly (!) simplified version of the classic fantasy \"The Sword of Shannara.\"\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/mrklingon/SwordOfShannara\" target=\"_blank\"\u003eGithub Repository Here\u003c/a\u003e\u003c/p\u003e\n      ","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/869/original/sword1.jpg?1749676506","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003cp\u003eScreen above shows \"you,\" representing the hero, Shea Ohmsford, who is searching for the Sword of Shannara. You move left/right through a scrolling landscape (100 cells wide) displayed on the 5x5 LED micro:bit screen.\u003c/p\u003e\n\u003cp\u003eOverhead are dots that represent the \"Skull Bearers\" (think Tolkien's Nazgul). If you delay when one is overhead, it will attack and you can lose one of your five lives. So either move past quickly, or hit A+B to unleash the Elfstones to eliminate the Skull Bearer. Faint dots along the bottom of the \"screen\" represent landscape and serve to show your movement left/right.\u003c/p\u003e\n\u003cp\u003eSomewhere in the middle of the 100-element landscape is the \"Sword\" represented by three lit pixels.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/870/original/sword2.jpg?1749676593","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n        \u003cp\u003eGame ends when you either lose all 5 lives, or get to the Sword.\u003c/p\u003e\n\u003cp\u003eWriting this game in MakeCode served as a preliminary \"design,\" which I sketched out AFTER mostly coding the game:\u003c/p\u003e\n      \n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"image_url","content":"https://mrklingo.freeshell.org/sworddesign.jpg","metadata":{"alt":"Notebook design for Sword of Shannara game","caption":"Notebook design for Sword of Shannara game"}},{"element_type":"text","content":"\n  \n  \n  \n        \u003cp\u003e\u003cspan\u003eThis lead to rewriting the game in Python, using the excellent Microbit IDE - \u003c/span\u003e\u003ca href=\"https://python.microbit.org/v/3\"\u003ehttps://python.microbit.org/v/3\u003c/a\u003e\u003c/p\u003e\n      \n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/871/original/swordgame.jpg?1749676779","metadata":{}},{"element_type":"text","content":"\n  \n        \u003cp\u003e\u003cem\u003e\u003cstrong\u003eNote:\u003c/strong\u003e\u003c/em\u003e If you run the program in the Python IDE, it is hard to \"press A+B\" so the program also lets you fire the Elfstones with \"Shake.\"\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eFiles\u003c/strong\u003e\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eSwordOfShannara.js - MakeCode Version. Paste into Makecode editor as Javascript, or go to\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://makecode.microbit.org/_LHjHeCiaMavM\"\u003ehttps://makecode.microbit.org/_LHjHeCiaMavM\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003eSwordOfShannara.py - Python version to enter into\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://python.microbit.org/v/3\"\u003ehttps://python.microbit.org/v/3\u003c/a\u003e\n\u003c/li\u003e\n\u003cli\u003eSwordOfShannara.hex - can be loaded directly to Micro:Bit\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cem\u003eor\u003c/em\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003eopened in\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://python.microbit.org/v/3\"\u003ehttps://python.microbit.org/v/3\u003c/a\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eNOTE:\u003c/strong\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003eOne thing I find handy with Microbits is buying a switchable holder for a CR2032 coin cell battery or a switchable AAA holder (like\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://www.adafruit.com/product/4191\"\u003ehttps://www.adafruit.com/product/4191\u003c/a\u003e). Saves on the wear and tear of plugging/unplugging the Microbit power.\u003c/p\u003e\n      \n","metadata":{}}]