NexusXP: A next-gen AR/VR adventure where you can buy and unlock digital models powered by blockchain technology.
NexusXP is an exciting AR/VR game where players can interact with 3D models and unlock new ones by increasing their scores. The game is built on the Mantle blockchain, which enhances the Ethereum blockchain by offering faster and cheaper transactions. This allows users to buy, unlock, and use various models within the game.
I used infura api key which is now a part of metamask, you can find it here: Infura RPC API
I started the project by integrating AR/VR features using the SceneView library in Jetpack Compose, enabling smooth gameplay with interactive 3D models. After that, I learned about the Mantle blockchain, which is a Layer 2 solution built on Ethereum, and decided to integrate it using Web3j, a Kotlin SDK, to make smart contract transactions. I created a smart contract to handle various game functions like adding, buying, unlocking, and updating models, as well as managing player scores.
Resource I used for AR/VR implementation using SceneView: SceneView , SceneView implementation in Jetpack Compose
Resources I used for deploying and test my Smart Contract: Remix IDE , Mantle Sepolia Explorer
Resources I used for web3j android sdk: web3j sdk
The biggest challenge was understanding how to interact with smart contracts, but I overcame it and successfully integrated the blockchain features into the game. Players can now use their scores to either unlock new models or directly purchase them using smart contract calls.
To make the game more immersive, I added sound effects that trigger whenever a player scores, making the experience more thrilling. The final step was improving the UI to ensure a smooth and enjoyable experience for users.
NexusXP brings together AR/VR gaming with blockchain technology, offering players a unique and fun way to unlock and play with 3D models while using their scores as rewards.
I started learning SceneView for AR/VR integration in my project and created a demo with single models. Then, I explored Mantle blockchain, using Web3j Kotlin SDK to interact with my smart contract (address: 0x855ca462005f7DacC1E5c9ea29D43A2f84B58bda) for functions like addItem, buyItem, updateScore, and unlockItem. Despite the challenge of understanding Web3j, I successfully integrated AR/VR and score-based model unlocking. I added sound effects and polished the UI for a seamless user experience, completing the game.