Shrink Blit
Posted: Tue Jul 06, 2004 5:29 pm
Hi,
I'm new to this forum but old in "the" game, been playing both DM and CSB since day one.
At the moment I'm fiddling about with a dungeon of my own and I've got a question on how the game handles the shrinking of the graphical objects. I noticed there is only a big version of each object in graphics.dat (except for the walls and floortiles and such things) and only one sideview of things that can be seen from the side (wall hooks, inscriptions, etc). So I guess there must be some kind of mirror and shrink-routine in the game to save diskmemory.
I've been looking around in the CSBwin-sources but it's not that easy to read if you're not acustomed to atari 68000-code. :-) So my question is, is there a certain shrinking-percent that is applied to all objects or are there static sizes for all 3 levels of all objects? And how does the shrinking routine work?
Are these shrink/mirror-images calculated during gameplay or precalculated and saved in memory somehow?
Brilliant site this is, and a brilliant CSB-port, thanks a million!
/chris
I'm new to this forum but old in "the" game, been playing both DM and CSB since day one.
At the moment I'm fiddling about with a dungeon of my own and I've got a question on how the game handles the shrinking of the graphical objects. I noticed there is only a big version of each object in graphics.dat (except for the walls and floortiles and such things) and only one sideview of things that can be seen from the side (wall hooks, inscriptions, etc). So I guess there must be some kind of mirror and shrink-routine in the game to save diskmemory.
I've been looking around in the CSBwin-sources but it's not that easy to read if you're not acustomed to atari 68000-code. :-) So my question is, is there a certain shrinking-percent that is applied to all objects or are there static sizes for all 3 levels of all objects? And how does the shrinking routine work?
Are these shrink/mirror-images calculated during gameplay or precalculated and saved in memory somehow?
Brilliant site this is, and a brilliant CSB-port, thanks a million!
/chris