You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comets is a fully-onchain space-themed game rollup inspired by the classic Asteroids.
6
+
Navigate through a field of asteroids, blast them into smaller pieces, and watch out for alien ships!
7
+
8
+
## Controls
9
+
10
+
- Press `ENTER` button to start the game
11
+
- Rotate: Left/Right arrow keys or A and D
12
+
- Thrust: Up arrow or W
13
+
- Fire: Space bar
14
+
- Hyperspace: CTRL
15
+
16
+
Every step of your gameplay is recorded and verified on-chain so that your score is unspoofable and your legendary run will be remembered forever!
17
+
18
+
Play it here: https://comets.stf.xyz/
19
+
20
+
## Development
21
+
22
+
Comets is composed of two parts:
23
+
24
+
- a frontend game client
25
+
- a micro-rollup web server
26
+
27
+
To run it locally, you need to first spin up the rollup.
4
28
5
29
```shell
6
-
# Build Client
7
-
npm run build:client
30
+
cd game
31
+
vim .env
32
+
# set up your rollup config
33
+
# add PRIVATE_KEY=<your-private-key>
34
+
npm i
35
+
# start the rollup server
36
+
npm start
8
37
```
9
38
39
+
The server should be running on port 3210 by default.
40
+
41
+
Now run the Next.js app.
42
+
10
43
```shell
11
-
# Start Server
12
-
npm run start:server
44
+
cd client
45
+
vim game/src/api.ts
46
+
# set API_URL=http://localhost:3210
47
+
npm install
48
+
npm run dev
13
49
```
50
+
51
+
And voila! You're ready to play on your local machine at http://localhost:3000.
52
+
53
+
## Deployment
54
+
55
+
To deploy your own version of Comets on Sepolia, make sure to properly setup your config by following this [step](https://docs.stf.xyz/build/zero-to-one/build-your-first-mru#setting-up-your-config).
56
+
57
+
Then, follow the remaining guide to deploy your very own Comets rollup.
0 commit comments