Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert Sprites via ngdevkit? #100

Open
NeoGeoFreak2004 opened this issue Aug 8, 2023 · 1 comment
Open

How to convert Sprites via ngdevkit? #100

NeoGeoFreak2004 opened this issue Aug 8, 2023 · 1 comment

Comments

@NeoGeoFreak2004
Copy link

hey guys so anyways i am making a simple game with ngdevkit. so far i got hello world down, but now i am doing a sprite display program, but how do i convert images (ie png jpg) for graphics in my game?

@dciabrin
Copy link
Owner

dciabrin commented Aug 9, 2023

There is no asset management in the devkit. The only tool available is titletool.py. You give it one gif whose size is a multiple of 16x16 pixels, and it converts it into a series of 16x16 tiles which can then be accessed by the hardware during rendering. Once you have your raw data chopped into blocks of 16x16 tiles, you can concatenate all your files to build the C-ROM of your cartridge. As there is no asset management per se, you need to record manually the offset of each tile in the C-ROM to configure the hardware graphics chip for rendering it on screen.

Have a look at https://github.com/dciabrin/ngdevkit-examples, there are a couple of examples that precisely cover your questions regarding sprite rendering, animated sprites rendering, background rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants