Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdah/minecraft-weekend
Minecraft, but I made it in 48 hours.
https://github.com/jdah/minecraft-weekend
Last synced: 30 days ago
JSON representation
Minecraft, but I made it in 48 hours.
- Host: GitHub
- URL: https://github.com/jdah/minecraft-weekend
- Owner: jdah
- License: mit
- Created: 2020-04-19T22:17:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T21:24:17.000Z (7 months ago)
- Last Synced: 2024-09-30T18:20:47.670Z (about 1 month ago)
- Language: C
- Homepage:
- Size: 7.46 MB
- Stars: 3,970
- Watchers: 72
- Forks: 434
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minecraft, but I made it in 48 hours*
\* I've actually updated it since - [see this commit for the 48 hour version](https://github.com/jdah/minecraft-weekend/tree/cb19738305804b5734faa7118c1c784f26ff9463).
![screenshot](screenshots/1.png)
#### Features:
- Infinite, procedurally generated world
- Infinite height/depth
- Day/night cycle
- Biomes
- ECS-driven player and entities with full collision and movement
- Full RGB lighting
- Full transparency + translucency support
- Sprite blocks (flowers)
- Animated blocks (water + lava)
- Distance fog
- A whole lot of different block types
- More#### Building
##### Unix-like
`$ git clone --recurse-submodules https://github.com/jdah/minecraft-weekend.git`\
`$ make`The following static libraries under `lib/` must be built before the main project can be built:
- GLAD `lib/glad/src/glad.o`
- CGLM `lib/cglm/.libs/libcglm.a`
- GLFW `lib/glfw/src/libglfw3.a`
- libnoise `lib/noise/libnoise.a`All of the above have their own Makefile under their respective subdirectory and can be built with `$ make libs`.
If libraries are not found, ensure that submodules have been cloned.The game binary, once built with `$ make`, can be found in `./bin/`.
*Be sure* to run with `$ ./bin/game` out of the root directory of the repository.
If you are getting "cannot open file" errors (such as "cannot find ./res/shaders/*.vs"), this is the issue.##### Windows
good luck 🤷♂️ probably try building under WSL and using an X environment to pass graphics through.