Inspiration

I've always been a fan of Football. I used to play football when I was in school. Later playing football on the field turned into playing FIFA on the Playstation. Since AR is definitely the future, this is my take on brining a hint of football into the AR space.

What it does

It is a two player lens game where one player has to shoot the ball inside the goal post to score points, while the other player controls the position of the goal keeper and tries to block the ball shot by the first player.

How we built it

We mainly used 3 features of Lens Studio, Surface Tracking, Physics and the Realtime Store. With surface tracking, we place the game setup on a surface. We use the device's angle to aim the ball and also control the keeper's position. These angles are then synced across devices. With these angles and the power that is to be applied to the ball, physics comes in play in making everything work inside the game. Realtime store is what makes all the synchronization possible.

Challenges we ran into

Working with Lens Cloud was a bit confusing at first as it is a very new feature. There were limited documentation regarding the feature. However, the template 'Realtime Store' really helped us in getting a head start on the feature.

Accomplishments that we're proud of

We were able to work with Lens Cloud with the help of templates provided on the Lens Studio. We are also proud of the physics involved in kicking and aiming the ball and the goal keeper.

What we learned

With this project, we got to learn about the Lens Cloud and its Realtime Store feature. It was amazing to see lenses on multiple devices communicate so flawlessly with each other. We also got the chance to use physics which made working on the lens so much easier.

What's next for Penalty Shootout

We plan on adding more game modes, for example: A target shown on the goal post, where, if the ball hits, the player gains additional points. A turn by turn game where players can switch between the shooter and the goal keeper. We also plan on increasing the accuracy and the efficiency of the communication and hence better synchronize the position of objects between devices.

Built With

Share this project:

Updates