首页 游戏源码 宠物介绍源码
高清

宠物介绍源码

 

local 场景类_宠物介绍 = class()
local tx=引擎.取头像
local tp
local cz=引擎.取成长
local ani = 引擎.取战斗模型
local qjn = 引擎.取技能数量
local jn=引擎.取技能
local insert = table.insert
按钮 = require(“script/系统类/按钮”)
local 成长记忆 = {}
local 选中编号 = 0

function 场景类_宠物介绍:初始化(根)
self.ID = 1002
self.x = 200
self.y = 100
self.xx = 0
self.yy = 0
self.注释 = “宠物介绍”
self.可视 = false
self.鼠标 = false
self.焦点 = false
self.可移动 = true
local 资源 = 根.资源
local 按钮 = 根._按钮
local 自适应= 根._自适应
self.加入 = 0
self.宝宝模型={}
self.动画={}
tp = 根
self.物理=1
self.窗口时间 = 0
self.选中类型 = “宠物”
ali=根.字体表.猫猫字体3
self.资源组 = {
[1] = 资源:载入(“pic/宠物介绍.png”,”图片”),–主背景
[2] = 资源:载入(“gds.wdf”,”网易WDF动画”,0x10000002),
[21] = 资源:载入(“gds.wdf”,”网易WDF动画”,0x10000002),
[211] = 资源:载入(“gds.wdf”,”网易WDF动画”,0x10000002),
[3] = 按钮.创建(资源:载入(“星河素材.wdf”,”网易WDF动画”,0x00000020),0,0,4,true,true,”上一页”),
[4] = 按钮.创建(资源:载入(“星河素材.wdf”,”网易WDF动画”,0x00000020),0,0,4,true,true,”下一页”),
[5]= 按钮.创建(自适应.创建(12, 4, 30, 22, 1, 3), 0, 0, 4, 66, true, “功”),–其他系统
[6]= 按钮.创建(自适应.创建(12, 4, 30, 22, 1, 3), 0, 0, 4, 66, true, “法”),–其他系统
[7]= 按钮.创建(自适应.创建(12, 4, 30, 22, 1, 3), 0, 0, 4, 66, true, “进”),–其他系统
[8]= 按钮.创建(自适应.创建(12, 4, 30, 22, 1, 3), 0, 0, 4, 66, true, “左”),–其他系统
[9]= 按钮.创建(自适应.创建(12, 4, 30, 22, 1, 3), 0, 0, 4, 66, true, “右”),–其他系统
[10]= 按钮.创建(自适应.创建(12, 4, 30, 22, 1, 3), 0, 0, 4, 66, true, “原”),–其他系统
[11] = 按钮.创建(资源:载入(‘星河商城.wdf’,”网易WDF动画”,0xEEE36C05),0,0,4,true,true), –关闭
[12] = 按钮.创建(资源:载入(“星河素材.wdf”,”网易WDF动画”,0x00000020),0,0,4,true,true,”召唤兽”),
[13] = 按钮.创建(资源:载入(“星河素材.wdf”,”网易WDF动画”,0x00000020),0,0,4,true,true,”神 兽”),
[14] = 按钮.创建(资源:载入(“星河素材.wdf”,”网易WDF动画”,0x00000020),0,0,4,true,true,”物 理”),
[15] = 按钮.创建(资源:载入(“星河素材.wdf”,”网易WDF动画”,0x00000020),0,0,4,true,true,”法 术”),

}
self.选中背景 = tp.资源:载入(‘pic/66.png’,”图片”)
for i=3,15 do
self.资源组[i]:绑定窗口_(self.ID)
end
self.资源组[3]:置偏移(5,0)
self.资源组[4]:置偏移(5,0)
self.资源组[12]:置偏移(5,0)
self.资源组[13]:置偏移(5,0)
self.资源组[14]:置偏移(5,0)
self.资源组[15]:置偏移(5,0)
end

function 场景类_宠物介绍:打开()
if self.可视 then
self.可视 = false
else
insert(tp.窗口_,self)
tp.运行时间 = tp.运行时间 + 1
self.窗口时间 = tp.运行时间
self.可视 = true
end
方向=0
功=0
法=0
进=0
选中编号 = “泡泡”
self.宝宝模型 = {“泡泡”,”树怪”,”大海龟”,”巨蛙”,”章鱼”,”海星”,”护卫”,”草龟”,”草叶虫”,”竹笋虫”,”积水蛙”,”元宝龟”,”天机虫”,”野猪”,”大蝙蝠”,”海毛虫”,”狸”,”强盗”,”山贼”,
“赌徒”,”沙狸”,”海狸”,”羊头怪”,”花妖”,”骷髅怪”,”蛤蟆精”,”老虎”,”黑熊”,”狐狸精”,”岩龟”,”望月蛙”,”强盗狸”,”强盗狸”,”小龙女”,”狼”,”野鬼”,”虾兵”,”蟹将”,”牛妖”,”熔岩龟”,”冰龟”,
“沙虫”,”熔火虫”,”雪蛙”,”熔火蛙”,”纵火狸”,”兔子怪”,”黑熊精”,”牛头”,”马面”,”僵尸”,”龟丞相”,”蜘蛛精”,”毒花龟(日)”,”毒花龟(夜)”,”云龟”,”金乌虫”,”月光虫”,”食魂虫(日)”,”食魂虫(夜)”,”鬼蛙”,”鬼狸”,”岩冰龟”,
“毒云龟”,”冰火龟”,”火云龟”,”月光雪蛙”,”冰火龟”,”火云龟”,”火月蛙”,”火沙虫”,”金乌火虫”,”强盗沙狸”,”鬼火狸”,”胖海狸”,”草叶魂虫”,”月光金乌虫”,”积水鬼蛙”,”雪月蛙”,”强盗鬼狸”,”金乌月光虫”,”蝴蝶仙子”,”雷鸟人”,”白熊”,”古代瑞兽”,”黑山老妖”,
“天将”,”天兵”,”风伯”,”地狱战神”,”花铃”,”阿宝”,”蛟龙”,”凤凰”,”蚌精”,”鲛人”,”碧水夜叉”,
“雨师”,”独角鬼王”,”月影仙”,”炼丹童子”,”龙鲤”,”芙蓉仙子”,”如意仙子”,”星灵仙子”,”巡游天神”,”犀牛将军人形”,”犀牛将军兽形”,
“锦毛貂精”,”千年蛇魅”,”野猪精”,”百足将军”,”鼠先锋”,”泪妖”,”镜妖”,”日游神”,”金翼”,”吸血鬼”,”幽灵”,
“灵符女娲”,”律法女娲”,”阴阳伞”,”云游火”,”玄珠灵仙”,”巨石守卫(昼)”,”巨石守卫(夜)”,”狐不归”,”虬龙”,”五行山神(土)”,”五行山神(金)”,
“五行山神(木)”,”五行山神(水)”,”五行山神(火)”,”鬼将”,”净瓶女娲”,”幽萤娃娃”,”画魂”,”涂山瞳”,”大力金刚”,”夜罗刹”,”古代瑞兽”,
“雾中仙”,”灵鹤”,”炎魔神”,”噬天虎”,”金饶僧”,”月魅”,”夜游神”,”幻姬”,”琴仙”,”踏云兽”,”红萼仙子”,
“葫芦宝贝”,”猫灵兽形”,”狂豹兽形”,”机关人人形”,”机关人车形”,”机关兽”,”机关鸟”,”连弩车”,”巴蛇”,”猫灵人形”,”狂豹人形”,
“长眉灵猴”,”巨力神猿”,”藤蔓妖花”,”蜃气妖”,”混沌兽”,”修罗傀儡鬼”,”无常鬼差(白)”,”无常鬼差(黑)”,”执音”,”有苏鸩”,
“司辰侍者(未来)”,”司辰侍者(过去)”,”修罗傀儡妖”,”金身罗汉”,”曼珠沙华”,”毗舍童子”,”魔化毗舍童子”,”真陀护法”,”灵灯侍者”,”涂山雪”,”觉醒涂山雪”,
“司风”,”司雪”,”司雨”,”自在心猿”,”持国巡守”,”增长巡守”,”般若天女”,”广目巡守”,”多闻巡守”,”妙华天女”,”谛听”,”长乐灵仙”
}
self.神兽模型 = {“恶魔泡泡”,”恶魔泡泡(奸笑)”,”恶魔泡泡(白眼)”,”恶魔泡泡(哭泣)”,”恶魔泡泡(困惑)”,”泡泡灵仙·杀破狼”,”泡泡灵仙·巫蛮儿”,”泡泡灵仙·龙太子”,”泡泡灵仙·剑侠客”,”泡泡灵仙·神天兵”,”泡泡灵仙·骨精灵”,”泡泡灵仙·飞燕女”,”泡泡灵仙·羽灵神”,”超级泡泡”,”超级神虎”,”超级大熊猫”,”超级人参娃娃”,”超级人参娃娃”,”超级大象”,
“超级筋斗云”,”超级灵狐”,”超级孔雀”,”超级神龙”,”超级神马”,”超级麒麟”,”超级神蛇”,”超级青鸾”,”超级灵鹿”,”超级白泽”,”超级赤焰兽”,”超级大鹏”,”超级神牛”,”超级海豚”,”超级神兔”,”超级神羊”,”超级六耳猕猴”,”超级土地公公”,”超级神猴”,”超级神鸡”,”超级神狗”,”超级小白龙”,
“超级神猪”,”超级飞天”,”超级神鼠”,”超级鲲鹏”,”超级离火兽”,”超级神牛(辛丑)”,”超级神柚”,”超级猪小戒”,”超级有熊”,”超级神虎(壬寅)”,”超级飞廉”,”超级红孩儿”,”超级龙马”,”超级腾蛇”,”超级玉兔”,”超级神兔(癸卯)”,”超级神兔(癸卯)_睡梦”,”超级神龙(甲辰)”
}

end
function 场景类_宠物介绍:更新()

end

function 场景类_宠物介绍:显示(dt,x,y)
引擎.场景.字体表.标题字体:置颜色(白色)

self.焦点=false
local 成长记忆 = {}
选择进阶=0
self.资源组[1]:显示(self.x,self.y)
self.资源组[11]:更新(x,y,self.可视)
self.资源组[11]:显示(self.x+690,self.y+40)
if self.资源组[11]:事件判断() then
self:打开()
end
self.资源组[3]:显示(self.x+60,self.y+415)
self.资源组[4]:显示(self.x+145,self.y+415)
self.资源组[5]:显示(self.x+285,self.y+120)
self.资源组[6]:显示(self.x+325,self.y+120)
self.资源组[7]:显示(self.x+365,self.y+120)
self.资源组[10]:显示(self.x+405,self.y+120)
self.资源组[12]:显示(self.x+60,self.y+65)
self.资源组[13]:显示(self.x+145,self.y+65)

if self.资源组[12]:事件判断() then
self.选中类型=”宠物”
end
if self.资源组[13]:事件判断() then
self.选中类型=”神兽”
end

self.资源组[5]:更新(x,y)
self.资源组[6]:更新(x,y)
self.资源组[7]:更新(x,y,进~=1)
self.资源组[8]:更新(x,y)
self.资源组[9]:更新(x,y)
self.资源组[10]:更新(x,y)
self.资源组[12]:更新(x,y,self.选中类型~=”宠物”)
self.资源组[13]:更新(x,y,self.选中类型~=”神兽”)

数量=#self.宝宝模型
self.翻页数据 = math.floor(数量/24)
if self.资源组[3]:事件判断() then
if self.加入 >0 then
self.加入 = self.加入 – 1
end
elseif self.资源组[4]:事件判断() then
if self.加入 <self.翻页数据 then
self.加入 = self.加入 + 1
end
end
self.资源组[3]:更新(x,y,self.加入>=1)
self.资源组[4]:更新(x,y,self.翻页数据>self.加入)
if self.选中类型 == “宠物” then
local x横,x竖 = 1,1
for i=1,24 do
local n = tx(self.宝宝模型[i+self.加入*24])
if i+self.加入*24 <= #self.宝宝模型 then
self.宝宝头像背景 = tp.资源:载入(n[7],”网易WDF动画”,n[1])
self.宝宝头像背景:显示(self.x+x横*47+3,self.y+58+x竖*51)

if self.宝宝头像背景:是否选中(x,y) then
self.选中背景:显示(self.x+x横*47-6,self.y+47+x竖*51)
tp.提示:自定义(x-45,y+22,self.宝宝模型[i+self.加入*24])
if 引擎.鼠标弹起(左键) then
选中编号 = self.宝宝模型[i+self.加入*24]
宠物 = self.宝宝模型[i+self.加入*24]
原 = self.宝宝模型[i+self.加入*24]
功=0
法=0
进=0
饰=0
无进阶=0
end
end
end
if x横 == 4 then
x横 = 1
x竖=x竖+1
else
x横 = x横+1
end
end
成长记忆 = cz(选中编号)
–tp.影子:显示(self.x+340,self.y+260)
if 选中编号~=0 then
ali:显示(self.x+269,self.y+330,”携带等级:”..成长记忆[10])
ali:显示(self.x+269,self.y+350,”场景:”..成长记忆[11])
end
for x=1,9 do
ali:显示(self.x+632,self.y+x*26+82,成长记忆[x])
引擎.场景.字体表.标题字体:置颜色(白色)
if 选中编号~=0 and 无进阶==0 then
引擎.场景.字体表.标题字体:置颜色(0xfccd8800):显示(self.x+self.资源组[1].宽度/2-8,self.y+90,原)
引擎.场景.字体表.标题字体:置颜色(白色)
else
引擎.场景.字体表.标题字体:置颜色(0xfccd8800):显示(self.x+self.资源组[1].宽度/2-8,self.y+90,原)
引擎.场景.字体表.标题字体:置颜色(白色)
end
ali:置颜色(白色)
end
技能 = qjn(选中编号)
skk = {}
for i=1,#技能 do
if i <= 4 then
jn1=jn(技能[i])
skk.名称=技能[i]
skk.介绍=jn1[1]
mx = tp.资源:载入(jn1[6],”网易WDF动画”,jn1[8])
mx:显示(self.x+448+i*49,self.y+358)
if mx:是否选中(x,y) then–上滚动
tp.提示:技能(x,y,skk)
end
else
jn1=jn(技能[i])
skk.名称=技能[i]
skk.介绍=jn1[1]
mx = tp.资源:载入(jn1[6],”网易WDF动画”,jn1[8])
mx:显示(self.x+448+(i-4)*49,self.y+358+44)
if mx:是否选中(x,y) then–上滚动
tp.提示:技能(x,y,skk)
end
end

end

self:置形象()
end
if self.选中类型 == “神兽” then
self.资源组[14]:显示(self.x+510,self.y+65)
self.资源组[15]:显示(self.x+595,self.y+65)
self.资源组[14]:更新(x,y,self.物理~=1)
self.资源组[15]:更新(x,y,self.物理~=0)
if self.资源组[14]:事件判断() then
self.物理=1
end
if self.资源组[15]:事件判断() then
self.物理=0
end
local x横,x竖 = 1,1
for i=1,24 do
local n = tx(self.神兽模型[i+self.加入*24])
if i+self.加入*24 <= #self.神兽模型 then
self.宝宝头像背景 = tp.资源:载入(n[7],”网易WDF动画”,n[1])
self.宝宝头像背景:显示(self.x+x横*47+3,self.y+58+x竖*51)

if self.宝宝头像背景:是否选中(x,y) then
self.选中背景:显示(self.x+x横*47-6,self.y+47+x竖*51)
tp.提示:自定义(x-45,y+22,self.神兽模型[i+self.加入*24])
if 引擎.鼠标弹起(左键) then
选中编号 = self.神兽模型[i+self.加入*24]
宠物 = self.神兽模型[i+self.加入*24]
原 = self.神兽模型[i+self.加入*24]
功=0
法=0
进=0
饰=0
无进阶=0
end
end
end
if x横 == 4 then
x横 = 1
x竖=x竖+1
else
x横 = x横+1
end
end
成长记忆 = cz(原)
–tp.影子:显示(self.x+340,self.y+260)
if 选中编号~=0 then
ali:显示(self.x+269,self.y+330,”携带等级:”..成长记忆[10])
ali:显示(self.x+269,self.y+350,”场景:”..成长记忆[11])
end
if self.物理==1 then
for x=1,9 do
ali:显示(self.x+632,self.y+x*26+82,成长记忆[x])
引擎.场景.字体表.标题字体:置颜色(白色)
if 选中编号~=0 and 无进阶==0 then
引擎.场景.字体表.标题字体:置颜色(0xfccd8800):显示(self.x+self.资源组[1].宽度/2-8,self.y+90,原)
引擎.场景.字体表.标题字体:置颜色(白色)
else
引擎.场景.字体表.标题字体:置颜色(0xfccd8800):显示(self.x+self.资源组[1].宽度/2-8,self.y+90,原)
引擎.场景.字体表.标题字体:置颜色(白色)
end
ali:置颜色(白色)
end
技能 = qjn(选中编号..”物理”)
skk = {}
for i=1,#技能 do
if i <= 4 then
jn1=jn(技能[i])
skk.名称=技能[i]
skk.介绍=jn1[1]
mx = tp.资源:载入(jn1[6],”网易WDF动画”,jn1[8])
mx:显示(self.x+448+i*49,self.y+358)
if mx:是否选中(x,y) then–上滚动
tp.提示:技能(x,y,skk)
end
else
jn1=jn(技能[i])
skk.名称=技能[i]
skk.介绍=jn1[1]
mx = tp.资源:载入(jn1[6],”网易WDF动画”,jn1[8])
mx:显示(self.x+448+(i-4)*49,self.y+358+44)
if mx:是否选中(x,y) then–上滚动
tp.提示:技能(x,y,skk)
end
end

end
else
for x=1,9 do
ali:显示(self.x+632,self.y+x*26+82,成长记忆[x])
引擎.场景.字体表.标题字体:置颜色(白色)
if 选中编号~=0 and 无进阶==0 then
引擎.场景.字体表.标题字体:置颜色(0xfccd8800):显示(self.x+self.资源组[1].宽度/2-8,self.y+90,原)
引擎.场景.字体表.标题字体:置颜色(白色)
else
引擎.场景.字体表.标题字体:置颜色(0xfccd8800):显示(self.x+self.资源组[1].宽度/2-8,self.y+90,原)
引擎.场景.字体表.标题字体:置颜色(白色)
end
ali:置颜色(白色)
end
技能 = qjn(选中编号)
skk = {}
for i=1,#技能 do
if i <= 4 then
jn1=jn(技能[i])
skk.名称=技能[i]
skk.介绍=jn1[1]
mx = tp.资源:载入(jn1[6],”网易WDF动画”,jn1[8])
mx:显示(self.x+448+i*49,self.y+358)
if mx:是否选中(x,y) then–上滚动
tp.提示:技能(x,y,skk)
end
else
jn1=jn(技能[i])
skk.名称=技能[i]
skk.介绍=jn1[1]
mx = tp.资源:载入(jn1[6],”网易WDF动画”,jn1[8])
mx:显示(self.x+448+(i-4)*49,self.y+358+44)
if mx:是否选中(x,y) then–上滚动
tp.提示:技能(x,y,skk)
end
end

end

end

self:置形象()
end
self.资源组[8]:显示(self.x+305,self.y+270)
self.资源组[9]:显示(self.x+385,self.y+270)

end

function 场景类_宠物介绍:置形象()
点击=0
local n = ani(选中编号)
if 宠物 ~= 0 and 选中编号 ~= 0 then
self.资源组[2]=nil
self.资源组[2111]=nil
self.资源组[211]=nil
self.资源组[21]=nil
self.资源组[2] = tp.资源:载入(n[10],”网易WDF动画”,n[6])
if ani(选中编号..”_装饰”) ~= nil and #ani(选中编号..”_装饰”) >0 then
n1 = ani(选中编号..”_装饰”)
self.资源组[21] = tp.资源:载入(n1[10],”网易WDF动画”,n1[6])
else
self.资源组[21] = nil
end
if ani(选中编号..”_身体”) ~= nil and #ani(选中编号..”_身体”) >0 then
n11 = ani(选中编号..”_身体”)
self.资源组[211] = tp.资源:载入(n11[10],”网易WDF动画”,n11[6])
else
self.资源组[211] = nil
end
if ani(选中编号..”_饰品”) ~= nil and #ani(选中编号..”_饰品”) >0 then
n111 = ani(选中编号..”_饰品”)
self.资源组[2111] = tp.资源:载入(n111[10],”网易WDF动画”,n111[6])
else
self.资源组[2111] = nil
end
end

if self.资源组[5]:事件判断() then
self.资源组[2] = tp.资源:载入(n[10],”网易WDF动画”,n[1])
if ani(选中编号..”_装饰”) ~= nil and #ani(选中编号..”_装饰”) >0 then
n1 = ani(选中编号..”_装饰”)
self.资源组[21] = tp.资源:载入(n1[10],”网易WDF动画”,n1[1])
else
self.资源组[21] = nil
end
if ani(选中编号..”_身体”) ~= nil and #ani(选中编号..”_身体”) >0 then
n11 = ani(选中编号..”_身体”)
self.资源组[211] = tp.资源:载入(n11[10],”网易WDF动画”,n11[1])
else
self.资源组[211] = nil
end
if ani(选中编号..”_饰品”) ~= nil and #ani(选中编号..”_饰品”) >0 then
n111 = ani(选中编号..”_饰品”)
self.资源组[2111] = tp.资源:载入(n111[10],”网易WDF动画”,n111[1])
else
self.资源组[2111] = nil
end
end

if self.资源组[6]:事件判断() then
self.资源组[2] = tp.资源:载入(n[10],”网易WDF动画”,n[7])
if ani(选中编号..”_装饰”) ~= nil and #ani(选中编号..”_装饰”) >0 then
n1 = ani(选中编号..”_装饰”)
self.资源组[21] = tp.资源:载入(n1[10],”网易WDF动画”,n1[7])
else
self.资源组[21] = nil
end
if ani(选中编号..”_身体”) ~= nil and #ani(选中编号..”_身体”) >0 then
n11 = ani(选中编号..”_身体”)
self.资源组[211] = tp.资源:载入(n11[10],”网易WDF动画”,n11[7])
else
self.资源组[211] = nil
end
if ani(选中编号..”_饰品”) ~= nil and #ani(选中编号..”_饰品”) >0 then
n111 = ani(选中编号..”_饰品”)
self.资源组[2111] = tp.资源:载入(n111[10],”网易WDF动画”,n111[7])
else
self.资源组[2111] = nil
end
end

if self.资源组[7]:事件判断() then
选中编号=”进阶”..选中编号
local n = ani(选中编号)

if n[6] == nil then

tp.常规提示:打开(原..”#Y/无进阶形态”)
无进阶=1
return
end
进=1
self.资源组[2] = tp.资源:载入(n[10],”网易WDF动画”,n[6])
if ani(选中编号..”_装饰”) ~= nil and #ani(选中编号..”_装饰”) >0 then
if 饰 == 0 then
n1 = ani(选中编号..”_装饰”)
self.资源组[21] = tp.资源:载入(n1[10],”网易WDF动画”,n1[6])
else
self.资源组[21] = nil
end
else
self.资源组[21] = nil
end
if ani(选中编号..”_身体”) ~= nil and #ani(选中编号..”_身体”) >0 then
n11 = ani(选中编号..”_身体”)
self.资源组[211] = tp.资源:载入(n11[10],”网易WDF动画”,n11[6])
else
self.资源组[211] = nil
end
if ani(选中编号..”_饰品”) ~= nil and #ani(选中编号..”_饰品”) >0 then
n111 = ani(选中编号..”_饰品”)
self.资源组[2111] = tp.资源:载入(n111[10],”网易WDF动画”,n111[6])
else
self.资源组[2111] = nil
end
end
if self.资源组[10]:事件判断() then
local n2 = ani(原)
self.资源组[2]=nil
self.资源组[2111]=nil
self.资源组[211]=nil
self.资源组[21]=nil
self.资源组[2] = tp.资源:载入(n2[10],”网易WDF动画”,n2[6])
if ani(原..”_装饰”) ~= nil and #ani(原..”_装饰”) >0 then
n1 = ani(选中编号..”_装饰”)
self.资源组[21] = tp.资源:载入(n1[10],”网易WDF动画”,n1[6])
else
self.资源组[21] = nil
end
if ani(原..”_身体”) ~= nil and #ani(原..”_身体”) >0 then
n11 = ani(原..”_身体”)
self.资源组[211] = tp.资源:载入(n11[10],”网易WDF动画”,n11[6])
else
self.资源组[211] = nil
end
if ani(原..”_饰品”) ~= nil and #ani(原..”_饰品”) >0 then
n111 = ani(原..”_饰品”)
self.资源组[2111] = tp.资源:载入(n111[10],”网易WDF动画”,n111[6])
else
self.资源组[2111] = nil
end
进=0
选中编号=原
end
if self.资源组[8]:事件判断() then
if 方向==3 then
方向=0
else
方向=方向+1
end
end

if self.资源组[9]:事件判断() then
if 方向==0 then
方向=3
else
方向=方向-1
end
end
self.资源组[2]:置方向(方向)
宠物 = 0
self.资源组[2]:更新(dt)
self.资源组[2]:显示(self.x+354,self.y+260)
if self.资源组[211] ~= nil then
self.资源组[211]:置方向(方向)
self.资源组[211]:显示(self.x+354,self.y+260)
self.资源组[211]:更新(dt)
end
if self.资源组[21] ~= nil then
self.资源组[21]:置方向(方向)
self.资源组[21]:显示(self.x+354,self.y+260)
self.资源组[21]:更新(dt)
end
if self.资源组[2111] ~= nil then
self.资源组[2111]:置方向(方向)
self.资源组[2111]:显示(self.x+354,self.y+260)
self.资源组[2111]:更新(dt)
end
end

function 场景类_宠物介绍:检查点(x,y)
if self.可视 and self.资源组[1]:是否选中(x,y) then
return true
else
return false
end
end

function 场景类_宠物介绍:初始移动(x,y)
tp.运行时间 = tp.运行时间 + 1
if not tp.消息栏焦点 then
self.窗口时间 = tp.运行时间
end
if not self.焦点 then
tp.移动窗口 = true
end
if self.可视 and self.鼠标 and not self.焦点 then
self.xx = x – self.x
self.yy = y – self.y
end
end

function 场景类_宠物介绍:开始移动(x,y)
if self.可视 and self.鼠标 then
self.x = x – self.xx
self.y = y – self.yy
end
end

return 场景类_宠物介绍

作品标签
相关主题作品推荐

客服

客服QQ:3170731803 客服QQ:3170731803

在线时间:09:00-18:00

客服微信

客服微信

客服邮箱 crmbe@163.com

手机

扫描二维码

手机访问本站

扫描二维码
搜索