Coder Social home page Coder Social logo

Comments (3)

DaanVanYperen avatar DaanVanYperen commented on September 26, 2024

I'd use the Jam package exclusively to grab some ideas from, it's fairly rough and volatile as is.

When you edit the spritesheet in tiled you can edit properties of tiles. If you add an 'entity' property of type string it'll do the job.

from artemis-odb-contrib.

Namek avatar Namek commented on September 26, 2024

Whatever you do, I don't recommend to create a entity for each tile. Let the RenderSystem pick the only tiles that are needed for rendering by using a camera projection. If you want the System to be stateless you could store whole tilemap in one entity. Only store individual fields if you really need to do it in non-specific order. Otherwise, you would gain nothing but complexity, rendering ordering issues and in some cases worse performance.

from artemis-odb-contrib.

DaanVanYperen avatar DaanVanYperen commented on September 26, 2024

Good advice, I basically only spawn dynamic elements as entities (doors, enemies, platforms etc) as entities, and the map / collision mask as singleton components.

from artemis-odb-contrib.

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.