n3rdium / pycraft Goto Github PK
View Code? Open in Web Editor NEWA Minecraft clone written in python and glfw/OpenGL.
License: MIT License
A Minecraft clone written in python and glfw/OpenGL.
License: MIT License
The game's framerate deteriorates as we go further exploring the world.
Steps to reproduce the behavior:
Expected behavior
The game should run smoothly even when we go further into the world.
Solution
We need to remove chunks which are too far away from the memory, maybe even create a separate renderer for each chunk.
So, whether I want to contribute, before contributing please make a dep installer (dependinces installer) so we can execute your scripts. After that, If possible, I will contribute. Please help!
Dep installer for packages
Traceback (most recent call last):
File "C:\Users\pdv\PyCraft_main_.py", line 1, in
import pyglet
ModuleNotFoundError: No module named 'pyglet'
I already install pyglet in my conda env. what else i do to play the game?
Deps are the following - glfw , PyOpenGL , pillow , pygame
Suggested fix -
add the following code
python -m pip install --upgrade glfw
python -m pip install --upgrade PyOpenGL
python -m pip install --upgrade pillow
python -m pip install --upgrade pygame
If You've contributed to this repository in any way, add your name to the contributors list!
Example usage:
@all-contributors add @somePythonProgrammer for Code, Ideas
Currently, PyCraft uses a texture atlas for all the textures. This causes some limitations. We need to use glTexImage3d
and glTexSubImage3d
for the TextureManager
class.
Describe the bug
The FPS meter goes lower than 1.0 while loading chunks.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We need to add multiprocessing or threading for efficiency.
Desktop
The game textures currently are AWFUL. We need better textures for the game. Anyone who is good with textures can open a PR with new textures. Please note that the textures should be 16x16 pixel PNGs.
Hi, I saw on the README that you pointed out the game freezes while loading chunks.
What I think you should do is add a render distance feature. If you've played Minecraft, you would know that there is a value
called render_distance that basically detect the player's position in the world, and then renders a certain number of chunks so that the game does not lag. Else, if the world is infinitely generated, and the render distance is set to infinite (as it is now), it could cause the game to freeze like anything or even crash the game. Please implement this feature so that the game runs as expected.
Thanks,
@Adatta1276
Currently, PyCraft has plain textured blocks. We need to add some kind of shader, or a translucent overlay for shading blocks. We also need to add a new Lighting
class in terrain/
, which will store all the block shading values when the game is running. The shading value of a face depends on the lighting values of the nearby coordinates.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.