<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[我们一起修个草棚过冬吧]]></title> 
<description><![CDATA[记录U3D等相关技术]]></description>
<link>http://www.answer86.com/blog/</link>
<language>zh-cn</language>
<generator>www.answer86.com</generator>

<item>
	<title>副本设计与心理活动</title>
	<link>http://www.answer86.com/blog/?post=59</link>
	<description><![CDATA[<p>假设一个游戏里玩家在游玩中可能获得宝箱且需要完成主线任务，宝箱是随机的，可有可无，而主线任务则不带奖励，且必须完成才能推进游戏进程。</p>
<p>&nbsp;</p>
<p>讨论心理活动前先梳理一些定论，方便后面分析，首先提取变量：心理预期（期待）、付出、收获（激励）、结束心理状态（正反馈/满足/满意，负反馈/失望，平淡）。</p>
<p>一：激励 &gt;= （期待+付出）-&gt; 正反馈</p>
<p>二：激励 &lt; （期待+付出）-&gt; 负反馈</p>
<p>三：期待付出激励均无 -&gt; 平淡</p>
<p>四：正反馈强度会等比提高下次期待值；负反馈&hellip;&hellip;</p><p><a href="http://www.answer86.com/blog/?post=59">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sun, 19 Nov 2023 23:44:32 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=59</guid>

</item>
<item>
	<title>解决Unity渲染Tilemap等中间出现白线问题</title>
	<link>http://www.answer86.com/blog/?post=57</link>
	<description><![CDATA[<p>原因分析：模型坐标OS转为屏幕坐标CS后，在光栅化时，CS刚好命中屏幕像素坐标，在计算像素包含关系时就会（有人说因为浮点，我感觉还有GPU算法，求解）漏掉，造成间隙，而Tilemap就表现为白线。</p>
<p>解决方法：在shader对所有CS进行偏移（其实可以只偏移命中部分，但if判断反而更消耗，而且偏移后效果可接受）</p>
<p>代码（修改Universal Render Pipeline/2D/Sprite-Lit-Default，黄色部分为修改内容）：</p><p><a href="http://www.answer86.com/blog/?post=57">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Wed, 11 May 2022 02:50:09 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=57</guid>

</item>
<item>
	<title>【不准拒绝我】官方主页</title>
	<link>http://www.answer86.com/blog/?post=55</link>
	<description><![CDATA[<p>【不准拒绝我】官方主页</p><p><a href="http://www.answer86.com/blog/?post=55">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Mon, 29 Jul 2019 02:08:51 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=55</guid>

</item>
<item>
	<title>【不准拒绝我】隐私政策</title>
	<link>http://www.answer86.com/blog/?post=53</link>
	<description><![CDATA[<p>【不准拒绝我】隐私政策</p><p><a href="http://www.answer86.com/blog/?post=53">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sun, 16 Jun 2019 23:10:48 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=53</guid>

</item>
<item>
	<title>【草棚游戏】活动纪录整理</title>
	<link>http://www.answer86.com/blog/?post=52</link>
	<description><![CDATA[<p><span style="color:#(color);"><a href="http://www.answer86.com/blog/?list=cpgame-service">【草棚游戏】客服服务中心</a>
</span>
</p>
<p><span style="color:#(color);">2019-06-01&nbsp; <a href="http://www.answer86.com/blog/?list=twist-20190601-top5">【按住你的心】2019儿童节活动！！！</a>
</span>
</p>
<p><span style="color:#(color);"> </span>
 <a href="http://www.answer86.com/blog/?list=twist-20190601-top5"> </a>
</p>]]></description>
	<pubDate>Sat, 01 Jun 2019 12:25:33 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=52</guid>

</item>
<item>
	<title>【按住你的心】隐私政策</title>
	<link>http://www.answer86.com/blog/?post=49</link>
	<description><![CDATA[<p>【按住你的心】隐私政策</p><p><a href="http://www.answer86.com/blog/?post=49">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Thu, 16 May 2019 03:28:03 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=49</guid>

</item>
<item>
	<title>Unity游戏启动闪屏优化方案（Android）</title>
	<link>http://www.answer86.com/blog/?post=48</link>
	<description><![CDATA[<p>Unity游戏启动时，在闪屏出现之前有两件事需要做：1、序列化Resources文件夹内的资源结构树；2、预加载/编译一些指定的Shader，如GraphicsSettings-Preloaded Shaders中设置的元素。在这两件事期间屏幕将出现黑屏，体验毫无疑问相当差。而需要等待黑屏的时间就因工程而异了。如果你的工程不需要在这两件事上花时间，后面的内容请忽略。</p>
<p>优化的策略是废弃Unity自带的闪屏，在启动时自己显示一个闪屏图片（android层去做），并在进入游戏后......</p><p><a href="http://www.answer86.com/blog/?post=48">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Thu, 22 Feb 2018 06:04:43 +0000</pubDate>
	<author>pw</author>
	<guid>http://www.answer86.com/blog/?post=48</guid>

</item>
<item>
	<title>Unity3d4.5.5f1发布IOS适配IPhone5;5c;5s;6;6p的launchimage</title>
	<link>http://www.answer86.com/blog/?post=47</link>
	<description><![CDATA[<p>参考http://www.bkjia.com/Androidjc/888284.html</p>
<p>不过不用那么麻烦，只需在发布好的XCode工程中，修改Classes\UI\SplashScreen.mm文件...</p><p><a href="http://www.answer86.com/blog/?post=47">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Fri, 12 Dec 2014 09:15:13 +0000</pubDate>
	<author></author>
	<guid>http://www.answer86.com/blog/?post=47</guid>

</item>
<item>
	<title>IOS越狱版里的应用更新</title>
	<link>http://www.answer86.com/blog/?post=46</link>
	<description><![CDATA[<p>环境：越狱IOS设备，支持https的web服务器，包含应用信息的plist文件</p>
<p>原理：使用Safari独有的协议，如（itms-services://?action=download-manifest&amp;url=http://192.168.0.39/publish/whatsappinfo.plist）</p>
<p>备注：</p>
<p>1、如果web服务器是自签名证书，必须在IOS设备安装这个证书。将这个证书通过邮件呀，或是网页呀什么方式让手机安装这个证书，然后再去装APP就可了。另外可以使用DropBox之类的代替自己建立服务器，这样就不需要在IOS设备上安装对应证书了。</p>
<p>2、plist文件可以在附件里下载来修改也行。</p>]]></description>
	<pubDate>Tue, 11 Nov 2014 09:28:49 +0000</pubDate>
	<author></author>
	<guid>http://www.answer86.com/blog/?post=46</guid>

</item>
<item>
	<title>LoadFromCacheOrDownload的进度在Iphone中没过渡</title>
	<link>http://www.answer86.com/blog/?post=45</link>
	<description><![CDATA[<p>使用WWW.LoadFromCacheOrDownload方法加载文件时，其进度（www.progress）在IOS（iPhone/iPad）上只有0和1两个值，不会（0.1,0.2,0.3&hellip;&hellip;）这样平滑的过渡，但在PC和Android上能正常。</p>
<p>解决方法是：1、按照下面设置好HTTP头，2、将要下载的文件后缀设置好mime类型（<span style="color: rgb(255, 0, 0); font-family: 宋体; line-height: 25px; text-indent: 28px; ">application/octet-stream</span>
）</p>
<p>参照：<a href="http://answers.unity3d.com/questions/594668/wwwprogress-not-working-on-android-ios-1.html">http://answers.unity3d.com/questions/594668/wwwprogress-not-working-on-android-ios-1.html</a>
</p>
<p><span style="color: rgb(0, 0, 0); font-family: 'helvetica neue', sans-serif; font-size: 13px; line-height: 18px; text-align: left; -webkit-text-size-adjust: none; ">Typically you see this behaviour when the server is returning bad header information. If it&#39;s not returning a content length, Unity has no way of giving you progress, since progress is a percentage of the total content length.</span>
</p>
<p style="border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; border-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 13px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 13px; line-height: 18px; color: rgb(0, 0, 0); font-family: 'helvetica neue', sans-serif; text-align: left; -webkit-text-size-adjust: none; "><strong>Server code</strong>
 :</p>
<pre style="background-color: rgb(245, 245, 245); font-family: Consolas, Monaco, 'Liberation Mono', 'Lucida Console', monospace; font-size: 13px; margin-bottom: 10px; overflow-x: auto; overflow-y: auto; padding-left: 5px; padding-top: 5px; width: 580px; color: rgb(0, 0, 0); line-height: 20px; text-align: left; -webkit-text-size-adjust: none; "><code style="font-family: Consolas, Monaco, 'Liberation Mono', 'Lucida Console', monospace; font-size: 13px; "> $attachment_location = &#39;files/myAssetBundle.unity3d&#39;;
 header($_SERVER[&quot;SERVER_PROTOCOL&quot;] . &quot; 200 OK&quot;);
 header(&quot;Cache-Control: public&quot;);
 header(&quot;Content-Type: application/zip&quot;);
 header(&quot;Content-Transfer-Encoding: Binary&quot;);
 header(&quot;Content-Length:&quot;.filesize($attachment_location));
 header(&quot;Content-Disposition: attachment; filename=myAssetBundle.unity3d&quot;);
 readfile($attachment_location);
 Die();</code>

</pre>]]></description>
	<pubDate>Wed, 22 Oct 2014 04:50:32 +0000</pubDate>
	<author></author>
	<guid>http://www.answer86.com/blog/?post=45</guid>

</item></channel>
</rss>