I built my first accessible game in Swift Playgrounds on my iPad!!

By Hannah Main, 19 May, 2025

Forum
iOS and iPadOS Gaming

Hi yall! I thought I could dig in to some coding a little bit and build my first accessible game entirely in Swift Playgrounds! It’s a simple game inspired by a carnival game in which a person swings a mallet to test their strength with the goal of ringing a bell and earning points. In tghis game, you start off with 12 swings, with a missed hit or attempted hit losing you one swing and a bell ring earning it back.
Features: Score tracking, the ability to reset both high score and your current score, a New Game button that lets you start the game over with 12 swings, fully VoiceOver compatible, sound effects that closely mimic the mallet and bell, and a Settings screen that lets you choose your difficluty.
Here is a short YouTube demo: https://youtu.be/rsZBB9bVbvM?si=No8eDgc-BeR_JY9S

Options

Comments

By João Santos on Monday, May 19, 2025 - 06:34

I'm a seasoned developer, totally blind for 11 years, love coding, and have historically spent a lot of time sharing everything I know with everyone who wants to learn, because this ability to build stuff out of pure ideas is so powerful, and the results of experiencing your own ideas in reality is so uplifting and addictive in a good way, that I think everyone should experience it at least once in life. Unfortunately most people seem to have some kind of mental blockage preventing them from learning, and of those who can learn, only a small few seem to have the right self-teaching instinct, so what I usually do is try to demystify things in hopes that by showing people how to tackle complex logical problems by breaking them down until they become cognitively manageable, I can make the pieces fall into place in their heads and show them how to learn by themselves. In this context, hearing about someone successfully getting into the field all by themselves just feels great!

As for the video, while the game mechanics are not very clear to me from audio alone, the fact that you managed to build it, make it accessible, and even make it play audio clips is a really good achievement, especially if you just got started. Next step should probably be learning to use Xcode on macOS, followed by learning to use git so you can snapshot your progress over time and take advantage of all the benefits of using a version control system.

Welcome to the field! Be warned that you're getting into a pretty deep rabbit hole in which I've been happily lost exploring for 28 years at this point. The learning never ends, knowledge grows exponentially so your learning rate will increase a lot over time, however so does technology so you'll never hit a plateau, which is precisely what I love about this. If you keep it up, you will eventually reach a point in which your potential to change the world all by yourself becomes so great that the sheer amount of available possibilities will become your biggest problem. Best of luck!

--

Edited to modify the first paragraph in a way that what I was trying to say actually makes sense.

By ming on Monday, May 19, 2025 - 08:47

sounds a very simple but intersting game...
can I have the app store link?

By JC on Monday, May 19, 2025 - 13:08

Awesome! what app did you use to record that youtube video? screen record?

By Greg Wocher on Monday, May 19, 2025 - 16:29

Hello,
THis is impressive. How did you do working with swift playgrounds? I have tried using it in the past but had too many issues. Focus would jump around and I would often get stuck when trying to move to my errors in the code.

By TheBlindGuy07 on Monday, May 19, 2025 - 16:35

Amazing. I am more impressed by the fact that you did this just with swift playground!