<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>客户端表现 on PlumePHP</title><link>https://plumephp.com/tags/%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%A1%A8%E7%8E%B0/</link><description>Recent content in 客户端表现 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 07 Jun 2026 20:05:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%A1%A8%E7%8E%B0/index.xml" rel="self" type="application/rss+xml"/><item><title>Phaser 精灵动画状态机：别让角色在 idle、run 和 attack 之间打架</title><link>https://plumephp.com/phaser-animation-state-machine-2026/</link><pubDate>Sun, 07 Jun 2026 20:05:00 +0800</pubDate><guid>https://plumephp.com/phaser-animation-state-machine-2026/</guid><description>&lt;h2 id="从一个真实问题开始"&gt;从一个真实问题开始&lt;/h2&gt;
&lt;p&gt;角色站立、奔跑、攻击三套动画都做完以后，最容易出现的不是缺资源，而是动画互相抢控制权。玩家按住方向键攻击，run 每帧都想播放；attack 刚播出一半，受击又插进来；动画结束回到 idle 时，角色明明还在移动。看起来像美术问题，实际是状态机没有说清谁拥有角色。&lt;/p&gt;</description></item></channel></rss>