Git Product home page Git Product logo

Comments (2)

LagoLunatic avatar LagoLunatic commented on June 7, 2024 1

Unfortunately it's not possible to add new GFX files. Every GFX file needs to be registered in the game's list of assets, and there's no realistic way to add new assets to that list as far as I know, since pointers to the list are hardcoded into the engine.

The same applies to a lot of other things - you can't add new sprite files, enemies, items, etc. You need to replace existing ones instead.

Similarly, would it be possible to add new gfx into an existing sprite's list of gfx so that it can draw on them?

That would be doable, you would just need to repoint the list of GFX pointers to free space so you can add new pointers to the list.
But also note that if an enemy originally had exactly 1 GFX file, then there's no list and instead the enemy just hardcodes its single GFX pointer. In this case you would need to create a new GFX list in free space, then modify the enemy's create code to use this new list, and to call the LoadSpriteMultiGfx function instead of LoadSpriteSingleGfx.
I'm not planning on adding this into DSVEdit though since it seems like it would be very limited in use when adding new GFX files is impossible.

from dsvedit.

cocytuswhisper avatar cocytuswhisper commented on June 7, 2024

That's too bad, but thank you very much for letting me know!

from dsvedit.

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.