Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Just wondering..c# online

Just wondering..c# online

Scheduled Pinned Locked Moved C#
csharpgraphicsadobegame-devtools
11 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stephen darling
    wrote on last edited by
    #1

    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

    A B J 3 Replies Last reply
    0
    • S stephen darling

      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

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • A AspDotNetDev

        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.

        S Offline
        S Offline
        stephen darling
        wrote on last edited by
        #3

        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

        A 1 Reply Last reply
        0
        • S stephen darling

          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

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #4

          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.

          S 1 Reply Last reply
          0
          • A AspDotNetDev

            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.

            S Offline
            S Offline
            stephen darling
            wrote on last edited by
            #5

            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

            L 1 Reply Last reply
            0
            • S stephen darling

              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

              B Offline
              B Offline
              BillWoodruff
              wrote on last edited by
              #6

              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

              S 1 Reply Last reply
              0
              • S stephen darling

                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

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                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

                S 1 Reply Last reply
                0
                • B BillWoodruff

                  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

                  S Offline
                  S Offline
                  stephen darling
                  wrote on last edited by
                  #8

                  Thank you, I will have a look at XNA aswell, Steve

                  1 Reply Last reply
                  0
                  • L Lost User

                    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

                    S Offline
                    S Offline
                    stephen darling
                    wrote on last edited by
                    #9

                    OK thank you again, I have pleanty to get going with. Thank you, Steve

                    1 Reply Last reply
                    0
                    • S stephen darling

                      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

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #10

                      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

                      S 1 Reply Last reply
                      0
                      • J jschell

                        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

                        S Offline
                        S Offline
                        stephen darling
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups