Giter VIP home page Giter VIP logo

sakura-wars-gb2's People

Contributors

variantxyz avatar

Stargazers

Rain avatar Larson T. avatar  avatar

Watchers

 avatar

sakura-wars-gb2's Issues

Disassemble script/event engine

0FF2 parses events via a table at 0:101A [offset:2, LE][Bank:1], entire event table

First 'dialog' (not cutscene): table[0x21] = [0x101A + 0x21 * 3] -> 19:625D, function which pulls script metadata from bank 40
[CC58 (index of script)] = 0x11 -> 4000 + 3 * 0x11 = [40:4033] -> bank offset = 0x00, addr offset = 0x003F
bank = 0x00 + 0x41, addr = 0x4000 + 0x003F
41:403F, initial scene

18:436F seems to actually parse commands
18:4252 seems to read bytes and update the script state vars (gets called when going through dialog)

command '01' seems to be load scene text (41:4055, text starts at 41:4056).

Map main font tilesets

There are two fonts, a 8x8 font used in certain cutscenes, and a 16x8 font used in the main dialog.

The cutscene text is loaded into 0:9000 to 0:9350, and the dialog text is loaded into 1:8800 to 1:8B50, in both cases via VRAM DMA.

Dump font tilesets

Probably optional at this stage, but will help with the actual mapping.

8x8 font is 1BPP takes 3 banks 0x8:4000 to 0xA:7fff

Double-width is at bank 6 and seems to have way fewer kanji?

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.