The present disclosure relates to a game interaction method, device and computer readable storage medium, and belongs to the field of game technology. The method includes: in response to the interactive requests generated during the operation of web games, determining the interface corresponding to the interactive requests, integrating the interface into the game platform in the terminal device, identifying the method for handling the interactive requests, and processing the interactive requests by calling the method identified by the interface. Interactive requests generated by web games can be invoked by calling the interface of the game platform, and then invoke methods that can realize interactive requests. These methods are not directly invoked by the game. Therefore, for different game platforms, different versions of games need not be developed separately, which greatly reduces the cost of game development. In addition, because in the process of game interaction, the game interacts with the server by calling the interface of the game platform, this process increases the concealment of game data and has a higher degree of security than that of directly interacting with the server through the game.
【技术实现步骤摘要】
游戏交互方法、装置及计算机可读存储介质
本公开涉及游戏
,尤其涉及一种游戏交互方法、装置及计算机可读存储介质。
技术介绍
随着移动终端行业日新月异的发展,我们的移动终端的功能也变得越来越强,一种不需要安装,随时能打开的网页(Web)游戏逐渐兴起,例如超级文本标记语言标准最新版本(HyperTextMarkupLanguage5,H5)游戏。网页游戏通常通过游戏平台进行下载和加载。在玩网页游戏时,终端设备接收用户在游戏平台的界面上发出的下载指令;终端设备通过游戏平台向服务器发送游戏资源下载请求;服务器将对应的游戏资源发送给终端设备,终端设备接收服务器发送的游戏资源;终端设备加载游戏资源,启动网页游戏,然后通过网页游戏和服务器进行信息交互。由于网页游戏的有些功能需要通过调用游戏平台的方法实现(例如获取用户信息),而游戏平台存在不同的版本,例如苹果移动操作系统(iPhoneOS,IOS)游戏平台、安卓游戏平台、快应用游戏平台、网页游戏平台等,为了保证网页游戏能够调用不同游戏平台中的方法,所以开发者在开发网页游戏时,需要开发与各个游戏平台匹配的不同版本的网页游戏,造成游戏开发量工程量大,费时费力。并且,在游戏交互过程中,由于游戏数据是终端设备通过网页游戏发送给服务器的,所以只需要追踪网页游戏即可发现这些游戏数据,不但用户可以通过软件对游戏数据进行篡改实现作弊,而且数据也容易被盗取,造成数据交互安全性差。
技术实现思路
本公开提供一种游戏交互方法、装置及计算机可读存储介质,以降低游戏开发的工作量,提高游戏数据交互的安全性。根据本公开实施例的第一方面,提供一种游戏交 ...
【技术保护点】
1.一种游戏交互方法,其特征在于,所述方法包括:响应于网页游戏运行过程中产生的交互请求,确定与所述交互请求对应的接口,所述接口集成在终端设备中的游戏平台中,所述接口用于标识处理所述交互请求的方法;通过所述接口调用所述接口所标识的方法处理所述交互请求。
【技术特征摘要】
1.一种游戏交互方法,其特征在于,所述方法包括:响应于网页游戏运行过程中产生的交互请求,确定与所述交互请求对应的接口,所述接口集成在终端设备中的游戏平台中,所述接口用于标识处理所述交互请求的方法;通过所述接口调用所述接口所标识的方法处理所述交互请求。2.根据权利要求1所述的游戏交互方法,其特征在于,所述响应于网页游戏运行过程中产生的交互请求,确定与所述交互请求对应的接口,包括:根据交互请求与接口的对应关系,确定所述交互请求对应的所述终端设备中游戏平台的接口;调用所述交互请求对应的所述终端设备中游戏平台的接口。3.根据权利要求1所述的游戏交互方法,其特征在于,所述通过所述接口调用所述接口所标识的方法处理所述交互请求,包括:确定所述接口中定义的方法;调用所述接口中定义的方法处理所述交互请求。4.根据权利要求1-3任一项所述的游戏交互方法,其特征在于,所述方法还包括:当启动网页游戏时,采用未被释放的连接与服务器进行信息交互,所述未被释放的连接为已关闭的网页游戏运行时与所述服务器建立的连接。5.根据权利要求1-3任一项所述的游戏交互方法,其特征在于,所述方法还包括:当结束或后台运行网页游戏时,在通知栏进行通知提醒。6.根据权利要求1-3任一项所述的游戏交互方法,其特征在于,所述接口包括游戏信息发送接口、用户信息获取接口、广告获取接口、音频播放接口和振动接口。7.根据权利要求1-3任一项所述的游戏交互方法,其特征在于,所述游戏平台为快应用游戏平台、苹果移动操作系统游戏平台、安卓游戏平台或者网页游戏平台。8.根据权利要求1-3任一项所述的游戏交互方法,其特征在于,所述接口为JavaScript接口。9.一种游戏交互装置,其特征在于,所述装置包括:确定单元,用于响应于网页游戏运行过程中产生的交互请求,确定与所述交互请求对应的接口,所述接口集成在终端设备中的游戏平台中,所述接口用于标识处理所述交互请求的方法;处理单元,用于通...
【专利技术属性】
技术研发人员:祁连山,王星友,王利兴,李硕研,朱豪,唐若林,王庆,潘保明,李伟,胡明杰,郭煌建,
申请(专利权)人:北京小米移动软件有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。