David-Vandensteen / neocore

Library & toolchain for Neo Geo CD develop. with C language
29 stars 3 forks source link

How do I convert graphics in the recent version of the neocore sdk #103

Open NeoGeoFreak2004 opened 7 months ago

NeoGeoFreak2004 commented 7 months ago

Hey, I was just wondering how do I convert graphics for my neo geo CD game via the recent version of the neocore sdk?

David-Vandensteen commented 3 months ago

From version 2, the assets configuration is into "project.xml" file. you can see it in samples\sprite :


<?xml version="1.0" encoding="UTF-8"?>
<project>
  <name>sprite</name>
  <version>1.0.0</version>
  <makefile>..\Makefile</makefile>
  <neocorePath>..\..\</neocorePath>
  <buildPath>..\..\build</buildPath>
  <distPath>..\..\dist</distPath>
  <gfx>
    <DAT>
      <chardata>
        <setup>
          <starting_tile>256</starting_tile>
        </setup>
        <scrl id="background_sprite">
          <file>assets\gfx\background.png</file>
        </scrl>
        <pict id="planet04_sprite">
          <file>assets\gfx\planet04.png</file>
          <flips>xyz</flips>
        </pict>
        <sprt id="player_sprite">
          <file>assets\gfx\player.png</file>
          <frame>0,1:3,1</frame>
          <frame>3,1:3,1</frame>
          <frame>6,1:3,1</frame>
          <frame>0,0:3,1</frame>
          <frame>0,2:3,1</frame>
        </sprt>
      </chardata>
    </DAT>
  </gfx>
  <emulator>
    <raine>
      <exeFile>..\..\build\raine\raine32.exe</exeFile>
    </raine>
    <mame>
      <exeFile>..\..\build\mame\mame64.exe</exeFile>
    </mame>
  </emulator>
  <compiler>
    <name>gcc</name>
    <version>2.95.2</version>
    <path>..\..\build\gcc\gcc-2.95.2</path>
    <includePath>..\..\build\include</includePath>
    <libraryPath>..\..\build\lib</libraryPath>
    <systemFile>..\..\build\system\neocd.x</systemFile>
  </compiler>
  <!-- for using cdda audio tracks, uncomment & set up your files
  Warning: track id 1 is reserved for the binary program
  <sound>
    <sfx>
      <pcm>assets\sounds\sfx\click.V1</pcm>
      <z80>assets\sounds\sfx\click.M1</z80>
    </sfx>
    <cdda>
      <tracks>
        <track>
          <id>2</id>
          <file>assets\sounds\cdda\track-1.wav</file>
          <pregap>00:02:00</pregap>
        </track>
        <track>
          <id>3</id>
          <file>assets\sounds\cdda\track-2.wav</file>
          <pregap>00:02:00</pregap>
        </track>
        <track>
          <id>4</id>
          <file>assets\sounds\cdda\track-3.wav</file>
          <pregap>00:02:00</pregap>
        </track>
      </tracks>
    </cdda>
  </sound>
-->
</project>