正在加载视频...
视频加载失败
1/ 🎮 Gamejam is coming this Wednesday so we built a new example game! Check out on-chain 2048: Match tiles until you reach a 2048 tile. Every move is on-chain and this has many advantages, believe it or not. How does it work? 🧵👇
8 条评论

2/ 🤝 Auto-approve: The game uses @gumisfunn session keys. This means a small amount of SOL is saved in a session token. The session token is valid for 24 hours and is allowed to sign for certain actions in the program, namely the “push tiles into a direction instruction”.

3/ ⚡Speed: What makes the game so fast? ✅Solana’s fast confirmation times ✅Listening to game data accounts via WebSocket connection

4/ 🔐 Verifiable: Every game is saved in a PDA. This PDA is either attached to the player wallet or any NFT. This means you can verify the game state yourself just by requesting the PDAs data.

5/ 🏗️ Composable: There is a small gameplay fee, which can be replaced with the wallet address of the person hosting the client. You don't even need to build the program. Just fork it and deploy your own! If you would like to contribute, please open a PR:

6/ 💻 Intrigued and want to build a game on Solana? Get involved in Solana Speedrun, a Gamejam starting this Wednesday July 26th:

Wow I didn't even consider using a websocket callback for state accounts. I've been polling this whole time 🤦

Nice

siiick


