1 of 21

Resources to get started

2 of 21

Game dev resources

Magic block gaming resources

https://github.com/magicblock-labs/solana-gaming-resources

Helius gaming article:

https://www.helius.dev/blog/gaming-how-solana-is-changing-the-playfield

Solana Game Dev Resources:

https://solana.com/de/developers/guides/games/getting-started-with-game-development

3 of 21

Unity SDK

  • NFT support
  • Candy machine integration
  • Transactions
  • RPC functions
  • Phantom deep links
  • WebGL connector
  • Reliable WebSocket connection support
  • Mobile wallet-adapter
  • Sessions keys for auto approving transaction
  • Anchor client code generation and more.

4 of 21

Godot SDK

  • 10 Video Tutorial series:
    1. https://www.youtube.com/watch?v=_xxMkRZIY98

  • SolanaUtils
  • SolanaClient
  • Account
  • Transaction
  • WalletAdapter
  • ComputeBudget
  • SystemProgram
  • TokenProgram
  • MplTokenMetadata
  • AssociatedTokenAccountProgram
  • MplCandyMachine
  • MplCandyGuard
  • AnchorProgram

5 of 21

Phaser SDK

6 of 21

  • Non-Custodial Wallets
  • No seed-phrases. No passwords
  • Minting Game Assets
  • Branded Marketplace
  • Credit Card Payments

7 of 21

Solana Labs Game Shift

Easy to use API to create users and mint compressed nfts with checkout.

https://gameshift.solanalabs.com/

https://solplay.de/cubeshift/index.html

https://twitter.com/solana_devs/status/1723004132678623463

https://github.com/solana-developers/cube_shift

8 of 21

Thread on resources

https://x.com/SolPlay_jonas/status/1731776024310903087?s=20

https://www.helius.dev/blog/gaming-how-solana-is-changing-the-playfield

9 of 21

Tiny adventure

Anchor - JS - Unity

https://github.com/solana-developers/solana-game-starter-kits

10 of 21

Lumberjack

npx create-solana-game <name>

11 of 21

City Builder

Anchor - Unity

12 of 21

https://github.com/magicblock-labs/Solana-Unity-Chess

Chess

Anchor - JS - Unity

13 of 21

Auto approve transactions

14 of 21

Auto approve transactions

1) Solflare auto approve burner wallets

2) Create a local keypair

3) Gum session keys

4) Durable nonces

5) Clockwork threads

6) Sign in the backend

15 of 21

Sol flare out approve

pro

  • per app
  • rescured by the wallet
  • works on all apps

contra

  • Need to teach ppl how to set it up
  • Needs to be funded before usage
  • Only works with solflare

16 of 21

Create local keypair

pro

  • Nice ux
  • Easy to setup
  • works for all programs

contra

  • Can get lost when player clears cache
  • Is saved in browser db which can eventually leak
  • Can lead to player loosing his game state when not handled properly

17 of 21

Gum session keys

pro

  • Nice ux
  • Easy to setup
  • Token has expiry

contra

  • Is saved in browser db which can eventually leak
  • Sol can get lost when refund is not handled properly in the client

https://solplay.de/solana-2048/

18 of 21

Durable nonce

Use durable nonces transactions and sign a bunch in advance and trigger them when needed. Havent tried yet.

pro

  • Easy to use
  • Nice ux

contra

  • Hard to program?!
  • Potentially dangerous since the could be triggered later

https://solplay.de/solana-2048/

19 of 21

Clockwork threads

Just an idea by now. Make threads send transactions and take the fees from a PDA

https://solplay.de/solana-2048/

20 of 21

Sign in backend

pro

  • Easy to use
  • Nice ux

contra

  • You pay the fees
  • Game only playable as long as your backend is alive
  • Not really on chain

https://solplay.de/solana-2048/

21 of 21

Resources

  • https://github.com/magicblock-labs/solana-gaming-resources
  • Solana 2048 :
  • Seven seas: https://github.com/solana-developers/solana-game-starter-kits/tree/main/seven-seas
  • Zero copy example:
    • https://beta.solpg.io/tutorials/zero-copy
    • https://github.com/solana-developers/anchor-zero-copy-example/blob/main/README.md
  • Randomness example:
    • https://beta.solpg.io/tutorials/battle-coins