Skip to content

zcy1024/WalrusDevnetHackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WalrusDevnetHackathon

Walrus Devnet Hackathon

Things to note

Please set the wallet you want to use to the testnet in advance.

This is a small achievement of personal learning and development,which is still many imperfections in it, please forgive me.

If you find someone maliciously brushing the rankings, you can use sui client call --package $PACKAGE --module rank_list --function clearRankList --args $RANKLIST to reset the rankings.($PACKAGE, $RANKLIST can be obtained at the end of the article.)

How to play

online

Thanks to the Walrus, we can play it on the website: https://f7qth1u61nf2e2h0p4k7zbls34v3cpuat456i86vuyey1z5ba.walrus.site or https://zcy1024-walrusdevnethackathon.walrus.site/

More infomation for the Walrus, please click this to learn.

Demo video: https://aggregator.walrus-testnet.walrus.space/v1/blobs/lzHY6gnFLr3ZhLraFELutYNEso6GczYPyGWzdJTUQ3w and then open it with mp4 as the suffix.

local

Of course, you can also run this project locally. (If subsequent Walrus version updates or SuiNS expires and the above URL becomes unavailable, please also read below)
But please note that no matter which way, if you want to have a better experience, you need to have Sui Wallet.

cd ran_dir_shoot_game
pnpm install
pnpm run dev

In the worst case, the reset of Sui testnet makes the published Sui Object invalid, so please publish it yourself and update the relevant information in frontend/src/components/ids.ts before use.
At the same time, the static resources (pictures) of the NFT collection are obtained from Walrus. If it becomes invalid, please enter ran_dir_shoot_game/sources/nft.move to change the related content.

Game rules

normal mode

W/A/S/D or Arrow keys to move.

Fire bullets randomly.

Points are scored based on the initial radius of enemies destroyed.

After 100 bullets, the score will be settled.

If your score can be on the list (top ten), you can choose to pay a certain amount to update the list and get a unique NFT collection at the same time.

rainbow mode

Your bullets will be of random colors, and bullets of different colors have different effects.

When you give a fatal blow, your score may increase significantly.

It is worth noting that you need to pay a certain amount in advance to enable rainbow mode.

Sui Move testnet version 5

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Object Changes                                                                                          │
├─────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Created Objects:                                                                                        │
│  ┌──                                                                                                    │
│  │ ObjectID: 0x14c592054f5ee4b8c918abaa3a0fde131d60db3c96cdc8936c441d72c961d64f                         │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                           │
│  │ Owner: Shared( 146332938 )                                                                           │
│  │ ObjectType: 0x376bb2eac064012f4bc69e5a083693a3f1edfef2287e21f5480b14b9727e432a::rank_list::RankList  │
│  │ Version: 146332938                                                                                   │
│  │ Digest: uXm8w5efhT8gNM4KpDdJcMw6RFJJnxL6KZeYU7BURmk                                                  │
│  └──                                                                                                    │
│  ┌──                                                                                                    │
│  │ ObjectID: 0x9facd448c318704e052f8f54dcc948694cc1921803106bb1e2961b58cbb2cac7                         │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                           │
│  │ Owner: Account Address ( 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67 )        │
│  │ ObjectType: 0x2::package::UpgradeCap                                                                 │
│  │ Version: 146332938                                                                                   │
│  │ Digest: EN8iVUowg1aKcThxMop3vqLTn12gzdy3zzRszXGiQgYp                                                 │
│  └──                                                                                                    │
│  ┌──                                                                                                    │
│  │ ObjectID: 0xa8cc284f2e110bed4f19ca63752c5ba5f097fc929ea17b3241ea0a6964ddf5bd                         │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                           │
│  │ Owner: Account Address ( 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67 )        │
│  │ ObjectType: 0x2::package::Publisher                                                                  │
│  │ Version: 146332938                                                                                   │
│  │ Digest: DdyG6nCjGqv7ugNz4Y1kDWiMsqmKEYnuu4twXEAiAuM2                                                 │
│  └──                                                                                                    │
│  ┌──                                                                                                    │
│  │ ObjectID: 0xc554f6f828091cc0ce50ac49061c502b4a258a95865cdf668abe563b5766d37b                         │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                           │
│  │ Owner: Shared( 146332938 )                                                                           │
│  │ ObjectType: 0x376bb2eac064012f4bc69e5a083693a3f1edfef2287e21f5480b14b9727e432a::admin::Income        │
│  │ Version: 146332938                                                                                   │
│  │ Digest: FmjYBM2aY9627BfU1NKAYxWoAbsCJTfw4YJxC4BjnEW7                                                 │
│  └──                                                                                                    │
│ Mutated Objects:                                                                                        │
│  ┌──                                                                                                    │
│  │ ObjectID: 0x01676de212960b0689245914312ac6be3b4d5cffa0cae91ef527441b894f746a                         │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                           │
│  │ Owner: Account Address ( 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67 )        │
│  │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI>                                                           │
│  │ Version: 146332938                                                                                   │
│  │ Digest: 7akSiHtoMnT59PmdeBQrTzeuP5ts3chCJuBdeXqP3vr9                                                 │
│  └──                                                                                                    │
│ Published Objects:                                                                                      │
│  ┌──                                                                                                    │
│  │ PackageID: 0x376bb2eac064012f4bc69e5a083693a3f1edfef2287e21f5480b14b9727e432a                        │
│  │ Version: 1                                                                                           │
│  │ Digest: 8grL6fNZKcCf5gFcnrQntdS9NN39kTAjJeh9Qfv4JJFv                                                 │
│  │ Modules: admin, nft, rainbow, rank_list                                                              │
│  └──                                                                                                    │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯

# update:
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Object Changes                                                                                   │
├──────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Mutated Objects:                                                                                 │
│  ┌──                                                                                             │
│  │ ObjectID: 0x010197a08408a9f3bd34782ae3bb45c8c5e72b1d8e2e4c7794f417b4a429c3dc                  │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                    │
│  │ Owner: Account Address ( 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67 ) │
│  │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI>                                                    │
│  │ Version: 186215039                                                                            │
│  │ Digest: G1Lh2mdWe93XWEywchPdSrePEUfqpNEemwB255fVcaR5                                          │
│  └──                                                                                             │
│  ┌──                                                                                             │
│  │ ObjectID: 0x9facd448c318704e052f8f54dcc948694cc1921803106bb1e2961b58cbb2cac7                  │
│  │ Sender: 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67                    │
│  │ Owner: Account Address ( 0x9e4092b6a894e6b168aa1c6c009f5c1c1fcb83fb95e5aa39144e1d2be4ee0d67 ) │
│  │ ObjectType: 0x2::package::UpgradeCap                                                          │
│  │ Version: 186215039                                                                            │
│  │ Digest: 8SEbAvpUMXhEisfgnmn7Z9FGg7gVfENfHmhdnkDkybse                                          │
│  └──                                                                                             │
│ Published Objects:                                                                               │
│  ┌──                                                                                             │
│  │ PackageID: 0xc6af33722eb24a38b9d819a9ffbcf089ad69a6135dd9848e5a4ff520c2264e74                 │
│  │ Version: 2                                                                                    │
│  │ Digest: 35bfmGgJfCjZhHJgpEY8feu46BUU2pXcpqLGDqFCqQPr                                          │
│  │ Modules: admin, nft, rainbow, rank_list                                                       │
│  └──                                                                                             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

About

Walrus Devnet Hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published