| | By coincidence I predicted that running games in the browser would be a trend for 2010 and also discovered a game server service (http://playerio.com) that lets you write multi-player browser games. On a related note, I saw a very sensible point why a large number of Flash games would not easily move onto the iPhone/iPad that easily. Those games that rely upon some kind of cursor or mouse pointer would need a rewrite for the touch interface. It makes you think! Have a great week! | | A Prediction for 2010 - Online Games A little bit late to start predicting this year, but probably good for 2011. When I notice something once, it may be a fluke, but twice and it's probably not and three makes it a dead cert or at least a trend. The trend in question is taking an existing game and running it in a browser. There's an awful lot of open source games to tap into. The newest generation of browsers able to do fast JavaScript, Google's Chrome for example uses the V8 engine so those games can run pretty quick. These Games in question were originally written in C or C++. - Quake III- Quakelive.com - Runs as a browser addin.
- M.U.L.E - See PlanetMule.com. This has been rewritten in Java.
- FreeCiv on Freeciv.net - JavaScript front end, C server backend. You can even play it on an iPhone 3GS.
If you know of any others, please let me know. | Changing Command Line Input in C# The System.Console class has a couple of methods for controlling where input and output come from. The SetIn() and SetOut() methods switch input or output so that any of the read or write methods use the new stream. These methods require a TextReader or TextWriter which are abstract base classes and so not used directly. Instead StreamReader or StreamWriter are used. This code below shows this in action, changing input to come from a text file. I've also added this as a quick tip. using (StreamReader SR = new StreamReader(@"C:\path\example.txt")) { Console.SetIn(SR) ; string line; while ((line = SR.ReadLine()) != null) { // Do something with line } } | Wrie Your Own Flash Player While you could start from scratch and write one, it's a bit pointless given that there is an open source implementation of the engine from Flash Player 9 by Adobe and this is available as a Mozilla project called Tamarin. Written in C++, Tamariin is a high-performance, open source implementation of the ActionScript 3 language. ActionScript provides many extensions to the ECMAScript language, including packages, namespaces, classes, and optional strict typing of variables. Tamarin implements both a high-performance just-in-time compiler and interpreter. This is done with Adobe's blessing and the source code is triple licensed so you choose which to use and it is cross platform. In theory then you could host Flash applications within yours and while I can't imagine many C++ applications using a Flash interpreter (except for browsers), it remains an interesting possibility. | Never Programmed Before? Start Here For the complete novice to computer programming. Learn how a computer works and how to control it by writing computer programs. | | | | C / C++ / C# Ads | | | | Featured Articles | | | | | | | | Sign up for more free newsletters on your favorite topics | | | | You are receiving this newsletter because you subscribed to the About C / C++ / C# newsletter. If you wish to change your email address or unsubscribe, please click here. About respects your privacy: Our Privacy Policy Contact Information: 249 West 17th Street New York, NY, 10011 © 2010 About.com | | | | | Must Reads | | Advertisement | |
No comments:
Post a Comment