’Cause all games were better on the GBC

You are not logged in.

#1 2016-09-19 20:18:54

From: Germany
Registered: 2012-10-13
Post 49/52

Pokered sprite dimensions

The dimensions of a sprite are refered to in the basestats of each Pokémon, i.e. 5 by 5 tiles for abra.  When replacing the png-file with a 7 by 7 tile picture and making no alterations in the basestats.asm-file, pokered.gbc is put together without any errors  and the larger sprite can be loaded correctly. Do I really need the info (in the basestat-file)  in the first place or are the dimensions of each *.PNG to be included evaluated at some point of the reassembly routine?


#2 2016-09-21 14:16:57

Danny-E 33
Registered: 2012-06-09
Post 982/1,030

Re: Pokered sprite dimensions

The dimensions of the pic are included as the first byte (55, 66, 77) of the compressed pic in the game's compression format. Although, this byte is rarely (or never?) used by the game.
Like you said, the dimensions are grabbed from the base stats rather than grabbed from the first byte of the pic.

To make this easier, we edited the base stats files to dump the first byte of the pic file.
In the example of Abra, data/baseStats/abra.asm includes this line:
INCBIN "pic/bmon/abra.pic",0,1 ; 55, sprite dimensions

This way, if you replace the Abra pic and give it new dimensions, the base stats file will be correctly updated.

Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12


Board footer

Powered by FluxBB