The little game - an embedded Swift exploration

Hi all,
I've shared a small hobby project on github, that me and my now 8 y.o. daughter are building using embedded Swift on an ESP32C6.

It's a work in progress, but we are having a lot of fun with it.

My daughter is being introduced to programming by 'drawing' graphics as integer arrays - and she can work in a Swift Playground and then we can flash the device when we want to try it in action.

And I'm being introduced to implementing a very, very simple run-loop, a bit of soldering and having to 3d print the case. :slight_smile:

With the game being so simple, I'd like to eventually make it target multiple platforms - like the Apple Watch, the TTY, Wasm. Just for the fun of it. :-)

I share code between the embedded target (using CMake) and the Swift Playgrounds .swiftpm project using symlinks - a bit hackish, but it works for now.

Please have a look and let me and Bertha (my daughter) know what you think. :slight_smile:

13 Likes

Such a cool project, Morten and Bertha! Creating a game and tinkering with hardware is such a creative and meaningful way to learn. Glad to hear you both are enjoying the process :slightly_smiling_face:

1 Like

This is freaking cool! So you're using the ESP32 SDK along with Swift for this project?

1 Like

This is so cool to see :slight_smile:

2 Likes

I think this would make a good post for the Swift blog, if you wanted to write it up and take some pics of the hardware you're using.

@alexandersandberg, wdyt?

2 Likes

Very cool! :smiley:

Yes, this could make for a great blog post.

@Morten_Bek_Ditlevsen in case it's something you would consider, you can learn more about submitting a blog post proposal here: Swift.org - Blog Post Contributions

2 Likes

Thank you! :blush:
Yes, I followed the guides from the blog post on swift.org (Swift.org - Get Started with Embedded Swift on ARM and RISC-V Microcontrollers)
And the led-strip example from GitHub - apple/swift-embedded-examples: A collection of example projects using Embedded Swift

It was this post that got me interested in the esp32 and the led matrix:

1 Like

I would love to try writing a blog post - and go a bit more into detail about our experiences.

Thank you for the link - I’ll have s look! :blush:

3 Likes