Jhysaun wrote:soshimo wrote: I use XNA for Zune game development.
ZUNE HAS GAMES!?!?!?!?! huh... interesting, you learn something new everyday.
Anyway for vertical scrolling you need something like this:
- Code: Select all
while(1)
{
screensections[i].scrollY++;
if(screensections[i].scrollY == 208)
{
(screensections[i].scrollY =0;
}
}
Nice, thanks for the code - I'll definitely give that a shot.
Yes, you definitely can write games for the Zune. You have to use .Net though so you are relegated to C# (or,
shudder VB.Net). I'm not sure of the constraints - I think something like 1MB memory which isn't too bad. I've been able to port most of my original mobile titles (and some that I don't own IP for but have source

) over to the Zune. You can write a Tetris game in about 500 lines of code (I know, I did it) and use media
from the device (so you can have people choose their own background music if you want). The content pipeline is pretty awesome - uses xml files (not a new technology for sure as I've been using it for content description for years, but they have nice well rounded libraries). You can also write your own content handlers in case you don't like xml for some reason or you have custom content. All in all, Zune development is actually nice, especially coming from mobile land where
nothing is as it seems.
EDIT:
I forgot to add, not to beat the Zune horse (I am a convert), but it also has integrated source level debugging on the device, so you can step through code while it's executing without complicated gdb setup. A very handy feature indeed. Here are some screenshots from my 1945 WIP:

- CIMG1815.JPG (164.02 KiB) Viewed 275 times

- CIMG1820.JPG (159.83 KiB) Viewed 275 times