#17234 - josath - Thu Mar 04, 2004 6:41 pm
I'm porting a very simple dos game to gba using mode 4, and i'm running in to some trouble with it, because it will only let me write 2 pixels at once. So, my question is,
-Should I stick with mode 4, and for each pixel, read the 2 pixels from vram, modify one, and then write it back to vram,
-or should I switch over to mode 3, and be able to write one pixel at a time?
Number of colors is not an issue, it's a CGA game (ie, 4 colors only).
Eventually, I will probably rewrite it to take advantage of the GBA's graphics hardware (sprites, bg scrolling, etc), but I want to see if I can get it up and running with more of a direct port first.
(in case anyone's interested, the game is called Sopwith, and I'm using this codebase here: http://sdl-sopwith.sf.net/
a screenshot of what i've done so far:
http://rorex.isa-geek.net/sopwith.png
a screenshot from the actual game i'm trying to port:
http://rorex.isa-geek.net/sopwith2.png
notice how the pixels are doubled in mine.
thanks!
EDIT:
Here's the game if you want to try it out, I have the input working enough to play now (read the included README.txt)
http://rorex.isa-geek.net/sopwith.zip
-Should I stick with mode 4, and for each pixel, read the 2 pixels from vram, modify one, and then write it back to vram,
-or should I switch over to mode 3, and be able to write one pixel at a time?
Number of colors is not an issue, it's a CGA game (ie, 4 colors only).
Eventually, I will probably rewrite it to take advantage of the GBA's graphics hardware (sprites, bg scrolling, etc), but I want to see if I can get it up and running with more of a direct port first.
(in case anyone's interested, the game is called Sopwith, and I'm using this codebase here: http://sdl-sopwith.sf.net/
a screenshot of what i've done so far:
http://rorex.isa-geek.net/sopwith.png
a screenshot from the actual game i'm trying to port:
http://rorex.isa-geek.net/sopwith2.png
notice how the pixels are doubled in mine.
thanks!
EDIT:
Here's the game if you want to try it out, I have the input working enough to play now (read the included README.txt)
http://rorex.isa-geek.net/sopwith.zip