Moving a player onchain
Tiny adventure is a simple example of moving a player left and right onchain with the Anchor framework and a TypeScript client.Saving SOL in a PDA
Learn how to save SOL in a PDA seed vault and send it back to a player. This backend is written in Anchor, and the guide plays the game from a TypeScript client.Use Solana Pay QR codes to control a game
Solana Pay transaction requests can not only be used for payments but for signing any transactions on a phone wallet or a link, including for games. Tug of war is a multiplayer game which can be player with many people on a big screen, using Solana Pay QR codes to pull the rope one way or the other, which in turn changes data in an account. The rewards will be payed out to the team that manages to the rope pull completely to one side. The backend is Anchor and the frontend is React.js and Next.js 13.How to build a round-based multiplayer game
A simple multiplayer tic tac toe game written with MagicBlock Bolt, an entity component system built on Anchor.Onchain Chess
Complete onchain playable chess game written in Anchor with a 3D Unity implementation. Send someone a link to start a game. PlayEntity component system examples
MagicBlock Bolt
MagicBlock Bolt is an onchain entity component system. MagicBlock is alsoworking on an ephemeral rollup system for super fast transactions.
Hide game state from other players
Hiding data onchain is difficult because all accounts, including data accounts, are public and can be read by anyone. There are some solutions to the problem though.Light protocol
Light protocol is a ZK layer solution on Solana that lets you built on Solanawith ZK compression, a new primitive that enables the secure scaling of state directly on the L1.
Race Protocol
Race protocol is building an onchain poker game and have two solutions forhiding data. One is server-based and one relies on players sending encrypted
data to each other. Source