Just wondering..c# online
-
Hi, I was just wondering... To write a good, interactive online game (as an example) would normally require flash, and this has its own language...right? Now, if I learnt C#, is it possible to have some kind of "flash" like interface so that I could place interactive programs online. I was looking at Silverlight, would you be able to use this to write 100% C# games and then run them in the browser, or is there another method? I am interested as I want to create my own little, fun, gaming website. But instead of presenting my games for download, I would like to allow the user to run them in the browser, online. I really don't want to start learning flash and other tools and technology’s just yet, and would prefer to do this as close to 100% C# as possible, but would still like to include basic graphics, animations, sound etc. Thank you for any ideas. Steve
-
Hi, I was just wondering... To write a good, interactive online game (as an example) would normally require flash, and this has its own language...right? Now, if I learnt C#, is it possible to have some kind of "flash" like interface so that I could place interactive programs online. I was looking at Silverlight, would you be able to use this to write 100% C# games and then run them in the browser, or is there another method? I am interested as I want to create my own little, fun, gaming website. But instead of presenting my games for download, I would like to allow the user to run them in the browser, online. I really don't want to start learning flash and other tools and technology’s just yet, and would prefer to do this as close to 100% C# as possible, but would still like to include basic graphics, animations, sound etc. Thank you for any ideas. Steve
Yep, Silverlight can do pretty much anything Flash can do (as far as multimedia and interaction go), and you can use C# for Silverlight. As long as the user has the Silverlight plugin installed, they will be able to run your games in their browser (just like a user would need the Flash plugin to run Flash games). Flash runs on more browsers than Silverlight, but most users at least have the option of downloading Silverlight and the number of computers Silverlight is installed on is huge. Flash uses ActionScript, if you feel like learning that. Mashoo offers Silverlight games, if you want to see what is possible.
Martin Fowler wrote:
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
-
Yep, Silverlight can do pretty much anything Flash can do (as far as multimedia and interaction go), and you can use C# for Silverlight. As long as the user has the Silverlight plugin installed, they will be able to run your games in their browser (just like a user would need the Flash plugin to run Flash games). Flash runs on more browsers than Silverlight, but most users at least have the option of downloading Silverlight and the number of computers Silverlight is installed on is huge. Flash uses ActionScript, if you feel like learning that. Mashoo offers Silverlight games, if you want to see what is possible.
Martin Fowler wrote:
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
AspDotNetDev wrote:
Yep, Silverlight can do pretty much anything Flash can do
Excellent!
AspDotNetDev wrote:
Flash uses ActionScript, if you feel like learning that.
Not really. I am still learning C#, and I have heard that the learning curve for proper use of ActionScript can be a bit high. I am glad I can use C# with Silverlight, and I will look into this when I become a little better with C# Thank you, Steve
-
AspDotNetDev wrote:
Yep, Silverlight can do pretty much anything Flash can do
Excellent!
AspDotNetDev wrote:
Flash uses ActionScript, if you feel like learning that.
Not really. I am still learning C#, and I have heard that the learning curve for proper use of ActionScript can be a bit high. I am glad I can use C# with Silverlight, and I will look into this when I become a little better with C# Thank you, Steve
One more thing. Keep in mind that you will probably also be heavily involed with XAML if you use Silverlight. XAML is basically what you use to build UI's in Silverlight. Everything you can do in XAML you can also do in pure C#, but most documentation and such shows the XAML.
Martin Fowler wrote:
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
-
One more thing. Keep in mind that you will probably also be heavily involed with XAML if you use Silverlight. XAML is basically what you use to build UI's in Silverlight. Everything you can do in XAML you can also do in pure C#, but most documentation and such shows the XAML.
Martin Fowler wrote:
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
AspDotNetDev wrote:
One more thing. Keep in mind that you will probably also be heavily involed with XAML if you use Silverlight. XAML is basically what you use to build UI's in Silverlight. Everything you can do in XAML you can also do in pure C#, but most documentation and such shows the XAML.
OK, Thank you for the "heads up", I will take a look into it. Proberbly just end up getting myself a book on WPF and Silverlight. Kind Regards, Stephen
-
Hi, I was just wondering... To write a good, interactive online game (as an example) would normally require flash, and this has its own language...right? Now, if I learnt C#, is it possible to have some kind of "flash" like interface so that I could place interactive programs online. I was looking at Silverlight, would you be able to use this to write 100% C# games and then run them in the browser, or is there another method? I am interested as I want to create my own little, fun, gaming website. But instead of presenting my games for download, I would like to allow the user to run them in the browser, online. I really don't want to start learning flash and other tools and technology’s just yet, and would prefer to do this as close to 100% C# as possible, but would still like to include basic graphics, animations, sound etc. Thank you for any ideas. Steve
You may wish to evaluate MS's XNA[^] platform for gaming. Uses C# (and now VB, as well). And, check out ASPDotNetDev's comments here:[^], as well as[^]. I have no experience with XNA, have no idea what it's current and future status is, but other folks here on CP do ! best, Bill
"Is it a fact - or have I dreamt it - that, by means of electricity, the world of matter has become a great nerve, vibrating thousands of miles in a breathless point of time? Rather, the round globe is a vast head, a brain, instinct with intelligence!" - Nathanial Hawthorne, House of the Seven Gables
-
AspDotNetDev wrote:
One more thing. Keep in mind that you will probably also be heavily involed with XAML if you use Silverlight. XAML is basically what you use to build UI's in Silverlight. Everything you can do in XAML you can also do in pure C#, but most documentation and such shows the XAML.
OK, Thank you for the "heads up", I will take a look into it. Proberbly just end up getting myself a book on WPF and Silverlight. Kind Regards, Stephen
There are also lots of great articles here on CodeProject which will help you to learn XAML/C#. Most are WPF oriented, but since Silverlight is a subset of WPF they are still very useful, especially any by Josh Smith[^] and Sacha Barber[^], amongst others.
Unrequited desire is character building. OriginalGriff
-
You may wish to evaluate MS's XNA[^] platform for gaming. Uses C# (and now VB, as well). And, check out ASPDotNetDev's comments here:[^], as well as[^]. I have no experience with XNA, have no idea what it's current and future status is, but other folks here on CP do ! best, Bill
"Is it a fact - or have I dreamt it - that, by means of electricity, the world of matter has become a great nerve, vibrating thousands of miles in a breathless point of time? Rather, the round globe is a vast head, a brain, instinct with intelligence!" - Nathanial Hawthorne, House of the Seven Gables
Thank you, I will have a look at XNA aswell, Steve
-
There are also lots of great articles here on CodeProject which will help you to learn XAML/C#. Most are WPF oriented, but since Silverlight is a subset of WPF they are still very useful, especially any by Josh Smith[^] and Sacha Barber[^], amongst others.
Unrequited desire is character building. OriginalGriff
OK thank you again, I have pleanty to get going with. Thank you, Steve
-
Hi, I was just wondering... To write a good, interactive online game (as an example) would normally require flash, and this has its own language...right? Now, if I learnt C#, is it possible to have some kind of "flash" like interface so that I could place interactive programs online. I was looking at Silverlight, would you be able to use this to write 100% C# games and then run them in the browser, or is there another method? I am interested as I want to create my own little, fun, gaming website. But instead of presenting my games for download, I would like to allow the user to run them in the browser, online. I really don't want to start learning flash and other tools and technology’s just yet, and would prefer to do this as close to 100% C# as possible, but would still like to include basic graphics, animations, sound etc. Thank you for any ideas. Steve
You need more details in your idea. Angry Birds is not in any way comparable to World of Warcraft. And neither is comparable to Portal. Not conceptually and not in implementation. And your question is, vaguely, about display options only.
stephen.darling wrote:
would prefer to do this as close to 100% C# as possible
So in terms of this and your mention of "online game". Then your strategy would be. 1. Design the game. 2. Create a C# game that runs on your computer. GUI and internals are all in C#. (Nothing online about it and ONLY one person.) 3. Create an installer for the game (2). 4. For the online part create your own down load server and allow the installer (3) to be downloaded from it. Now if you want to create a game where several people play against or with each other then the strategy is different. A. Design the game. B. Create the game server. This handles communication between players. C. Create the client app. This must include a way to find or designate the game server. There are different ways to implement this. D. Create a down load server (not the same as 2) which allows a user to get the client app. There are details that can modify the above strategies in different ways. For example you don't need to actually create a down load server. There are hosting companies and sites that will provide that for you. Another variation is in C above where it could be entirely browser based. That eliminates step D but has its own limitations. (Although making it browser based is probably a good learning exercise and for a single person sufficient.) 1. Create
-
You need more details in your idea. Angry Birds is not in any way comparable to World of Warcraft. And neither is comparable to Portal. Not conceptually and not in implementation. And your question is, vaguely, about display options only.
stephen.darling wrote:
would prefer to do this as close to 100% C# as possible
So in terms of this and your mention of "online game". Then your strategy would be. 1. Design the game. 2. Create a C# game that runs on your computer. GUI and internals are all in C#. (Nothing online about it and ONLY one person.) 3. Create an installer for the game (2). 4. For the online part create your own down load server and allow the installer (3) to be downloaded from it. Now if you want to create a game where several people play against or with each other then the strategy is different. A. Design the game. B. Create the game server. This handles communication between players. C. Create the client app. This must include a way to find or designate the game server. There are different ways to implement this. D. Create a down load server (not the same as 2) which allows a user to get the client app. There are details that can modify the above strategies in different ways. For example you don't need to actually create a down load server. There are hosting companies and sites that will provide that for you. Another variation is in C above where it could be entirely browser based. That eliminates step D but has its own limitations. (Although making it browser based is probably a good learning exercise and for a single person sufficient.) 1. Create
Thank you for the advice, however, the game will be simple and aimed at one player. It must run in the browser as I must retain full controll of the source code. The game itself will be very basic, with basic graphics and minimal animation. I am currently persuing the idea of hosting a c# app in silverlight. Thank you, Steve