Giter Club home page Giter Club logo

Comments (3)

evanbowman avatar evanbowman commented on August 19, 2024

Sorry! As you noticed, I was not handling the errors from the image library correctly! Thanks for letting me know, I created a new release tag and patched the build script.

666a1ee

Some further tips:
This gba engine supports 16 color graphics. The gba hardware supports either 16 color or 256 color, and I chose 16 color because 256 color graphics use twice as much video ram, i.e. half as many sprite images. The gba hardware treats one of the color indices as a transparent color. In the build script, I hard-coded RGB(255, 0, 255) as the transparency color. See here and here
I can make the transparency color channel parameterizable when I have some free time, see those two links in the meantime if you want to change the default transparency color.

from bpcore-engine.

evanbowman avatar evanbowman commented on August 19, 2024

For the issue where you tried a 24 bit image, using the new version of build.lua from the release script will give you a more descriptive error. As the build script requires the 24-bit format of a BMP file, the bit depth would not be the issue, possibly, the bitmap file is using compression, which isn't supported by the build.lua script.

See here for all of the varieties of invalid bitmap format errors (which will now appear in the build error output):
https://github.com/evanbowman/BPCore-Engine/blob/master/build/build.lua#L36

from bpcore-engine.

brickedware avatar brickedware commented on August 19, 2024

Thank you very much! And for the 24-bit BMPs, that was most likely an issue with the way it exported so that was probably on me.

from bpcore-engine.

Related Issues (13)

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.