Comments (5)
I've started a similar project some time ago (https://github.com/ocarneiro/mine.py) and bumped into the separation between the pyglet implementation of showing the blocks and the model itself.
My approach was to make a separate World object that can be drawn in text mode.
Please take a look at my repo and take anything you find useful. I'll check in here often to see how I can help.
Congratulations on your effort!
from pycraft.
- We're also going to need a system for loading in objects.
from pycraft.
https://github.com/diffoperator/pycow Might be a relatively painless solution to our massive object duplication thing.
A chest is a generic chest, until you write to it. Grass is probably always generic grass, unless you instantiate it with some biome specific stuff or something.
What I'd really like is CoW classes along with some kind of deduplicaition, but that's a bit much to expect.
from pycraft.
Yeah, I saw that. I suspect I'll be pulling a lot out of that. The only reason I haven't merged it straight in is because I already started on some object oriented block stuff.
@TristanTrim, this might be relevant to your interests, especially the text mode stuff.
from pycraft.
class StonePickaxe(Tool):
durability = 1000
recipe = [
[Stone, Stone, Stone],
[None, Stick, None],
[None, Stick, None],
]
def hit(self, block):
edric_garran on reddit
from pycraft.
Related Issues (20)
- Make textures clearly belong to blocks HOT 3
- Seperate "world" and "window" HOT 1
- util.normalize() is rounding? HOT 9
- Define a structure for Game States HOT 1
- Current queue is stupid.
- Destroying hidden blocks causes keyerror.
- Regular rather than matrix addition HOT 5
- normalize HOT 1
- Basic Work? (Finding new textures) HOT 14
- test_licences failing HOT 4
- Decoupling view and world logic. HOT 2
- Fog doesn't work on Mac HOT 1
- Placing WeakStone causes KeyError
- Right click places two blocks HOT 5
- What are the Intended Target platforms for pycraft? HOT 3
- The 'pip install -e .' command doesn't work HOT 12
- Crash and error HOT 2
- HUGE terrain gen improvement HOT 2
- Depend on redis? (if you use a non-unix platform, please give this a read) HOT 7
- Better installation instructions for readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycraft.