Go Back   Zune Boards > Zune Discussions > Zune Games

Zune Games Discuss, request, share, and download Zune Games here. Having troubles with Zune Games? No problem, we can help.

Reply
 
LinkBack Thread Tools
Old 05-10-2008, 11:49 AM   #1 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
jsedlak is on a distinguished road
Default Getting Screenshots

To get screenshots of your or a game follow these instructions...

Open the project.
In Solution Explorer, right click on Solution and add a Project.
Select Windows Game Project, type in a name and hit ok.
Remove Game1.cs and Program.cs from the project.
Change any Project Properties to mimick those of the Zune game project.

Now the important part... right click on the project and hit Add -> Existing Item. For each item in the Zune project do this and hit the Down Arrow on the Add button and select "Add As Link".

Now in Game1.cs or whatever it is called add this code to the constructor...
Code:
#if WINDOWS
            graphics.PreferredBackBufferHeight = 320;
            graphics.PreferredBackBufferWidth = 240;
#endif
Build and run the game.

If you have errors, you may be able to solve them by wrapping the code in
Code:
#if ZUNE
#endif
This is especially true for the Media namespace.



Then just copy+paste a screengrab into an image editor.
__________________
John Sedlak
Microsoft Xna / DirectX MVP
Focused Games



jsedlak is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 05-10-2008, 11:37 PM   #2 (permalink)
Experienced Member
 
Tiptup300's Avatar
 
Join Date: Apr 2008
Posts: 808
Tiptup300 has disabled reputation
Default

Doesn't always work, sometimes your using a zune-only library.



Tiptup300 is offline   Reply With Quote
Old 05-11-2008, 08:55 AM   #3 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
jsedlak is on a distinguished road
Default

Quote:
Originally Posted by Tiptup300 View Post
Doesn't always work, sometimes your using a zune-only library.
Hence reading the last part dealing with putting "#if ZUNE ... #endif" into code that is Zune only.

Anything dealing with graphics should be 1-1 between the two platforms.
__________________
John Sedlak
Microsoft Xna / DirectX MVP
Focused Games



jsedlak is offline   Reply With Quote
Old 05-11-2008, 08:57 AM   #4 (permalink)
Experienced Member
 
Tiptup300's Avatar
 
Join Date: Apr 2008
Posts: 808
Tiptup300 has disabled reputation
Default

No, if you make a zune-library, it only works for zune games, if you use a windows-library, it only works with windows games.



Tiptup300 is offline   Reply With Quote
Old 05-11-2008, 09:33 AM   #5 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
jsedlak is on a distinguished road
Default

Quote:
Originally Posted by Tiptup300 View Post
No, if you make a zune-library, it only works for zune games, if you use a windows-library, it only works with windows games.
Ah, well you can use the same procedure to convert a library as well. It is how Thrust is maintained. My Zune library projects do nothing more than link to files in the Windows projects. I then add tags for platform specific code.
__________________
John Sedlak
Microsoft Xna / DirectX MVP
Focused Games



jsedlak is offline   Reply With Quote
Reply

Bookmarks

Thread Tools