~/dimasw/portfolio/ar-tetris/ online
All projects
A 3D Tetris board standing on the floor of an office in AR, with a score, a Pause button, a Lock Board button, and Left, Down, and Right buttons.
A 3D Tetris board standing on the floor of an office in AR, with a score, a Pause button, a Lock Board button, and Left, Down, and Right buttons.

I struggled with coding in college. I had no idea what I was getting into when I started computer science. Most of the time I felt like I was failing, especially next to friends who were passionate and learned everything so fast.

That changed when I took a game programming class. I had played games since I was a kid, but I was nervous because everyone said game development was harder than regular programming. One of our first big tasks was to build a 2D Tetris game. Writing the game logic was one of the hardest things I had done up to that point. Even so, I could not stop working on it. I finished with a lot of help from my friends, and I enjoyed the whole process. That was when I realized game programming was what made me love coding.

Recently I watched the Tetris movie, and it reminded me of that first time I enjoyed coding. I wanted to build the game again, this time in 3D, so I could play it right in front of me. AR Tetris is that game. I used ARKit and SceneKit to make it.

How it plays

The board stands in the real room, seen through the iPhone camera. The pieces are 3D blocks that fall into it. You move them with on-screen Left, Down, and Right buttons. The screen also shows your score and the next piece, and it has Pause and Lock Board buttons.

Some of the gameplay, recorded on an iPhone.

I made this because Tetris is very meaningful to me.