Git Product home page Git Product logo

Comments (5)

bbbbbr avatar bbbbbr commented on June 28, 2024 1

Implementing as a slight variation on version by @tumetuoppi from this commit:
tumetuoppi@109183e

from gbdk-2020.

untoxa avatar untoxa commented on June 28, 2024

that <name>_tile_pals[] array only makes sense when -use-structs is passed. that kind of array is used by ZGB and i think is obsolete as well.

from gbdk-2020.

untoxa avatar untoxa commented on June 28, 2024

ffe934a

from gbdk-2020.

tumetuoppi avatar tumetuoppi commented on June 28, 2024

Bump as I encountered this issue as well when developing a DMG game.

  • The includes are a bit weird. <gbdk/metasprites.h> does not seem to be necessary, neither is <gbdk/platform.h>, but <gb/cgb.h> is needed by const palette_color_t whatever_palettes[4] and it's not added automatically
  • Visual Studio Code seems to also have an issue with the BANKREF being in there. It gives out an error "a declaration here must declare a parameterC/C++(99)" for the palette, tile and map declarations. Seems to compile fine though so this could be just a configuration issue on my end.

In general it would be nice to have a "DMG only" option flag.

from gbdk-2020.

bbbbbr avatar bbbbbr commented on June 28, 2024

Agree that an option to suppress the palette data would be useful. I will add it to my list of things to look into.

With regard to gb/cgb.h , the use of platform.h will automatically include it when the current target is the Game Boy (or AP or Mega Duck).
https://github.com/gbdk-2020/gbdk-2020/blob/develop/gbdk-lib/include/gbdk/platform.h#L4

from gbdk-2020.

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.