Loading video...

Video Failed to Load

Go Home

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,206 views • 3 years ago •via X (Twitter)

8 Comments

Solana Developers's profile picture
Solana Developers3 years ago

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's profile picture
Solana Developers3 years ago

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

Solana Developers's profile picture
Solana Developers3 years ago

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's profile picture
Solana Developers3 years ago

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's profile picture
Solana Developers3 years ago

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

🪷Blockiosaurus🪷🦾's profile picture
🪷Blockiosaurus🪷🦾3 years ago

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

guv 🐸's profile picture
guv 🐸3 years ago

Nice

amilz's profile picture
amilz3 years ago

siiick

Related Videos