新增画笔粗细、橡皮粗细、画笔颜色调节、清空画布功能,可能存在逻辑上的不合理,后续再完善细节

This commit is contained in:
2024-04-14 19:27:44 +08:00
parent b0c00624da
commit f9c972846d
8 changed files with 302 additions and 96 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ public class Room {
* @param playerId 发送者的ID(用于排除发送者)
*/
public void sendMessage(String type, String playerId, String message) {
if (type.equals(Global.MSG_TYPE_ROOM_DRAW)) {
if (type.startsWith(Global.MSG_TYPE_ROOM_DRAW)) {
log.info("【绘画房间消息】{}: {}", id, message);
for (Player player : players) {
// 向除自己之外的玩家发送消息