Skip to content

A MakeCode adventure game for the Adafruit PyBadge computer.

License

Notifications You must be signed in to change notification settings

bazbt3/pybadge-adventure

Repository files navigation

What is this?

A necessarily simple adventure game program created for the Adafruit PyBadge computer. An early 'playable' version can be found at https://bazbt3.github.io/pybadge-adventure/. (Note that the pages generated in my micro:bit repos linked to the githu.io page not the game.)

Controls at the start of the project

  • Advancing between moves: button A.
  • Movement: N = up button, E = right, S = down, W = left.

Photo!

Enhancements intended

  • Basic combat, potentially using a combination of the Select and Start buttons.

What is an Adafruit PyBadge?

An embedded system computer the size of a credit card. It has a 1.8" colour display, 5 bright 'NeoPixel' LEDs, 8 'game' buttons, an accelerometer and buzzer built-in, and a comprehensive set of interface options for external sensors and controllers. It can run CircuitPython, MakeCode Arcade or Arduino code, which must be written on a computer or a portable device before 'flashing' the program to the PyBadge via a USB cable.

How was the program created?

It uses the Microsoft MakeCode IDE (blocks of code similar to Scratch.) In this case all the coding has used the arcade.makecode.com web application with some ancillary files (e.g. this one) edited in the Microsoft VS Code code editor.

Note: I have used only the block editor for code creation so be aware that the underlying 'written' code may not be ordered 'neatly'.

Meta

Open this page at https://bazbt3.github.io/pybadge-adventure/

Edit this project Build status badge

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)

  • for PXT/arcade
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>