vCoder: Learn to Code in Virtual Reality

Kenneth Ng
Oct 22, 2018 · 5 min read

vCoder is a virtual reality game that teaches computer science fundamentals through problem solving objectives. It is designed to attract, inspire, and empower new programmers.


vCoder is a participant of the 2018 Oculus Launch Pad (OLP) and one of the winners of the scholarship. As a participant of this program, we had two months to deliver a polished and functional prototype to compete for a scholarship.

Our mission for vCoder is to create the first educational coding game that teaches computer science directly inside virtual reality. The approach offers significant benefits over traditional platforms.

  • The immersive quality of VR means that the player gets to be the hero rather than control the hero, resulting in a personalized and more focused learning experience.
  • Transforming the coding language into something physically interactive improves recall and the speed of learning.
  • Merging the coding lessons into a game allows for real-time feedback on the player’s decisions.

By gamifying the education and leveraging the enclosed and interactive nature of virtual reality, vCoder makes learning coding more engaging and experiential. With vCoder we can nurture interest in computer science at an early age and ultimately improve the diversity of students majoring in computer science.

Along with a small team of six engineers and artists, my objective as the developer was to deliver a fully functional prototype that encapsulated that mission. The design criteria included:

  1. An interactive, spatial coding language that’s easy to learn, primitive, and feels natural in virtual reality.
  2. Locomotion for 3D movement and exploration.
  3. Hand-tracking and 3D controls for physical interactions.
  4. Objective-based lessons.
  5. Guided, step-by-step tutorial with sequential lessons that build on previous learnings.


In vCoder, players play as a superhero traversing through a broken world and must solve coding challenges using coding blocks.

On the left hand, players have a coding ray that they can use to extrapolate an object’s code. Once the player extrapolates the code, the player can open their coding block inventory and commence with manipulating the object’s code.

The coding blocks are based on the Scratch grammar. This was an intentional design choice—since Scratch is used by primary school students for learning coding, we felt the best way to onboard that same market onto our platform was to introduce a familiar language, thereby reducing user friction.

Each coding lesson is objective-based, which means that the player passes the lesson only once they’ve achieved the objective and not when they’ve picked the right blocks. We believe everyone has a unique thought process for discovering the solution, so there is no right way to accomplishing anything. For each lesson we unlock a multitude of coding blocks that players can choose from, which inspires them to be creative and play around with different sequences to achieve the correct end result.

For the core puzzle we created a rendition of Beat Saber, which we cleverly called Beach Saber… I’ll see myself out… We wanted the goal of the higher-difficulty puzzle to be easily identifiable, so we figured that players would enjoy interacting with the world using familiar mechanics from popular VR titles.

The game and coding language are seamlessly integrated to provide real-time feedback.

Throughout the lesson, you are guided by a friendly bot called Cod-E. Additionally, you meet fun, likeable characters like Mr. Orca.

Production and Engineering

In my previous experience managing my own indie game development studio, I became a huge proponent of agility, efficiency, and scalability—the earlier you prepare, the less headaches you’ll deal with that impede progress and potentially lead to burnout.

I developed the vCoder prototype in Unity and implemented Virtual Reality Toolkit (VRTK) to make vCoder cross-platform. Deploying a build for Oculus and HTC was, for the most part, effortless.

I utilized ScriptableObject events and event listeners to create a clean, efficient, and fully decoupled game architecture. The following system is from Schell Games’ “Game Architecture with Scriptable Objects” presentation at Unite Austin 2017.

Game Event
Game Event Listener

Given that our team consisted of only five people, I wore many hats, one of which was the producer. I facilitated the weekly sprint planning, retrospectives, and tech demoes and kept the team on track with scheduled and goal-oriented task lists, updated wikis, and status updates. I also helped write the business plan and pitch deck for investor meetings.


As of this publication date, we’re waiting to see if we received the OLP scholarship. We should expect a response by mid-November. Regardless of whether or not we receive funding from Oculus, we’re going to continue working on the game by bootstrapping and seeking other sources of funding.

We’re actively addressing the core feedback from our players and stakeholders. Since the prototype was quickly hacked together, I’m putting together a plan to restructure the game architecture—tidy it up, write more scalable code, and create tools to streamline the development process.


Beach Day Studios

  • Angela Patterson CEO
  • Keith Patterson COO Engineer
  • Kwan Sukasame Art Director
  • Kenneth Ng Producer Engineer
  • Tejas Shroff Designer Engineer

Thanks for reading!

Kenneth Ng

Software Developer and MBA Candidate

Kenneth Ng

Written by

Software Developer

Kenneth Ng

Software Developer and MBA Candidate

More From Medium

Also tagged Virtual Reality

Top on Medium

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade