Hello all. I was the lead programmer for the original version of Tomb Raider for the Gameboy colour. I remember seeing many other CGB games that were just GB games with colour. They made no use of the extra power the machine had. The x2 CPU speed was obviously an advantage, but the HDMA and VDMA + the double-size VRAM were the keys for me.
I ran the game at 30 frames per second. All the sprites were double-buffered which meant all 40 of the 8x16 tiles (anyone who doesn't use double-height sprites needs looking at IMHO). I also kept a copy of the entire background screen in RAM. We never used it, but it meant as well as using animating characters (Dumping new data into the chars on a per-gameloop basis) the actual character-map of the entire screen could be altered. I saw this effect first on a C64 game in about 1986. They had a level set in a lava pit and big gouts of flame shot up, rolled over and dropped back into the sea of flames.
Apparently, the programmer had decided (as I later did) to run the game in 2-frames (so 25 FPS on PAL) to add more to it. The character was made of multiple overlayed sprites (like TR GBC) and the gouts of flame were done by re-writing 16 characters AND reprinting the appropriate background characters. The C64 had a 1MHz 6510 and no DMA, so this was quite a task. He also scrolled the colour-map (in color mode, the c64 had 2 fixed colours per character and one you could change). Since scrolling the whole screen (40x25) too too long, he assigned colour on a per block (blocks were 4x4 tiles/characters) and simple did 1 read & 4/7 writes (4 for one-axis scroll, 7 for both axes scrolling).
Even further in the past I helped design the conversion of a vertically scrolling arcade shoot-em-up. I told the artist to use 1 colour in each column of the block so only 4 reads & 4 writes were needed to scroll a 4x4 tile/character map.
Looking back, I'm annoyed I wasn't as well up on digital electronics as I am now. I know the machine had a 68000 for game logic, a graphics engine with hardware sprites, playfields and DMA AND a Z80 based sound-board. I remember the musician having to get someone to play through the whole game so he could listen to all the music and SFX (which he recorded on a tape deck). I remember that the ribbon connector betwen the main board and the sound-board was 16-bits. I am betting now that it was 8-bit data, 8-bit address. With a simple logic-probe I could have a)tested the signals going to the board & b)make the board play all the music and SFX at my command.
I cannot remember who did the game, but I'm pretty sure that the sound board was similar to the Megadrive/Genesis. I don't know if anyone else has written a Z80 player for it, but it was jolly useful to the coders of the day. They just dumped the code and ran it. Then it was 1 call to start/stop music and another to select a SFX. The ODD thing about the Genesis sound was that the channels were numbered 0,1,2,4,5,6 suggesting that it was a cut-down 8-channel chip. I keep remembering how much trouble I had with the last 3 channels working properly. I used to do a multiply (well, shifts and adds) to get the channels control-register address. Then I had to add a check for greater than 2 and if so, add 1!
I did some code on the N64 as well. It was, in fact, an excellent maching as long as games were designed with it's hardware in mind. It had a small texture cache but it did support trilinear interpolation and such. It even had a nice 3D algorithm. Those who remember, will tell you that the N64 had a CPU and a GPU which was, in fact, another CPU except it could only run from it's own scratch-pad (scratch-pads use 1/2 the silicon of an equivalent cache). You loaded the sound code, updated the stereo-DAC buffers, then loaded the matrix engine, finally you loaded the render code and voila, your image became real.
The N64 had some really cool tricks. It used the parity bit off the RAM so that the Z-buffer was 18-bits. It was a pity the main CPU couldn't access memory like that. But, hand it to Nintendo, it was a GOOD idea.
Later, I will update my experiences on later machines...
I ran the game at 30 frames per second. All the sprites were double-buffered which meant all 40 of the 8x16 tiles (anyone who doesn't use double-height sprites needs looking at IMHO). I also kept a copy of the entire background screen in RAM. We never used it, but it meant as well as using animating characters (Dumping new data into the chars on a per-gameloop basis) the actual character-map of the entire screen could be altered. I saw this effect first on a C64 game in about 1986. They had a level set in a lava pit and big gouts of flame shot up, rolled over and dropped back into the sea of flames.
Apparently, the programmer had decided (as I later did) to run the game in 2-frames (so 25 FPS on PAL) to add more to it. The character was made of multiple overlayed sprites (like TR GBC) and the gouts of flame were done by re-writing 16 characters AND reprinting the appropriate background characters. The C64 had a 1MHz 6510 and no DMA, so this was quite a task. He also scrolled the colour-map (in color mode, the c64 had 2 fixed colours per character and one you could change). Since scrolling the whole screen (40x25) too too long, he assigned colour on a per block (blocks were 4x4 tiles/characters) and simple did 1 read & 4/7 writes (4 for one-axis scroll, 7 for both axes scrolling).
Even further in the past I helped design the conversion of a vertically scrolling arcade shoot-em-up. I told the artist to use 1 colour in each column of the block so only 4 reads & 4 writes were needed to scroll a 4x4 tile/character map.
Looking back, I'm annoyed I wasn't as well up on digital electronics as I am now. I know the machine had a 68000 for game logic, a graphics engine with hardware sprites, playfields and DMA AND a Z80 based sound-board. I remember the musician having to get someone to play through the whole game so he could listen to all the music and SFX (which he recorded on a tape deck). I remember that the ribbon connector betwen the main board and the sound-board was 16-bits. I am betting now that it was 8-bit data, 8-bit address. With a simple logic-probe I could have a)tested the signals going to the board & b)make the board play all the music and SFX at my command.
I cannot remember who did the game, but I'm pretty sure that the sound board was similar to the Megadrive/Genesis. I don't know if anyone else has written a Z80 player for it, but it was jolly useful to the coders of the day. They just dumped the code and ran it. Then it was 1 call to start/stop music and another to select a SFX. The ODD thing about the Genesis sound was that the channels were numbered 0,1,2,4,5,6 suggesting that it was a cut-down 8-channel chip. I keep remembering how much trouble I had with the last 3 channels working properly. I used to do a multiply (well, shifts and adds) to get the channels control-register address. Then I had to add a check for greater than 2 and if so, add 1!
I did some code on the N64 as well. It was, in fact, an excellent maching as long as games were designed with it's hardware in mind. It had a small texture cache but it did support trilinear interpolation and such. It even had a nice 3D algorithm. Those who remember, will tell you that the N64 had a CPU and a GPU which was, in fact, another CPU except it could only run from it's own scratch-pad (scratch-pads use 1/2 the silicon of an equivalent cache). You loaded the sound code, updated the stereo-DAC buffers, then loaded the matrix engine, finally you loaded the render code and voila, your image became real.
The N64 had some really cool tricks. It used the parity bit off the RAM so that the Z-buffer was 18-bits. It was a pity the main CPU couldn't access memory like that. But, hand it to Nintendo, it was a GOOD idea.
Later, I will update my experiences on later machines...
Checking others sources is a bit spoiling but I wouldn't mind if you posted it. Some time ago guys at Slitherine were