Link to a Game in the Marketplace from XNA - c#

How do you link to an app in the Windows Phone marketplace from within an XNA game?

Use the MarketplaceDetailTask
http://msdn.microsoft.com/en-us/library/hh394017(v=vs.92).aspx

In addition to Rich's answer, it's also worth pointing out that there is also Guide.ShowMarketplace, which seems to be preferred for XNA (because it is an XNA API). But it isn't as flexible as MarketplaceDetailTask.

Related

Metro Games in c#

Is it possible to use DirectX in C# to create metro game for windows store? XNA isn't supported as far as i know so what are capabilities to create game for metro?
Yes is possible, you can use SharpDX, new version supports Windows store apps (WinRT).
SharpDX is open source project and you can use it in your commercial applications without a charge, more here : http://sharpdx.org/about/licensing
here is the example of usage and some tips :
http://channel9.msdn.com/coding4fun/blog/Making-Modern-UI-Managed-DirectX-Apps-with-SharpDX-Updated-for-Win-8VS2012-RTM
You can leverage your XNA investment via MonoGame which in turn relies on SharpDX. Check out Bob Familiar's blog posts to get started. (And yes, it's also free).
I you know C++, you can write the graphic part of your project in a separate Library written in C++ and using DirectX directly.

Applying pixel shaders to images

I would like to apply a shader effect to an image in c#/xaml.
I have found this example:
http://msdn.microsoft.com/en-us/library/system.windows.media.effects.shadereffect(v=vs.95).aspx
Which makes applying pixel shaders to an image pretty trivial. Unfortunately I cannot do the same thing with the windows 8 phone SDK.
Can I do anything this simple? I would like to avoid using DirectX if possible.
Check the link below:
Creating a Lens Application that uses HLSL effects for filters
This solution uses SharpDX api (a C# DirectX wrapper).
I've tested recently and it works fine under emulator.
Unfortunally I didn't get the same results when applying outside a Game class. I already published a question here with no responses yet. :-(
Good luck!
Best regards,
Pieter Voloshyn
Unfortunately you cannot make custom ShaderEffects in Windows Phone 7 or 8. See also: WP7 - HLSL effects from WPF/Silverlight
Also it would appear that XNA is a no-go:
Windows Phone custom shaders error?
I don't think XNA has had any feature additions from WP7 to WP8, either.
You might be able to get away with doing what you need in Direct3D: (http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714072(v=vs.105).aspx)
Good luck!

Graphics and Animation in C#

I created a Game in C# (Multi-player Tanks Game) using Windows Forms Tools (Panels, shapes, buttons, etc...) but the Animation and Graphics are just so poor, so is there any Type of simple Graphics or Animation to use in C# to make this game a little better, can I use flash in C#, anything?!!!
XNA is great, its a completely different technology to Windows Forms as its based on DirectX.
Another idea is to check out silverlight or WPF depending on how complex your game is. For simple 2D games with not too busy screens it might be a lot easier than XNA.
I found a great example of building a multiplayer game in WPF.
I would recommend having a look at Microsoft XNA.
I'm pretty sure if you want to improve the graphics of your game you're going to have to use design software or hire someone to do it for you. A simple look up on Google will direct you to model development software.
A good place to start is the microsoft XNA framework.
I also recommend using Blender: http://www.blender.org/
It's a completely free open source 3D model creation program.
There are many librarys and ways for game development in C#.
I prefer to use XNA, which is based on DirectX and developed by Microsoft itself.
But there are also many other wrapper like OpenGL wrapper SharpGL, a custom DirectX wrapper SlimDX or using the plain DirectX SDK.
Some time ago I was looking for libraries or frameworks to improve winforms experience with nice animations. My best options were XNA or OpenTK (OpenGL) and SDL.Net.

How can I make my XNA game available for play?

I have just completed my game with C# XNA 4.0 and when I compile and run it works perfectly.
I just have 1 question. What do I do next to package it all up and make it uploadable so people can download and play.
This is answered throughly on the MSDN page Distributing Your Finished Windows Game. Especially if you just want to use the simple, standard ClickOnce method of distribution.
The page Packing and Distributing Your Game has info if you're not doing a normal Windows distribution.
If you're looking for a bit more info, this answer here is probably worth reading.
for what? Windows Phone 7? Xbox?
go to: http://create.msdn.com for all the info you need on distribution
If you intend to use it on Xbox, try:
Create game for xbox
or Creator's Club
You will need a creator's club membership to post games on Xbox. Also, remember to change the input of you project to:
GamePadState gPad = GamePad.GetState();
if (gPad.Triggers.Left > 0.5)
{
//Game pad trigger is pressed
}

Is it possible to deploy Silverlight Apps on Android?

Hello Guys I simply want to ask that is it possible to deploy Silverlight Apps on Android.
No, there's nothing on this platform yet that allows you to run Silverlight applications. The upcoming Windows Phone 7 platform will allow running Silverlight and XNA applications.
My expectations are from MonoDroid to come first which will bring C# to Android and after maybe Moonlight could be ported.
Looks like there is some work being done to port Moonlight to Android. They've got a demo of it here:
http://jeffreystedfast.blogspot.com/2011/04/moonlight-on-android.html
Yep, I suppose that the guys from Google will consider SL support for Android in addition to Flash, and I bet this will not be so far away in the future :)
Dick

Categories

Resources