正在加载视频...

视频加载失败

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? 🧵👇

49,194 次观看 • 3 年前 •via X (Twitter)

8 条评论

Solana Developers 的头像
Solana Developers3 年前

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”.

Solana Developers 的头像
Solana Developers3 年前

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

Solana Developers 的头像
Solana Developers3 年前

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.

Solana Developers 的头像
Solana Developers3 年前

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:

Solana Developers 的头像
Solana Developers3 年前

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

🪷Blockiosaurus🪷🦾 的头像
🪷Blockiosaurus🪷🦾3 年前

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

guv 🐸 的头像
guv 🐸3 年前

Nice

amilz 的头像
amilz3 年前

siiick

相关视频