<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Silverlight3-4(C#) port of Allegro 4.3.2</title>
		<link>http://www.allegro.cc/forums/view/605282</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 14 Oct 2010 03:38:44 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello everyone.</p><p>Recently i tried to reincarnate TimeWarp: <a href="http://timewarp.sourceforge.net/">http://timewarp.sourceforge.net/</a><br />with modern technologies (actually i dreamed to do it for many years, but after student time is over i had no time for such things). But now i have some free time and power to study something new. So i chose .NET platform, especially Silverlight.</p><p>And here is result - AllegroNET. It&#39;s not binding, it&#39;s real port. I would like to run Star Control in browser, that&#39;s why i can&#39;t use compiled binaries from original Allegro. So...AllegroNET is pure .NET port. I.e. you can use it with Silverlight 3-4, Windows Mobile 7, and other NET frameworks.</p><p>Project is still very young and will have some limitations. But anyway, main goal - cool library for 2D games on NET platforms.</p><p>Here is official site:<br /><a href="http://allegronet.codeplex.com/">http://allegronet.codeplex.com/</a></p><p>Good Luck and Have Fun <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andrey Gayvoronsky)</author>
		<pubDate>Tue, 12 Oct 2010 23:20:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have consistently said that Timewarp is the greatest Allegro game ever made so I truly appreciate you trying to improve on it. It would be nice if you chose more Linux / open source technologies (or even flash, since it runs on linux) over .NET. I guess I&#39;ll try this on my windows 7 machine when I get home.</p><p>Can you post some screenshots?</p><p>&lt;edit&gt; Sorry I misunderstood, what you have done is just a port of Allegro the library to .NET. Ok, I guess thats nice. I think some other people tried it as well. Now go make timewarp!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Wed, 13 Oct 2010 01:24:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885486#target">kazzmir</a> said:</div><div class="quote"><p>
It would be nice if you chose more Linux / open source technologies (or even flash, since it runs on linux) over .NET
</p></div></div><p>
<a href="http://www.mono-project.com/Moonlight">Ahem...</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Wed, 13 Oct 2010 02:12:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is it common for .NET programs written on Windows to run easily on Mono as well? Or do people end up using proprietary modules that don&#39;t exist for Mono and can&#39;t be bothered to use portable components?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Wed, 13 Oct 2010 02:15:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>&gt;I have consistently said that Timewarp is the greatest Allegro game ever made so I &gt;truly appreciate you trying to improve on it. It would be nice if you chose more &gt;Linux / open source technologies (or even flash, since it runs on linux) over .NET. &gt;I guess I&#39;ll try this on my windows 7 machine when I get home.</p><p>&gt;Can you post some screenshots?</p><p>&gt;&lt;edit&gt; Sorry I misunderstood, what you have done is just a port of Allegro the &gt;library to .NET. Ok, I guess thats nice. I think some other people tried it as well. &gt;Now go make timewarp!</p><p>I ported Allegro (basic functionalities at least) and also ported partially Timewarp.</p><p>You can check it here:<br /><a href="http://gayvoronsky.com/test/">http://gayvoronsky.com/test/</a></p><p>Actually it&#39;s already based on old version of library. On my notebook i have new version with all ships, but still have not time to finish some tasks to upload new version. </p><p>And please test it on Windows Mobile 7. AllegroNET should work on Windows Mobile 7. But StarConetrol - need to test. Windows Mobile using differ NET framework, so maybe i must do some tuning.</p><p>About Mono. Well, AllegroNET is compatible with Silverlight 3. Actually it&#39;s using just few things from that, but WritableBitmap exists only at Silverlight 3+. It uses only standart libraries, so no any additional dependences. But i didn&#39;t tested it.</p><p>Just try to run game from link that i provided up above. Maybe it will work without any tuning. I&#39;m sure the only problem that can occur both on Windows Mobile and Linux - IsolatedStorage. I&#39;m sure that WritableBitmap and IsolatedStorage are the only &quot;critical&quot; parts from framework and can&#39;t be replaced with anything other. Rest parts can be replaced if will make any troubles.</p><p>P.S.: I really thought alot about what to choose - Flash or Silverlight. But i considered that task not like pure port, but also as something new in my skillbase that i can use in future. And i&#39;m sure that C# is better to study, than flash.</p><p>P.P.S.: I checked (quickly) specification of Moonlight 3.0 preview 6-7. Looks like it supports WritableBitmap and IsolatedStorage. So probably we have real chances to use AllegroNET and run StarCoNETrol on Linux <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /> But i don&#39;t have Linux, so i&#39;m waiting for test by other <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andrey Gayvoronsky)</author>
		<pubDate>Wed, 13 Oct 2010 15:55:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p> BITMAP screen = Allegro.create_bitmap((int)GameScreen.Width, (int)GameScreen.Height, true);<br /> GameScreen.Source = screen.source;</p></div></div><p>Holy naming conventions, Batman! .NET convention is PascalCase for types and public/protected/internal members, camelCase for private members and locals.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885486#target">kazzmir</a> said:</div><div class="quote"><p> It would be nice if you chose more Linux / open source technologies (or even flash, since it runs on linux) over .NET.
</p></div></div><p>In general, .NET/Mono is perfectly Linux-friendly, as I think I&#39;ve said over 9000 times on this and other forums. However, Andrey has decided to target Silverlight, which Novell considers very experimental<span class="ref"><sup>[<a href="#">1</a>]</sup></span> and won&#39;t yet target for Mono development. There is Moonlight, which is a Linux Silverlight plug-in, but you&#39;d still have to develop your Silverlight app in Windows.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885510#target">kazzmir</a> said:</div><div class="quote"><p> Is it common for .NET programs written on Windows to run easily on Mono as well?
</p></div></div><p>From what I&#39;ve heard, it&#39;s pretty straight-forward. Some apps will just work, some need to sidestep some platform-specific calls, some are fundamentally based on platform-specific features and will be very hard to port. Much like porting C/C++, but you don&#39;t have to deal with compiler-specific <span class="cuss"><span>bull<span class="cuss"><span>shit</span></span></span></span>. Also, Mono has a tool for aiding migration from .NET, called MoMA.
</p><div class="ref-block"><h2>References</h2><ol><li>With good reason. Silverlight has failed to capture a significant market share, and I heard a rumor that its sister technology, WPF, is essentially being discontinued in preference to Silverlight -- though that&#39;s probably nothing more than a rumor, it shows how little confidence people have in the technology.</li></ol></div></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kibiz0r)</author>
		<pubDate>Wed, 13 Oct 2010 22:11:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885692#target">Kibiz0r</a> said:</div><div class="quote"><p>Holy naming conventions, Batman! .NET convention is PascalCase for types and public/protected/internal members, camelCase for private members and locals.</p></div></div><p>

I tried to save function naming like at original Allegro, to decrease time for migration.</p><p>So it has almost nothing with naming at AllegroNET and NET. </p><p>Original Allegro:<br />create_bitmap(w,h);</p><p>AllegroNET:<br />Allegro.create_bitmap(w,h);</p><p>See? <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andrey Gayvoronsky)</author>
		<pubDate>Wed, 13 Oct 2010 22:23:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885701#target">Andrey Gayvoronsky</a> said:</div><div class="quote"><p> I tried to save function naming like at original Allegro, to decrease time for migration.
</p></div></div><p>As a new user, I would find it incredibly confusing that BITMAP is all-caps, GameScreen is PascalCase, GameScreen.Source is capitalized, BITMAP.source is not, and create_bitmap is lower-case underscored.</p><p>I also think that migrating from C to C# (especially with Silverlight) will involve a lot of design challenges that will be much more difficult to deal with than renaming function calls -- which they already have to do since the methods are in the Allegro static class.</p><p>Lots of libraries don&#39;t pay attention to naming their types appropriately for the platform they run on. Mechanically, it doesn&#39;t matter, but it does have an impact on perception and confidence. If my first impression is &quot;Does this person really know .NET? This code doesn&#39;t look very .NET...&quot; then I&#39;m not likely to use the library.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kibiz0r)</author>
		<pubDate>Thu, 14 Oct 2010 02:12:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885418#target">Andrey Gayvoronsky</a> said:</div><div class="quote"><p>So i chose .NET platform</p></div></div><p>

Good choice!</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>...especially Silverlight</p></div></div><p>

Bad choice!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (james_lohr)</author>
		<pubDate>Thu, 14 Oct 2010 02:21:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/605282/885737#target">Kibiz0r</a> said:</div><div class="quote"><p>As a new user, I would find it incredibly confusing that BITMAP is all-caps, GameScreen is PascalCase, GameScreen.Source is capitalized, BITMAP.source is not, and create_bitmap is lower-case underscored.</p></div></div><p>

Well, you are right somewhere. But as i said, i would like to decrease time of migration. Anything except of Allegro uses .NET  naming inside of my project. But i got you point about  &#39;wow...does this guy know NET?&#39; <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />)) And actually i&#39;m still very new at NET <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /> although porting of TimeWarp + Allegro is quite competitive task <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andrey Gayvoronsky)</author>
		<pubDate>Thu, 14 Oct 2010 03:38:44 +0000</pubDate>
	</item>
</rss>
