<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dragon</title>
	<atom:link href="http://texmuse.yo2.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://texmuse.yo2.cn</link>
	<description>Under Construction...</description>
	<lastBuildDate>Mon, 16 Apr 2012 06:53:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Right, It&#039;s done!!!</title>
		<link>http://texmuse.yo2.cn/articles/finally-its-done.html</link>
		<comments>http://texmuse.yo2.cn/articles/finally-its-done.html#comments</comments>
		<pubDate>Wed, 30 Nov 2011 22:42:24 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Projects and Thinkings]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54455</guid>
		<description><![CDATA[The whole PHM (Prognosis and Health Management) system for the avionic EMA (Electro-Magnetic Actuator) now works steadily. System Overview: I've been working day and night on this project for the past&#160;three months! No time for play indeed. But now the&#160;simulink data matches perfectly with the actuator data and the particle filter algorithm works!&#160;Next mission is [...]]]></description>
			<content:encoded><![CDATA[<p>The whole PHM (Prognosis and Health Management) system for the avionic EMA (Electro-Magnetic Actuator) now works steadily.</p>
<p>System Overview:</p>
<p><a href="http://files.blogcn.com/wp03/M00/03/AC/wKgKC09HqsoAAAAAAAFM3neoHtg710.jpg"><img class="alignnone size-medium wp-image-54483" title="phm" src="http://files.blogcn.com/wp01/M00/05/05/wKgKC09Hqs8AAAAAAAA-ek3RBV0324.jpg" alt="" width="300" height="169"></a></p>
<p>I've been working day and night on this project for <strong>the past&nbsp;three months!</strong> No time for play indeed. But now the&nbsp;simulink data matches perfectly with the actuator data and the particle filter algorithm works!&nbsp;Next mission is to finish my master's degree thesis and wait, just wait...</p>
<p><a href="http://files.blogcn.com/wp05/M00/03/6B/wKgKDE7xFVcAAAAAABn-a3yWdls409.png"><img class="alignnone size-medium wp-image-54459" title="PHM1" src="http://files.blogcn.com/wp04/M00/03/69/wKgKDE7xFVoAAAAAAAKbqCUzN7Y528.png" alt="" width="300" height="225"></a></p>
<p>Take a glance of the sensor signal acquisition board (<em>Click it to see the full image</em>). You&nbsp;may see the EMA on the topleft, and the acclerometer sensor (it's on the left of the picture, in the middle). Acclerometer sensor is temporarily not functional so I have to&nbsp;detach it from the actuator.</p>
<p>Below&nbsp;is the fault diagnosis and prognosis result (The turn-to-turn winding fault is detected and the actuator's remaining useful life--RUL is calculated and shown).</p>
<p><a href="http://files.blogcn.com/wp04/M00/03/FD/wKgKDU9JbDIAAAAAAASqLkJ3fjY787.png"><img class="alignnone size-medium wp-image-54492" title="phmexp1" src="http://files.blogcn.com/wp02/M00/04/30/wKgKCk9JbDQAAAAAAACrckf0n6s894.png" alt="" width="300" height="137"></a></p>
<p>There is still a slight imperfection: I calculated the PDFs (Probability Density Function) according to the particles in PF algorithm, and tried to show them in&nbsp;a TeeChart Winform control. However, this control seemed very ugly because former PDFs are partially shadowed by newer PDFs. There must be a better way of showing them with something else.</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/finally-its-done.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My experience with mobile devices</title>
		<link>http://texmuse.yo2.cn/articles/my-experiences-with-mobile-devices.html</link>
		<comments>http://texmuse.yo2.cn/articles/my-experiences-with-mobile-devices.html#comments</comments>
		<pubDate>Thu, 01 Sep 2011 11:14:54 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Mobile Development]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54474</guid>
		<description><![CDATA[I'm crazy about embedded/mobile developing.&#160;I decided to participate in various projects shortly after I won my first prize in an computer olympiad to challenge myself and to find my own interest. Since then, I have been working on mobile devices from the oldest 8-bit MCU to the most modern one: iPhone4, and&#160;I have tried everything [...]]]></description>
			<content:encoded><![CDATA[<p>I'm crazy about embedded/mobile developing.&nbsp;I decided to participate in various projects shortly after I won my first prize in an computer olympiad to challenge myself and to find my own interest. Since then, I have been working on mobile devices from the oldest 8-bit MCU to the most modern one: iPhone4, and&nbsp;I have tried everything new on those different devices. Funny ideas also provides me an important way of relaxation, or even sources of innovation, while conducting serious researches. Also money earned from them covered some of my school stipends.</p>
<p>You may find some of my projects in the "Mobile Development" section. Some projects on WQX (An electronic dictionary with a 8-bit 6502 CPU inside) are collected specially in the "WQX Memorial" section because those memories are <strong>very</strong> precious to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/my-experiences-with-mobile-devices.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Behind the game &quot;Dudu Rush&quot;</title>
		<link>http://texmuse.yo2.cn/articles/behind-the-game-dudu-rush.html</link>
		<comments>http://texmuse.yo2.cn/articles/behind-the-game-dudu-rush.html#comments</comments>
		<pubDate>Mon, 15 Aug 2011 03:36:07 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Mobile Development]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54487</guid>
		<description><![CDATA[One month after it's release and rated top 1 in iTunes store, Now I decided to provide you with some real details behind the game "Dudu rush". Pleasant Visual Design With many years' experience in game developing, I believed that an outstanding game artist contributes almost as much as the programmer or game designer. We [...]]]></description>
			<content:encoded><![CDATA[<p>One month after it's release and rated top 1 in iTunes store, Now I decided to provide you with some real details behind the game "Dudu rush".</p>
<p><strong>Pleasant Visual Design</strong></p>
<p>With many years' experience in game developing, I believed that an outstanding game artist contributes almost as much as the programmer or game designer.</p>
<p>We take huge efforts to enrich our game with the best art. In fact we have to give our game its own aesthetic style, and make everyone feel like to give it a try when they see the game at the first time.</p>
<p>Take 'Dudu' as example:</p>
<p>At first there was nothing in dudu's red head/body, Our game art (Ms.Liu) then added a trident hair onto dudu's head, making him like a pepper. During the game developing, I proposed several changes to the dudu's body, and they could be seen in the picture below:</p>
<p><a href="http://files.blogcn.com/wp04/M00/03/F4/wKgKDE9H5nUAAAAAAADpVgtlWCo691.png"><img class="alignnone size-medium wp-image-54489" title="dudu" src="http://files.blogcn.com/wp06/M00/05/B0/wKgKDE9H5nYAAAAAAAC2F3V3EOo853.png" alt="" width="300" height="118"></a></p>
<p>The original dudu was in the middle, and finally we chose the dudu on the left -- the one with thin stripes. This one was more like a pumpkin:)</p>
<p>The result proved that many people praised our game art, especially girls:)</p>
<p><strong>Lua based game architecture</strong></p>
<p>I&nbsp;had&nbsp;been a Lua fan since the day I knew it. I used Lua in Infiworks, a mobile app company, and the Dudu Rush was the second commercial game I developed mainly in Lua. Three kinds of languages were used for the game:</p>
<p>Lua: 70%<br>
C++: 15%<br>
Obj-C: 15%</p>
<p>Mr.Zhao wrote most of the C++ and Obj-C code to do the rendering and manage the resources (in fact those codes played the role of a basic engine, I also added some C++ codes for my own conveniency), and I designed almost all the game logic in Lua.</p>
<p>Several years ago, I read some articles about component-based pattern. Having realized it's better than the OO pattern which always inherits, I tried to implement this pattern in my research projects, where all the codes are written in C# and I tried my best to keep my components simple and stupid. However, I did not found the great advantage of the component-based pattern until I started iPhone developing, when I mixed the static language with a dynamic one, just like Lua.</p>
<p>Mr.Zhao's game engine is a great example of this design pattern: Some useful components are already included in the engine: Sprite, State Machine, Action, 2D Transformation, etc. I also add a lite particle system into the engine, and control it via Lua codes (A improved version of this particle system under Windows&nbsp;can be found here).</p>
<p>Everything in the game is a mixture of multiple components, and every component is reusable at the time it is created. Extra game functions can be created through composing components together instead of inheriting from an old father class. It's clean, and it's sharp. We can prototype any gameplay we want in a few hour, and quickly adjust it when the artist designs the final character.</p>
<p><strong>Unsymmetrical Jumping</strong></p>
<p>In Super Mario Bros. and many other famous action games, Jumping is an common action. The character jumps over blocks or enemies to proceed in the game. Dudu rush is designed to be a "relaxed action game", that means although there are lovely characters and funny music in the game, the gameplay remains challenging. Especially, we decided that when the game character jumps, it goes up a little faster than when it goes down. Actually, the dudu goes in the air like the picture below:</p>
<p><a href="http://files.blogcn.com/wp06/M00/05/B0/wKgKDE9HyFkAAAAAAAbKzHrz198727.png"><img class="alignnone size-medium wp-image-54488" style="border-style: initial; border-color: initial;" title="backGround3-1" src="http://files.blogcn.com/wp04/M00/03/FB/wKgKDU9HyFoAAAAAAAHiCm0UM3I548.png" alt="" width="300" height="225"></a></p>
<p>This unsymmetrical jump feature also goes with air hikes. In this way, game players may experience a little tension when every jump starts, and feel relieved when they try to jump over long traps.</p>
<p>The only thing we never considered is the long-term goal for this game. As a free game, no bonus or upgrades is included in the original Dudu rush, The game might caught players' eye in the first glance, but few features can keep the player for a long time. so it didn't remain 1st for long in iPhone app store (in fact it stayed 1st for about two weeks, now Infiworks is developing a paid version). Anyway, the success of this game is already a surprise to me. It's really great!</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/behind-the-game-dudu-rush.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A pretty fast simulator for airplane&#039;s infrared radiation</title>
		<link>http://texmuse.yo2.cn/articles/a-pretty-fast-simulator-for-airplane-infrared-radiation.html</link>
		<comments>http://texmuse.yo2.cn/articles/a-pretty-fast-simulator-for-airplane-infrared-radiation.html#comments</comments>
		<pubDate>Sat, 13 Aug 2011 00:50:24 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Mobile Development]]></category>
		<category><![CDATA[Projects and Thinkings]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54470</guid>
		<description><![CDATA[The mobile simulator node is an important part of our lab's distributed simulation system.&#160;Three infrared radiation sources of the airplane are considered in the simulation: &#160;fuselage, &#160;hot spot and plume. This simulator runs on my android phone Meizu M9 (1GHz CPU), Radiation value are calculated on several discrete points according to Planc's law for black [...]]]></description>
			<content:encoded><![CDATA[<p>The mobile simulator node is an important part of our lab's distributed simulation system.&nbsp;Three infrared radiation sources of the airplane are considered in the simulation: &nbsp;fuselage, &nbsp;hot spot and plume.</p>
<p>This simulator runs on my android phone Meizu M9 (1GHz CPU), Radiation value are calculated on several discrete points according to Planc's law for black body radiations. I also added a trackball function: You can touch and slide the screen to rotate the whole scene!</p>
<p>Here is the result:</p>
<p><a href="http://files.blogcn.com/wp05/M00/03/F5/wKgKDU9IEdMAAAAAAACjbCfdFqc505.png"><img class="alignnone size-full wp-image-54491" title="radio" src="http://files.blogcn.com/wp05/M00/03/F5/wKgKDU9IEdMAAAAAAACjbCfdFqc505.png" alt="" width="278" height="260"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/a-pretty-fast-simulator-for-airplane-infrared-radiation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iava RTS game &quot;Sandstorm&quot; is out.</title>
		<link>http://texmuse.yo2.cn/articles/iava-rts-game-sandstorm-is-out.html</link>
		<comments>http://texmuse.yo2.cn/articles/iava-rts-game-sandstorm-is-out.html#comments</comments>
		<pubDate>Sat, 06 Aug 2011 06:19:00 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Mobile Development]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54448</guid>
		<description><![CDATA[Now watch this. Can you imagine this Real Time Strategy game is running on an MTK feature phone with a CPU of only 100~150MHz and RAM of less than 300KB (Including graphical memory)? Yes I made it! This is a really exciting RTS. AI and path finding codes are highly optimized to make the game [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="sandstorm3" src="http://i1213.photobucket.com/albums/cc477/dragonsome/M894JX8ELSCH5PG5SVQS.gif" alt="" width="312" height="312"></p>
<p>Now watch this. Can you imagine this Real Time Strategy game is running on an MTK feature phone with a CPU of only 100~150MHz and RAM of less than 300KB (Including graphical memory)?</p>
<p><strong><span style="color: #ff0000;">Yes I made it!</span></strong> This is a really exciting RTS. AI and <a title="path finding codes" href="http://texmuse.yo2.cn/articles/path-finding-codes.html">path finding codes</a> are highly optimized to make the game run smoothly on very limited hardware platforms.</p>
<p>This game is not ready for release now, I am still looking for a good game art to cooperate with. You can get the alpha&nbsp;trial version below, only one tutorial map is enabled.</p>
<p><em>The game runs on IVM (Iava Virtual Machine) which is designed for millions of MTK phones in China. The IVM runtime for windows (IvcSetup.exe) is also included in the zip file:</em></p>
<div>文件名：Desktop.zip<br>
文件大小：1.37 MB<br>
下载地址：<a href="http://1000eb.com/7f1t" target="_blank">http://1000eb.com/7f1t</a></div>
<p>Some more test shots:</p>
<p><img title="sandstorm1" src="http://i1213.photobucket.com/albums/cc477/dragonsome/7ZQWMILJ5DTNJDC2U4.gif" alt="" width="192" height="188"></p>
<p><img class="alignnone" title="sandstorm2" src="http://i1213.photobucket.com/albums/cc477/dragonsome/9151K03VPTW2K83.gif" alt="" width="167" height="158"></p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/iava-rts-game-sandstorm-is-out.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua version of Seumas-McNally&#039;s Particles is out.</title>
		<link>http://texmuse.yo2.cn/articles/lua-version-of-seumas-mcnallys-particles-is-out.html</link>
		<comments>http://texmuse.yo2.cn/articles/lua-version-of-seumas-mcnallys-particles-is-out.html#comments</comments>
		<pubDate>Tue, 19 Jul 2011 15:00:42 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Lua]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54426</guid>
		<description><![CDATA[The program&#160;uses SDL and Lua for Windows. Fading effect&#160;is implemented in C. Particle system and&#160;most animations are implemented in lua. Now the main scripts simulate the famous Seumas-McNally's screensaver lol:) All source code (Lua and C) can be downloaded below: 文件名：smpf-0.2.zip 文件大小：353 KB 下载地址：http://1000eb.com/7f2w Code can be compiled with Lua 5.1 and SDL, and runs [...]]]></description>
			<content:encoded><![CDATA[<p>The program&nbsp;uses SDL and Lua for Windows. Fading effect&nbsp;is implemented in C. Particle system and&nbsp;most animations are implemented in lua. Now the main scripts simulate the famous Seumas-McNally's screensaver lol:)</p>
<p><a href="http://files.blogcn.com/wp01/M00/04/37/wKgKC07vSP4AAAAAAASgpShJKnU761.png"><img class="alignnone size-medium wp-image-54429" title="pt3" src="http://files.blogcn.com/wp01/M00/04/37/wKgKC07vSP4AAAAAAAEUh3XyuvA951.png" alt="lua particles screenshot3" width="300" height="225"></a></p>
<p><a href="http://files.blogcn.com/wp05/M00/03/69/wKgKDE7vSPQAAAAAAAMCwlS2HgU953.png"><img class="alignnone size-medium wp-image-54428" title="pt2" src="http://files.blogcn.com/wp05/M00/03/69/wKgKDE7vSPQAAAAAAACxAA1IJEw892.png" alt="" width="300" height="225"></a></p>
<p><a href="http://files.blogcn.com/wp03/M00/03/1A/wKgKC07vSOsAAAAAAAZy4xV-4Zo378.png"><img class="alignnone size-medium wp-image-54427" title="pt1" src="http://files.blogcn.com/wp03/M00/03/AE/wKgKCk7vSOwAAAAAAAGIDkyaKE0728.png" alt="lua particles screenshot1" width="300" height="225"></a></p>
<p>All source code (Lua and C) can be downloaded below:</p>
<div>文件名：smpf-0.2.zip<br>
文件大小：353 KB<br>
下载地址：<a href="http://1000eb.com/7f2w" target="_blank">http://1000eb.com/7f2w</a></div>
<p>Code can be compiled with Lua 5.1 and SDL, and runs under Windows XP/Vista/7. Code::Blocks project file&nbsp;is also included.</p>
<p>PS: During my EMA-PHM project, I decided to write another script, aiming to illustrate the PF (Particle Filtering) algorithm, to render the probability of each particle, and to calculate and render the PDF (Probability Density Function) in real time. I must admit that this particle system is just for fun and I never thought of using it in my lab researches before, but now the system seems to be the perfect way of illustrating academical ideas, What a coincidence!</p>
<p>I hope&nbsp;the final work will help other students in the ATE lab, because many of them are using PF algorithm in their researches. Almost all other winform controls that I can find are way too ugly to do such a job.</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/lua-version-of-seumas-mcnallys-particles-is-out.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Path finding codes</title>
		<link>http://texmuse.yo2.cn/articles/path-finding-codes.html</link>
		<comments>http://texmuse.yo2.cn/articles/path-finding-codes.html#comments</comments>
		<pubDate>Thu, 14 Jul 2011 07:15:08 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Projects and Thinkings]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54450</guid>
		<description><![CDATA[I always find it interesting to present an algorithm with graphical illustrations. Below are&#160;some path-finding algorithms&#160;in GIF format: &#160; The typical A-Star algorithm is not&#160;very suitable on a feature phone, because you must do with the sorting in the open and close tables.&#160;When the CPU frequency is very low (about 100MHz), everything must be done [...]]]></description>
			<content:encoded><![CDATA[<p>I always find it interesting to present an algorithm with graphical illustrations. Below are&nbsp;some path-finding algorithms&nbsp;in GIF format:</p>
<p><img class="alignnone" title="pathfinding2" src="http://i1213.photobucket.com/albums/cc477/dragonsome/L986EUNE50TNVBYN5U.gif" alt="" width="240" height="164">&nbsp;<img class="alignnone" title="pathfinding" src="http://i1213.photobucket.com/albums/cc477/dragonsome/6CJFIFTC738RBDJFGF.gif" alt="" width="240" height="240"></p>
<p>The typical A-Star algorithm is not&nbsp;very suitable on a feature phone, because you must do with the sorting in the open and close tables.&nbsp;When the CPU frequency is very low (about 100MHz), everything must be done in the fastest way. On&nbsp;the&nbsp;ARM platform, if you take other dependencies into account (limited memory, time for other codes and&nbsp;effiency of&nbsp;virtual machine), A-Star still seemed slow in game, even under optimization with binary heaps. The quickest way with an acceptable outcome which I&nbsp;found at last is similiar to the way of "go along the walls", however, key waypoints are integrated, and following optimization strategies are used:</p>
<p>1.<strong>Use memory pools</strong> to avoid <span style="color: #ff0000;"><strong>too much</strong></span> malloc() and free(). Memory allocation&nbsp;needs a lot of time, especially on mobile devices. Programmers should be smart to use them in real time algorithms.</p>
<p>2.<strong>Limit path finding steps</strong>. For example, if the algorithm doesn't return any result in 32 rounds (that means the units cannot reach their destination in&nbsp;32 steps), then just stop the present path-finding task to start&nbsp;the next one, and&nbsp;warn the player. This is to avoid&nbsp;those rare&nbsp;yet possible&nbsp;worst situations that may block the task queue.</p>
<p>3.Use a <strong>find-and-follow</strong> strategy. That means when player selects multiple units and orders them to move toward the same place, Only one unit's path finding&nbsp;will be&nbsp;done, and other units will follow&nbsp;his route.</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/path-finding-codes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A DAY TO REMEMBER - The iPhone game &quot;Dudu Rush(嘟嘟向前冲)&quot; rushes to 1st in iTunes Store!!!</title>
		<link>http://texmuse.yo2.cn/articles/a-day-to-remember-the-iphone-game-dudu-rush-come-to-top-in-itunes-store.html</link>
		<comments>http://texmuse.yo2.cn/articles/a-day-to-remember-the-iphone-game-dudu-rush-come-to-top-in-itunes-store.html#comments</comments>
		<pubDate>Sat, 25 Jun 2011 00:59:06 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Mobile Development]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54453</guid>
		<description><![CDATA[That is REALLY AMAZING!!! I nearly cannot believe it when I heard the news. The&#160;game was developed by three people including me,&#160; the other two are&#160;programmer Zhao and game artist Liu from Infiworks Inc. I must confess there are some games like this kind, but only ours have ever reached the 1st!!! I had been [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://files.blogcn.com/wp03/M00/03/B0/wKgKCk7xBVEAAAAAAAkSazrYfAo584.png"><img class="alignnone size-medium wp-image-54454" title="untitled" src="http://files.blogcn.com/wp04/M00/03/6B/wKgKDU7xBVUAAAAAAADiEDit3NU291.png" alt="" width="300" height="178"></a></p>
<p><strong><span style="color: #ff0000;">That is REALLY AMAZING!!!</span></strong> I nearly cannot believe it when I heard the news. The&nbsp;game was developed by three people including me,&nbsp; the other two are&nbsp;programmer Zhao and game artist Liu from Infiworks Inc. I must confess there are some games like this kind, but only ours have ever reached the 1st!!!</p>
<p>I had been working&nbsp;in Infiworks for part-time, and later we decided to made the "Dudu Rush". Mr.Zhao provided us with the game engine&nbsp;and I used Lua to adjust the game logic to make it enjoyable, while Mr.Liu did most of the game art. I thought it would be somehow successful because the idea is&nbsp;not too bad&nbsp;and Mr.Liu's drawings are <strong>REALLY</strong> perfect as well as the wonderful music, but I have never&nbsp;expected the game&nbsp;to be so popular. Anyway, this is the first iPhone app I designed. Much thanks to Mr.Zhao and Mr.Liu, Cheers!</p>
<p>Think of what I learned from Infiworks:&nbsp;Some advanced UI design skill, Some code optimization techniques&nbsp;for Cocoa platform, and the most important thing: I got familiar with Lua. The language is really cool and I will&nbsp;use it in&nbsp;my lab projects:)</p>
<p>Note: For Something Behind This Game Please Visit&nbsp;<a href="http://texmuse.yo2.cn/articles/behind-the-game-dudu-rush.html">Here</a>:)</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/a-day-to-remember-the-iphone-game-dudu-rush-come-to-top-in-itunes-store.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua Serialization</title>
		<link>http://texmuse.yo2.cn/articles/lua-serialization.html</link>
		<comments>http://texmuse.yo2.cn/articles/lua-serialization.html#comments</comments>
		<pubDate>Thu, 12 May 2011 09:46:27 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Lua]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54462</guid>
		<description><![CDATA[This is a Lua table serializer. Types of key can only be number or string, however values can be a table. Self reference (Loops) is supported. function serialize(t) local parents={} local newbies={} local function genstring(tbl,parent) parents[tbl]=parent local t_tmp={} for e_key,e_value in pairs(tbl) do local key= type(e_key)=="number" and "["..e_key.."]" or e_key if type(e_value)=="table" then local cckey= [...]]]></description>
			<content:encoded><![CDATA[<p>This is a Lua table serializer.</p>
<p>Types of key can only be <span style="color: #0000ff;">number</span> or <span style="color: #0000ff;">string</span>, however values can be a <span style="color: #0000ff;">table</span>. Self reference (Loops) is supported.</p>
<pre class="lua">
function serialize(t)
    local parents={}
    local newbies={}
    local function genstring(tbl,parent)
        parents[tbl]=parent
        local t_tmp={}
        for e_key,e_value in pairs(tbl) do
            local key= type(e_key)=="number" and "["..e_key.."]" or e_key
            if type(e_value)=="table" then
                local cckey= parent..(type(e_key)=="number" and key or "."..key)
                if parents[e_value] then
                    table.insert(newbies,cckey.."="..parents[e_value])
                else
                    table.insert(t_tmp, key.."="..ser_table(e_value,cckey))
                end
            else
                table.insert(t_tmp, key.."="..e_value)
            end
        end
        return "{"..table.concat(t_tmp,",").."}"
    end
    return "do local ret="..genstring(t,"ret")..table.concat(newbies," ").." return ret end"
end
</pre>]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/lua-serialization.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>累积</title>
		<link>http://texmuse.yo2.cn/articles/%e7%b4%af%e7%a7%af.html</link>
		<comments>http://texmuse.yo2.cn/articles/%e7%b4%af%e7%a7%af.html#comments</comments>
		<pubDate>Wed, 23 Mar 2011 23:47:42 +0000</pubDate>
		<dc:creator>镇魂歌</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://texmuse.yo2.cn/?p=54477</guid>
		<description><![CDATA[小升初：外语出成绩的前一天，把新乡那边拒掉了，唯一的选择，最后成功了。 在新主楼呆了三年，最近才发现厕所的门居然是那个原理。强大。 其实我也不知道我这习惯是怎么养成的了，不过反正寝室晚上是回不去，真没法回去。且不说隔壁那几个到了晚上就鬼哭狼嚎的，屁g一回来怎么都觉得别扭。果然是有其父必有其子。 总之这寝室已不是我的寝室，北航也不是我的北航了。 最近居然发现屁g拿我的盆子泡他的臭袜子……做人怎么着也不能这样吧。联想其各方面行为，怪不得他暑假搞上的那个妞后来再也没见过了。会看上这种jp的女生，真是瞎了眼。 八点半了居然还是没人来。 写完这句话Z同学就来了。 突然想起来我有本书借了得有一个月没还了，还是新书……算下来也该有二十多块钱了吧。记得本科的时候H同学在图书馆欠过一次四十多块钱的书，然后向我哭诉。当时我感觉这就是天文数字么。现在怎么总也觉得这点钱好像不算啥。每天吃饭不小心就得吃个二十块钱呢。唉，变了变了…… 又在校内发现一个八卦。某@尼哄的同学Z居然找了个@米国的高中学弟做bf。而且此学弟貌似是甩掉远在家乡的ex和这同学Z好上的。这这这，其中缘故谁能知晓啊……看看人家ex在校内上说自己被骗了，我一个旁观者都不忍心啊。虽说Z同学你也就我大两岁，找个学弟也不是不行，不过，何必要在这种异国+劈腿的狗血剧情里扮演个角色呢。我说这学弟你也是的，中国跟米国是异国，尼哄跟米国难道就不是？唉，记得当初刚知道的时候还以为又是一桩美事呢，现在看看，华袍下面果然总会有虱子的。 在校内上看了看这学弟的照片，颇猥琐。话说我在Z大这几个同学还真扯，谈的恋爱貌似到现在也没一个让人觉得有希望走到最后的。 算了，本来还想评论评论C同学跟S同学呢，突然发现自己连结婚年龄都不到，光顾着说人家干吗。 已经过去了的：小升初，中考，高考，考研，每次都令人胆寒。抛弃所有其他的选择，最后总成为背水一战。我每次都有了不成功就再来一年的想法，却每次都侥幸过关。下一次即将到来，不管是为了什么原因，我只有奋力向前。 小升初：外语出成绩的前一天，把新乡那边拒掉了，唯一的选择，最后勉强过线。 中考：体育比别人低了十多分，最后勉强过线。 高考：第一次高考、保送节节失利，最后还考砸了的我，竟然由于爆冷这种N年不遇的事情而几乎逃脱了复读的命运。当然，勉强过线。 考研：保研没去，出国放弃，说真的，我的考研分数只不过排在中游，又不是本系的学生，如果不是面试，很可能会被刷掉的。最后能考上，也算幸运了。 在这一次的战斗前，我写下这样的文字，祝自己好运。]]></description>
			<content:encoded><![CDATA[<p>小升初：外语出成绩的前一天，把新乡那边拒掉了，唯一的选择，最后成功了。</p>
<p>在新主楼呆了三年，最近才发现厕所的门居然是那个原理。强大。</p>
<p>其实我也不知道我这习惯是怎么养成的了，不过反正寝室晚上是回不去，真没法回去。且不说隔壁那几个到了晚上就鬼哭狼嚎的，屁g一回来怎么都觉得别扭。果然是有其父必有其子。</p>
<p>总之这寝室已不是我的寝室，北航也不是我的北航了。</p>
<p>最近居然发现屁g拿我的盆子泡他的臭袜子……做人怎么着也不能这样吧。联想其各方面行为，怪不得他暑假搞上的那个妞后来再也没见过了。会看上这种jp的女生，真是瞎了眼。</p>
<p>八点半了居然还是没人来。</p>
<p>写完这句话Z同学就来了。</p>
<p>突然想起来我有本书借了得有一个月没还了，还是新书……算下来也该有二十多块钱了吧。记得本科的时候H同学在图书馆欠过一次四十多块钱的书，然后向我哭诉。当时我感觉这就是天文数字么。现在怎么总也觉得这点钱好像不算啥。每天吃饭不小心就得吃个二十块钱呢。唉，变了变了……</p>
<p>又在校内发现一个八卦。某@尼哄的同学Z居然找了个@米国的高中学弟做bf。而且此学弟貌似是甩掉远在家乡的ex和这同学Z好上的。这这这，其中缘故谁能知晓啊……看看人家ex在校内上说自己被骗了，我一个旁观者都不忍心啊。虽说Z同学你也就我大两岁，找个学弟也不是不行，不过，何必要在这种异国+劈腿的狗血剧情里扮演个角色呢。我说这学弟你也是的，中国跟米国是异国，尼哄跟米国难道就不是？唉，记得当初刚知道的时候还以为又是一桩美事呢，现在看看，华袍下面果然总会有虱子的。</p>
<p>在校内上看了看这学弟的照片，颇猥琐。话说我在Z大这几个同学还真扯，谈的恋爱貌似到现在也没一个让人觉得有希望走到最后的。</p>
<p>算了，本来还想评论评论C同学跟S同学呢，突然发现自己连结婚年龄都不到，光顾着说人家干吗。</p>
<p>已经过去了的：小升初，中考，高<u style=display:none>半夜凉初透</u>考，考研，每次都令人胆寒。抛弃所有其他的选择，最后总成为背水一战。我每次都有了不成功就再来一年的想法，却每次都侥幸过关。下一次即将到来，不管是为了什么原因，我只有奋力向前。</p>
<p>小升初：外语出成绩的前一天，把新乡那边拒掉了，唯一的选择，最后勉强过线。</p>
<p>中考：体育比别人低了十多分，最后勉强过线。</p>
<p>高<u style=display:none>半夜凉初透</u>考：第一次高<u style=display:none>半夜凉初透</u>考、保送节节失利，最后还考砸了的我，竟然由于爆冷这种N年不遇的事情而几乎逃脱了复读的命运。当然，勉强过线。</p>
<p>考研：保研没去，出国放弃，说真的，我的考研分数只不过排在中游，又不是本系的学生，如果不是面试，很可能会被刷掉的。最后能考上，也算幸运了。</p>
<p>在这一次的战斗前，我写下这样的文字，祝自己好运。</p>
]]></content:encoded>
			<wfw:commentRss>http://texmuse.yo2.cn/articles/%e7%b4%af%e7%a7%af.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

