🚀 Baseplay: Add achievements and leaderboards for your web game on Base easily.
One of my friends is currently building a game using on-chain nfts(scapes, mfers), and he mentioned that managing databases, auth, and security costs him time and money.
I used to build games on Android, and I was used to Google Play Games, so I thought of creating a similar experience on Base.
On Android, Google Play Games is the de-facto standard for adding achievements and leaderboards to games.
🏆 Baseplay provides on-chain services like leaderboards and achievements, similar to Google Play Games for Android.
⛓️ Our community prefers on-chain solutions, making Baseplay an ideal platform for blockchain gaming.
- Go to the Baseplay Dashboard

- Create a new game by clicking on "Create Game"
- Fill in the required details for your game
- Once created, you can view your game or click on "My Games" to see all your created games
If you want to verify the contract on sepolia
To integrate Baseplay into your game:
-
Include the Baseplay service script in your HTML file:
<script id="baseplay-service" src="https://baseplay.vercel.app/service.js?gameId=YOUR_GAME_ADDRESS"></script>
Replace
YOUR_GAME_ADDRESSwith your actual game contract address. -
Use the provided functions to manage achievements, leaderboards, and scores.
For a detailed example of how to use these functions, check out our example implementation.
- Go to your game's page on the dashboard
- Click on "Add Achievement"
- Fill in the achievement details (name, description, image)
- The image should be at least 30x30 pixels

Check out our demo here.
- Get my games in gamefactory
- Get total players for a game
- Get leaderboard on game
- Add link for game, on click it opens game
- Get all achievements and players who achieved them
- When a user views the leaderboard, they should see the achievements they have achieved
- Get owner and show on game page
- Finish create game page
- Add achievements to game from dashboard
- Make extension that allows to connect contract and allows dev to add achievements/leaderboards etc
- Fix the issue with localhost
- All achievements are saved on localstorage by default, if player wants to save on-chain, devs can add option to save on-chain
- Add leaderboard to the extension similar to achievements
- Check on testnet
- Add screenshot to README
- Verify signature in contract to avoid players directly interacting with contract
- Use onchainkit
- Use smart wallets
- Use coinbase wallet for demo
- What if players interact directly with contract, for e.g., setting leaderboard?
We're working on implementing signature verification in the contract to prevent direct interaction.
For more information and updates, stay tuned to our documentation and GitHub repository.
