<?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%8D%A1%E7%89%8C/</link><description>Recent content in 卡牌 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Wed, 03 Jun 2026 18:11:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E5%8D%A1%E7%89%8C/index.xml" rel="self" type="application/rss+xml"/><item><title>Phaser 卡牌战斗拖拽系统：出牌不是把 Sprite 拖到敌人身上</title><link>https://plumephp.com/phaser-card-battle-drag-drop-2026/</link><pubDate>Wed, 03 Jun 2026 18:11:00 +0800</pubDate><guid>https://plumephp.com/phaser-card-battle-drag-drop-2026/</guid><description>&lt;h2 id="卡牌拖拽的难点在出牌判定"&gt;卡牌拖拽的难点在出牌判定&lt;/h2&gt;
&lt;p&gt;Phaser 做卡牌战斗很直观：卡牌是 Sprite 或 Container，手牌区是一排对象，拖到敌人身上释放，就触发技能。原型阶段这样写很快，但上线项目很快会遇到更多规则：费用不够不能出，沉默状态不能出，某些牌必须选友方，某些牌不需要目标，拖到空地要取消，动画播放期间不能连点，服务端否定后要回滚。&lt;/p&gt;</description></item></channel></rss>