Giter Club home page Giter Club logo

Comments (5)

ocarneiro avatar ocarneiro commented on June 24, 2024 3

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.

traverseda avatar traverseda commented on June 24, 2024
  • We're also going to need a system for loading in objects.

from pycraft.

traverseda avatar traverseda commented on June 24, 2024

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.

traverseda avatar traverseda commented on June 24, 2024

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.

traverseda avatar traverseda commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.