删除 YouleNexus 内嵌 .git,统一由根仓库唯一管理。提交: - projects/ 旧 H5 模板 Game_Surface_3 与各子游戏源码 - cocoscreator_projects/YouleNexus 工程 + cocos-creator-mcp 扩展源码 - CLAUDE.md、.mcp.json 等配置 library/temp/node_modules/dist 等缓存由 .gitignore 排除。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
460 lines
9.8 KiB
JavaScript
460 lines
9.8 KiB
JavaScript
var AppList = AppList||{};
|
|
var RouteList = RouteList||{};
|
|
var RpcList = RpcList||{};
|
|
//--------------AppList---------------
|
|
AppList.app = "youle";
|
|
|
|
//-----------RouteList-------------
|
|
RouteList.platform = "platform";
|
|
RouteList.agent="agent";
|
|
RouteList.room="room";
|
|
|
|
|
|
//----------------RpcList--------------
|
|
RpcList.player_login = "player_login";
|
|
RpcList.self_join_room = "self_join_room";
|
|
RpcList.create_room = "create_room";
|
|
RpcList.self_break_room = "self_break_room";
|
|
RpcList.other_break_room = "other_break_room";
|
|
RpcList.other_join_room = "other_join_room";
|
|
RpcList.self_exit_room = "self_exit_room";
|
|
RpcList.other_exit_room = "other_exit_room";
|
|
RpcList.self_apply_free_room = "self_apply_free_room";
|
|
RpcList.other_apply_free_room = "other_apply_free_room";
|
|
RpcList.self_agree_free_room = "self_agree_free_room";
|
|
RpcList.other_agree_free_room = "other_agree_free_room";
|
|
RpcList.self_refuse_free_room = "self_refuse_free_room";
|
|
RpcList.other_refuse_free_room = "other_refuse_free_room";
|
|
RpcList.free_room = "free_room";
|
|
RpcList.over_game = "over_game";
|
|
RpcList.get_player_grade1 = "get_player_grade1";
|
|
RpcList.get_player_grade2 = "get_player_grade2";
|
|
RpcList.update_roomcard = "update_roomcard";
|
|
RpcList.other_offline = "other_offline";
|
|
RpcList.other_online = "other_online";
|
|
RpcList.send_voice = "send_voice";
|
|
RpcList.play_voice = "play_voice";
|
|
RpcList.send_text = "send_text";
|
|
RpcList.receive_chat = "receive_chat";
|
|
RpcList.get_player_task = "get_player_task";
|
|
RpcList.player_finish_task = "player_finish_task";
|
|
RpcList.get_task_award = "get_task_award";
|
|
RpcList.can_award = "can_award";
|
|
RpcList.kick_offline = "kick_offline";
|
|
RpcList.call_phone = "call_phone";
|
|
RpcList.other_callphone = "other_callphone";
|
|
RpcList.hangup_phone = "hangup_phone";
|
|
RpcList.other_hangup = "other_hangup";
|
|
RpcList.self_makewar = "self_makewar";
|
|
RpcList.other_makewar = "other_makewar";
|
|
RpcList.agentserver_game="agentserver_game";
|
|
RpcList.send_gift="send_gift";
|
|
RpcList.other_send_gift="other_send_gift";
|
|
RpcList.send_voice="send_voice";
|
|
RpcList.play_voice="play_voice";
|
|
RpcList.connect_roomserver="connect_roomserver";
|
|
RpcList.connect_agentserver="connect_agentserver";
|
|
RpcList.broadcast="broadcast";
|
|
RpcList.send_phiz="send_phiz";
|
|
RpcList.submit_opinion = "submit_opinion";
|
|
RpcList.kick_server = "kick_server";
|
|
RpcList.get_paylist = "get_paylist";
|
|
RpcList.pay_succ = "pay_succ";
|
|
RpcList.submit_location = "submit_location";
|
|
RpcList.binding_invitecode = "binding_invitecode";
|
|
RpcList.update_bean = "update_bean";
|
|
RpcList.get_player_invitecode = "get_player_invitecode";
|
|
RpcList.beanroom_surrender = "beanroom_surrender";
|
|
RpcList.player_prepare = "player_prepare";
|
|
RpcList.share_room = "share_room";
|
|
RpcList.get_share_room = "get_share_room";
|
|
RpcList.quick_enter_share_room = "quick_enter_share_room";
|
|
RpcList.advanced_roomlist = "advanced_roomlist";
|
|
RpcList.advanced_createroom = "advanced_createroom";
|
|
RpcList.change_room = "change_room";
|
|
|
|
|
|
var h5RpcList={}
|
|
h5RpcList.joinRoom = "joinRoom";
|
|
//----------------------------end------------------------------
|
|
|
|
var ClickBtn = [3,5,6,7,13,14,15,10,11,12,25,17,9,47,51,53,55,58,59,60,61,74,75,80,115,183,150,151,153,181,201,202,183,184,185,205,206,207,208,209,210,211,212,166,167,168,169,170,124,127,130,
|
|
133,233,245,246,247,253,248,249,253,256,257,258,259,260,261,262,263,550,177,283,375,391,392,393,394,395,396,397,
|
|
398,399,400,401,402,403,366,367,386,464,234,345,483,484,493,509,512,513,514,515,519,520,521,568,569,570,571,572,579,
|
|
602,626,604,656,661,662,663,664,665,666,667,668,669,670,671,3000,3004,3007,3008,3009,3010,3011,3014];
|
|
var C_PageOne = {
|
|
Tag:1,
|
|
X:1100,
|
|
Y:160,
|
|
H:80
|
|
};
|
|
var C_PageTwo = {
|
|
Tag:1,
|
|
X:1100,
|
|
Y:160,
|
|
H:80
|
|
};
|
|
var UnClickBtn = [50,225,227,228,229,699,161,162,164,165,370,426,427,428,429,430,431,432,433,434,435,446,447,448,449,450,451,452,453,454,455,468,469,470,471,472,473,474,475,476,477,498,499,500,501,
|
|
502,503,504,505,506,507,81,573,574,575,629,630,631,632,633
|
|
];
|
|
|
|
var ConstVal=ConstVal||{};
|
|
ConstVal.Max = {
|
|
ShowChat:2000,
|
|
textlength:20,
|
|
headImgTimer:200,
|
|
heartbeat:30000
|
|
};
|
|
|
|
ConstVal.Tips={
|
|
width:30,
|
|
time:3000,
|
|
|
|
};
|
|
ConstVal.Kick={
|
|
text:"网络出现异常!",
|
|
tip:"(请重启游戏)"
|
|
};
|
|
ConstVal.screenShotParam = 0.7;
|
|
ConstVal.ShareTaskId="TJnueK1103Xgwj2o79xM2nvSe0WN6rzp";
|
|
|
|
ConstVal.iMessage={
|
|
text_y1:-60,
|
|
text_y2:25,
|
|
icon_x:20,
|
|
icon_y1:-65,
|
|
icon_y2:20,
|
|
close_x:1205,
|
|
close_y1:-60,
|
|
close_y2:25,
|
|
bg_y1:-85,
|
|
bg_y2:0,
|
|
time:500,
|
|
x1:85,
|
|
x2:1205,
|
|
y:0,
|
|
h:85,
|
|
speed:0.05,
|
|
max_length:60
|
|
};
|
|
ConstVal.Emotion = {
|
|
//动画帧间隔200
|
|
mode:1,//表情播放时间模式1->按帧数确定时间2->按照show_time_list确定
|
|
count:20,
|
|
f_spid:467,
|
|
tag:1,
|
|
rate:100,
|
|
col_num:4,//一行上的个数
|
|
spid_list:[528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547],//表情精灵列表序号对应
|
|
src_list:[147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],//表情对应资源号
|
|
frame_list:[5,25,31,30,14,7,8,17,3,8,30,14,35,24,23,15,6,24,31,9],//表情对应帧数
|
|
show_time_list:[147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166],//表情播放时间
|
|
x:20,
|
|
y:20,
|
|
dis_x:20,
|
|
dis_y:20,
|
|
w:100,
|
|
h:100,
|
|
clip_x:0,
|
|
clip_y:0,
|
|
clip_h:0,
|
|
clip_w:0
|
|
|
|
}
|
|
ConstVal.Com_History = {
|
|
//动画帧间隔200
|
|
f_spid:696,
|
|
head_tag:1,
|
|
page_count:5,
|
|
text_width:11.5,
|
|
bubble_tag:10000,
|
|
content_tag:20000,
|
|
time_tag:30000,
|
|
time_length:[10,30,60,90,120,300],
|
|
bubble_width:[100,140,180,220,260,300,340],//气泡长度
|
|
head_res_id:116,
|
|
head_x:20,
|
|
head_y:30,
|
|
head_h:60,
|
|
head_dis_y:35,
|
|
time_bubble_dis_x:10,
|
|
head_bubble_dis_x:78,
|
|
bubble_content_dis_x:25,
|
|
head_bubble_dis_y:0,
|
|
head_content_1_dis_y:13,
|
|
head_content_2_dis_y:13,
|
|
time_bubble_dis_y:13,
|
|
clip_x:0,
|
|
clip_y:0,
|
|
clip_h:0,
|
|
clip_w:0
|
|
|
|
}
|
|
ConstVal.Task = {
|
|
f_spid:176,//父精灵
|
|
bg_spid:123,//背景精灵
|
|
task_des_spid:135,//任务描述精灵
|
|
reward_des_spid:307,//任务奖励描述
|
|
proc_bg_spid:311,//任务进度背景
|
|
proc_spid:315,//任务进度前景
|
|
proc_des_spid:319,//任务进度文字描述
|
|
get_reward_btn_spid:124,//领取任务按钮
|
|
isreward_spid:328,//已领取
|
|
tofinish_btn_spid:125,//去完成任务
|
|
//tag值
|
|
bg_tag:1,
|
|
task_des_tag:1000,
|
|
reward_des_tag:2000,
|
|
proc_bg_tag:3000,
|
|
proc_tag:4000,
|
|
proc_des_tag:5000,
|
|
get_reward_btn_tag:6000,
|
|
isreward_tag:7000,
|
|
tofinish_btn_tag:8000,
|
|
//位置
|
|
bg_x:0,
|
|
bg_y:0,
|
|
bg_w:0,//动态获取
|
|
bg_dis_x:0,
|
|
|
|
task_des_x:30,
|
|
task_des_y:30,
|
|
|
|
reward_des_y:265,
|
|
proc_bg_y:380,
|
|
proc_y:380,
|
|
proc_des_y:380,
|
|
get_reward_btn_y:368,
|
|
isreward_y:365,
|
|
tofinish_btn_y:330,
|
|
|
|
clip_x:110,
|
|
clip_y:170,
|
|
clip_w:0,
|
|
clip_h:0
|
|
}
|
|
ConstVal.Launch_mode={
|
|
name:"Launchtype",
|
|
from_hall:1,
|
|
from_self:0
|
|
};
|
|
ConstVal.OS = {//操作系统类型
|
|
apple:1,//苹果
|
|
android:2,//安卓
|
|
winphone:3,//windowsphone
|
|
other:4//其他
|
|
};
|
|
ConstVal.InterEffSoundsList = ["00001.mp3","00002.mp3","00003.mp3","00004.mp3"];
|
|
ConstVal.soudsSpidList = [235,13,5,6,7,9,339,11,12,14,15,249,10,376,377,378,379,380,381,382,383,384,385,150,153,151,283,181,513,233,185];
|
|
ConstVal.Broadcast = {
|
|
textwidth:18,
|
|
speed:0.1,
|
|
clip_x:0,
|
|
clip_y:0,
|
|
clip_w:0,
|
|
clip_h:0
|
|
};
|
|
ConstVal.Notice = {
|
|
replaceOldWord:"#",
|
|
replaceNewWord:"\n",
|
|
lineHeight:60,
|
|
textHeight:30,
|
|
textWidth:14,
|
|
clip_x:0,
|
|
clip_y:0,
|
|
clip_w:725,
|
|
clip_h:430
|
|
};
|
|
ConstVal.payConfig = {
|
|
enablePay:false
|
|
};
|
|
ConstVal.netType = 0;
|
|
ConstVal.loginButton = {
|
|
key:"loginimage",
|
|
type1:[1,22],//0->类型值 1->图片资源ID
|
|
type2:[2,203]
|
|
}
|
|
|
|
ConstVal.userAgent = {
|
|
paraName:"",
|
|
uAgent_1:1,
|
|
uAgent_2:2,
|
|
uAgent_3:3
|
|
};
|
|
ConstVal.worldRoom = {
|
|
f_sp_1:522,
|
|
f_sp_2:523,
|
|
bg_sp_1:524,
|
|
bg_sp_2:525,
|
|
top_sp_1:526,
|
|
top_sp_2:563,
|
|
des_sp_1:527,
|
|
des_sp_2:564,
|
|
starbg_sp_1:566,
|
|
starbg_sp_2:567,
|
|
star_sp_1:562,
|
|
star_sp_2:565,
|
|
|
|
bg_sp_tag_1:1,
|
|
bg_sp_tag_2:1,
|
|
top_sp_tag_1:5000,
|
|
top_sp_tag_2:5000,
|
|
des_sp_tag_1:10000,
|
|
des_sp_tag_2:10000,
|
|
starbg_sp_tag_1:15000,
|
|
starbg_sp_tag_2:15000,
|
|
star_sp_tag_1:20000,
|
|
star_sp_tag_2:20000,
|
|
|
|
clip_x_1:0,
|
|
clip_x_2:0,
|
|
clip_y_1:0,
|
|
clip_y_2:0,
|
|
clip_w_1:1150,
|
|
clip_w_2:1150,
|
|
clip_h_1:0,
|
|
clip_h_2:0,
|
|
|
|
bg_sp_x_1:0,
|
|
bg_sp_x_2:0,
|
|
bg_sp_y_1:0,
|
|
bg_sp_y_2:0,
|
|
bg_sp_space_1:6,
|
|
bg_sp_space_2:6,
|
|
top_sp_x_1:25,
|
|
top_sp_x_2:25,
|
|
top_sp_y_1:25,
|
|
top_sp_y_2:25,
|
|
top_sp_width_1:13,
|
|
top_sp_width_2:13,
|
|
top_sp_space_1:6,
|
|
top_sp_space_2:6,
|
|
des_sp_x_1:25,
|
|
des_sp_x_2:25,
|
|
des_sp_y_1:80,
|
|
des_sp_y_2:80,
|
|
des_sp_width_1:11,
|
|
des_sp_width_2:11,
|
|
des_sp_space_1:6,
|
|
des_sp_space_2:6,
|
|
|
|
|
|
starbg_sp_x_1:35,
|
|
starbg_sp_x_2:35,
|
|
starbg_sp_y_1:182,
|
|
starbg_sp_y_2:182,
|
|
starbg_sp_space_1:6,
|
|
starbg_sp_space_2:6,
|
|
|
|
star_sp_x_1:35,
|
|
star_sp_x_2:35,
|
|
star_sp_y_1:189,
|
|
star_sp_y_2:189,
|
|
star_sp_space_1:6,
|
|
star_sp_space_2:6,
|
|
};
|
|
ConstVal.snrRoomList ={
|
|
f_spid:611,
|
|
bg_spid:622,
|
|
rcode_bg_spid:623,
|
|
rcode_spid:624,
|
|
close_spid:625,
|
|
update_spid:626,
|
|
switch_spid:627,
|
|
info_spid:600,
|
|
profit_spid:601,
|
|
|
|
bg_tag:1,
|
|
rcode_bg_tag:100,
|
|
rcode_tag:200,
|
|
close_tag:300,
|
|
update_tag:400,
|
|
switch_tag:500,
|
|
info_tag:600,
|
|
profit_tag:700,
|
|
|
|
clip_x:0,
|
|
clip_y:0,
|
|
clip_w:900,
|
|
clip_h:0,
|
|
|
|
bg_x:0,
|
|
rcode_bg_x:33,
|
|
rcode_x:50,
|
|
close_x:70,
|
|
update_x:20,
|
|
switch_x:150,
|
|
info_x:25,
|
|
profit_x:0,
|
|
|
|
bg_y:0,
|
|
rcode_bg_y:260,
|
|
rcode_y:8,
|
|
close_y:260,
|
|
update_y:90,
|
|
switch_y:90,
|
|
info_y:90,
|
|
profit_y:267,
|
|
|
|
profit_w:12,
|
|
|
|
bg_space:30,
|
|
rcode_bg_space:35,
|
|
rcode_space:50,
|
|
close_space:300,
|
|
update_space:400,
|
|
switch_space:500,
|
|
|
|
};
|
|
ConstVal.rankList ={
|
|
f_spid:609,
|
|
bg_spid:610,
|
|
badge_spid:629,
|
|
headimg_spid:630,
|
|
headfront_spid:631,
|
|
name_spid:632,
|
|
star_spid:633,
|
|
|
|
bg_tag:1,
|
|
badge_tag:100,
|
|
headimg_tag:200,
|
|
headfront_tag:300,
|
|
name_tag:400,
|
|
star_tag:500,
|
|
|
|
clip_x:0,
|
|
clip_y:0,
|
|
clip_w:0,
|
|
clip_h:511,
|
|
|
|
bg_x:0,
|
|
badge_x:-20,
|
|
headimg_x:93,
|
|
headfront_x:85,
|
|
name_x:190,
|
|
star_x:190,
|
|
|
|
bg_y:0,
|
|
badge_y:-5,
|
|
headimg_y:12,
|
|
headfront_y:5,
|
|
name_y:8,
|
|
star_y:42,
|
|
|
|
|
|
space:13,
|
|
|
|
headsrc:116
|
|
|
|
};
|
|
ConstVal.MenuScene = {
|
|
createBtn_1:[780,182],//有星星场
|
|
joinBtn_1:[780,320],
|
|
starBtn:[780,458],
|
|
createBtn_2:[780,230],
|
|
joinBtn_2:[780,405]
|
|
};
|
|
|
|
|
|
|