Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/latticexyz/opcraft
https://github.com/latticexyz/opcraft
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/latticexyz/opcraft
- Owner: latticexyz
- License: gpl-3.0
- Created: 2022-07-27T21:33:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T22:44:34.000Z (over 1 year ago)
- Last Synced: 2024-04-14T01:53:50.313Z (5 months ago)
- Language: TypeScript
- Homepage: https://opcraft.mud.dev
- Size: 254 MB
- Stars: 109
- Watchers: 6
- Forks: 38
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OPCraft
An infinite, unstoppable World.
The main branch client is automatically deployed to [craft.mud.dev](https://craft.mud.dev).
Visit the frozen world of the first public playtest of OPCraft at [opcraft.mud.dev](https://opcraft.mud.dev).
Read more about the [creation of OPCraft](https://lattice.xyz/blog/making-of-opcraft-part-1-building-an-on-chain-voxel-game) and [the crazy things that happened during our first public playtest](https://lattice.xyz/blog/making-of-opcraft-part-3-what-happened-in-two-weeks-of-OPCraft) on the [Lattice blog](https://lattice.xyz/blog).
Built using [MUD](https://github.com/latticexyz/mud) and [Noa](https://github.com/fenomas/noa).
### Running locally
1. Run `yarn` to install dependencies
2. Run `yarn start` in `packages/client`
3. In a new terminal, run `yarn anvil:node` in `packages/contracts`
4. In a new terminal, run `yarn deploy:anvil` in `packages/contracts`### Running locally with HMR
Parcel + HMR doesn't fully work and React changes will cause a full page reload unless we take a few extra steps to link packages locally and use Vite for bundling.
1. Clone [mud](https://github.com/latticexyz/mud) repo locally (next to your opcraft dir)
2. Run `yarn && yarn link:packages` from within mud repo to install its deps and link packages
3. Run `yarn && link:mud` from within opcraft repo to install its deps and link mud packages
4. Run `yarn dev` in `packages/client` (note `yarn dev` not `yarn start` like above)
5. In a new terminal, run `yarn anvil:node` in `packages/contracts`
6. In a new terminal, run `yarn deploy:anvil` in `packages/contracts`