diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9474a2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.env +.env.local +*.local diff --git a/apps/client/.env.example b/apps/client/.env.example new file mode 100644 index 0000000..d4e5c26 --- /dev/null +++ b/apps/client/.env.example @@ -0,0 +1,12 @@ +VITE_SERVER_URL=ws://localhost:2567 + +# Minitia chain (set after weave init) +VITE_CHAIN_ID=moveshot-1 +VITE_RPC_URL=http://localhost:26657 +VITE_REST_URL=http://localhost:1317 +VITE_INDEXER_URL=http://localhost:8080 +VITE_NATIVE_DENOM=umin +VITE_CONTRACT_ADDRESS=0x1 + +# InitiaScan explorer (for tx links) +VITE_EXPLORER_URL=https://scan.testnet.initia.xyz/initiation-2 diff --git a/apps/client/index.html b/apps/client/index.html new file mode 100644 index 0000000..40e79ed --- /dev/null +++ b/apps/client/index.html @@ -0,0 +1,18 @@ + + +
+ + +WASD — move · Mouse — aim · Click / Space — shoot
+Competitive 2D Shooter on Initia Blockchain
+Own your weapons. Record your wins on-chain.
+ + {/* Auto-sign prompt shown after wallet connection */} + {isConnected && !isAutoSignEnabled && ( +{autoSignError}
} + + + +Best-of-3 rounds, 30 seconds each. No respawns.
+Every match result recorded on Initia Minitia.
+Weapon skins are Move resources. Yours forever.
+Playing as: {username}
+ +{joinError}
} +ROOM CODE
+{roomCode}
+ +Play against a bot instead?
+Auto-accepting in {botCountdown}s
+WASD / Arrows — move & jump · Mouse — aim · Click / Space — shoot
+