Git Product home page Git Product logo

Comments (3)

jeremyz avatar jeremyz commented on June 14, 2024 1

That should be cleaner, thanks a lot.

from godot-hexgrid.

jeremyz avatar jeremyz commented on June 14, 2024

Hi, I honestly did not try to install it from the assetLib and did never use an addon.
I just tried it, the install panels shows the file conflicts (asking for overriding existing files with the same name) but it's not good enough.
Changing category to Template seems wrong to me, these are no templates, but classes that implement a logic.
Quickly checking what is done with other addons gives me the insight that I should put the said files in a addons/hexgrid/ subfolder.
Am I right ??
If so, what about the demo, should I place it under addons/hexgrid/demo ?
many thanks !!

from godot-hexgrid.

quentincaffeino avatar quentincaffeino commented on June 14, 2024

Changing category to Template seems wrong to me, these are no templates, but classes that implement a logic.

Sorry, then I misunderstood your project)

Quickly checking what is done with other addons gives me the insight that I should put the said files in a addons/hexgrid/ subfolder.

Basically - yes. That should be enough to get started.

If you would like to do something when person installs/uninstalls your addon (for example setup autoloads), then you need to add plugin.cfg and plugin.gd to your addon directory.

If so, what about the demo, should I place it under addons/hexgrid/demo ?

You can leave demo as is. This is really up to you.

Also when person installs your addon from in-editor assetlib he might not need some files. You can ignore them by creating .gitattributes (example) file listing everything that end user doesn't need in order to use your addon.

Generally I try to keep my libs (not only for godot) as small and simple as possible. Because for example with godot, your demo code might get included in user exported game causing binary to get bigger which is not very good.

from godot-hexgrid.

Related Issues (5)

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.