Inspiration
I have always loved the classic Asteroids game. I was especially inspired by the 2D version from TD Restaurant. I became obsessed with the idea of rebuilding it in 3D.
I originally made a version in Unity for my dissertation. When I found this hackathon on Devpost, I decided to challenge myself by translating the project from Unity into Lens Studio.
The result is a simple AR arcade game where asteroids spawn in your space and you must destroy them before they reach you.
What it does
This game challenges you to destroy as many asteroids as possible before they collide with you.
You start with three lives. Each asteroid you destroy increases your score. If an asteroid reaches the player, you lose a life. When lives run out, the game ends.
How we built it
I built the entire project natively in Lens Studio using JavaScript.
I created a full object system inside the scene, including:
AR Camera for the player view Score and Lives UI text Asteroid prefab with collider and interaction Bullet prefab for shooting Asteroid spawner to generate targets A GameManager object that controls the full game loop
The GameManager acts as the central controller. It tracks score, lives, collisions, and the game over overlay.
Challenges we ran into
The biggest challenge was learning Lens Studio JavaScript from scratch.
I had experience with Java, C#, and C++, but Lens Studio scripting works differently. I had to learn how components communicate, how prefabs spawn, and how to manage interactions inside an AR scene.
Working solo also made time a major challenge. Most of my progress came from experimentation, tutorials, and support from classmates and lecturers.
Accomplishments that we're proud of
I am proud that I finished a complete playable AR game prototype.
It has working scoring, lives, spawning asteroids, shooting, and a game over state.
Even though it can still be polished, I shipped a full project under hackathon time pressure.
What we learned
This project taught me two big lessons:
Start earlier. Ask for feedback sooner.
Hackathons move fast, and collaboration or outside input can make a huge difference.
What's next for Game
I want to expand this into a more complete Snap AR game, including:
More difficulty levels Faster asteroids over time Better visual design and UI polish Asteroid break-apart effects A global leaderboard system
This is only the beginning, and I would love to keep building it further.
Built With
- javascript
- lensstudio
Log in or sign up for Devpost to join the conversation.