Coder Social home page Coder Social logo

Comments (6)

imthatgin avatar imthatgin commented on May 28, 2024 1

That sounds like a good solution! Would make the ECS system more capable for different contexts!

from donburi.

yohamta avatar yohamta commented on May 28, 2024 1

@im-gin I have just managed to remove the dependency to Ebitengine by using reflection, and tagged it as v1.3.13.
Please let me know if you find any problems or further suggestions. Thanks!

from donburi.

yohamta avatar yohamta commented on May 28, 2024

Thanks for the great suggestion. The idea using ECS architecture in the server code sounds really interesting. I wanted to do some experiments.

Donburi uses ebitengine's *ebiten.Image in the ecs package.
I think that all of those parameters of *ebiten.Image can be replaced with Generics type parameter.
Then we can remove the dependency to ebitengine from go.mod. What do you think?

from donburi.

yohamta avatar yohamta commented on May 28, 2024

Thanks! Let's do it.

from donburi.

imthatgin avatar imthatgin commented on May 28, 2024

Some places will be challenging to replace, as struct methods cannot have generic parameters. Do you have any ideas for any alternative solutions?

from donburi.

yohamta avatar yohamta commented on May 28, 2024

I understand that it's a bit challenging, but still I think it's possible. Pls give me a moment to try it.
--edit--
Hmm... it seems it's only possible via reflection or completely changing the interface of ecs package.
Let me try with reflection.

from donburi.

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.