Skip to content

Version 0.1.0

Compare
Choose a tag to compare
@Gadgetoid Gadgetoid released this 22 Oct 16:22
· 114 commits to main since this release
d4cbc43

New MicroPython Goodies

This release includes three new demos ported over from C++: Text, Music and Audio.

These demos are a little rough around the edges, but you can find them in the launcher by holding "A" during boot.

⚠️ The special colour syntax for text has changed from "\rgbRGB" and "\rgbaRGBA" to just "\penRGBA".
🥳 You can now use "\spr001" to inline sprites in your text, eg: f"\\spr{LEAF:007} woo a leaf!"
🤔 No more Alpha? Bumped version to 0.1.0 to indicate that we (hopefully) shouldn't make any more breaking API changes

flip() now also updates input. Here's a working, if terrible, rock-paper-scissors that fits in a tweet (inspired by Kari):

import random
p=pressed
b='RPS'
t=text
s=l=0
pen(0,0,0);clear();pen();t("RPS=YBA",0,0)
while p(X)^1 and l<13:
 flip()
 for f in 0,1,2:
  if p((Y,B,A)[f]):e=random.randint(0,2);s+=(0,1,-1)[f-e];t(f"{b[f]}v{b[e]}=\\pen{('00FFD','0F0FW','F00FL')[f-e]}\\penFFFF s={s}");l+=1
t("Bye")

What's Changed

Full Changelog: v0.0.7...v0.1.0