一种网页游戏的实现方法、 系统及装置 技术领域 Method, system and device for realizing webpage game
本发明涉及网络通信领域, 特别涉及一种网页游戏的实现方法、 系统及装 置。 背景技术 The present invention relates to the field of network communications, and in particular, to a method, system and device for implementing a web game. Background technique
网页游戏, 又称 Web游戏, 是利用浏览器在线玩的游戏, 其不用下载庞大 客户端, 也不存在机器配置不够的问题且关闭或者切换极其方便, 用户可以随 时随地在任何一台能上网的电脑上玩游戏, 因此得到广泛应用。 Web games, also known as web games, are games that are played online using a browser. They do not need to download huge clients, and there is no problem of insufficient machine configuration. It is extremely convenient to turn off or switch. Users can access the Internet anytime, anywhere. Playing games on a computer is therefore widely used.
目前, 网页游戏一般釆用 SNS ( Social Network Site, 社交网站)社区的载 体形式, 一方面, SNS社区中为用户提供了关系链(好友, 或者好友的好友)。 初步的关系链是用户在网页游戏中初始阶段非常好的切入点, 使得用户对于游 戏的粘性进一步增强; 另一方面, SNS 社区为用户提供了粘性, 包括访问频率 和时长两方面, 用户会在一定时间内有规律地访问 SNS, 这就为一些以访问时 间和访问频率为游戏价值衡量的游戏提供了极好的条件。 Currently, web games generally use the SNS (Social Network Site) community to provide a relationship chain (friends, or friends of friends) in the SNS community. The initial relationship chain is a very good entry point for the user in the initial stage of the web game, which makes the user's stickiness to the game further enhanced. On the other hand, the SNS community provides users with a sticky, including access frequency and duration, the user will be Regular access to the SNS for a certain period of time provides excellent conditions for games that measure game value by access time and frequency of visits.
发明人在实现本发明时经过分析和研究后, 发现现有技术至少存在以下的 缺点和不足: After analyzing and researching the invention, the inventors found that the prior art has at least the following shortcomings and deficiencies:
首先, 以 SNS社区为载体的网页游戏, 实时通知的能力较差; 在一般情况 下, 用户只有在 SNS社区的登陆状态下才能获取到自己希望得到的游戏信息, 而不能实时接收到该类消息。 First of all, web games with SNS community as the carrier have poor real-time notification capabilities. Under normal circumstances, users can only obtain the game information they want in the login status of the SNS community, but cannot receive such messages in real time. .
其次, 以 SNS社区为载体的网页游戏, 无法长时间在线; 一般用户每天登 陆 SNS社区的总时长不会很久,在用户没有登陆社区时,也就无法玩网页游戏。 发明内容 Secondly, web games based on the SNS community cannot be online for a long time. The average time that a typical user can log in to the SNS community is not long. When the user does not log in to the community, they cannot play web games. Summary of the invention
为了解决现有 SNS为载体的网页游戏不能实时通知以及无法长期在线的问 题, 本发明实施例提供了一种网页游戏的实现方法、 系统及装置, 所述技术方 案如下:
本发明实施例提供了一种网页游戏的实现方法, 所述方法包括: 验证用户通过用户的即时通信 IM客户端登陆网页游戏; In order to solve the problem that the existing SNS-based web game cannot be notified in real time and cannot be long-term online, the embodiment of the invention provides a method, a system and a device for implementing a web game, and the technical solution is as follows: An embodiment of the present invention provides a method for implementing a webpage game, where the method includes: verifying that a user logs in to a webpage game through an instant messaging IM client of the user;
获取所述用户的网页游戏信息, 并将所述用户的网页游戏信息发送给所述 用户的联系人的 IM客户端, 使所述用户的联系人的 IM客户端生成包含所述网 页游戏信息的 IM消息, 并使所述用户的联系人的 IM客户端将所述 IM消息发 送给所述用户的联系人。 Obtaining the webpage game information of the user, and sending the webpage game information of the user to the IM client of the user's contact, so that the IM client of the user's contact generates the webpage game information An IM message, and causing the IM client of the user's contact to send the IM message to the user's contact.
所述方法还包括: The method further includes:
将所述网页游戏信息通过网页界面发送给所述用户, 或者, Sending the webpage game information to the user through a webpage interface, or
将所述网页游戏信息发送给所述用户的 IM客户端, 使所述用户的 IM客户 端生成包含所述网页游戏信息的 IM消息,并使所述用户的 IM客户端将所述 IM 消息发送给所述用户。 Sending the webpage game information to the IM client of the user, causing the IM client of the user to generate an IM message including the webpage game information, and causing the IM client of the user to send the IM message To the user.
所述网页游戏信息包括用户在网页游戏中的游戏操作时; The webpage game information includes a user's game operation in a webpage game;
获取所述用户的网页游戏信息之后, 将所述网页游戏信息发送给所述用户 的联系人的 IM客户端之前, 所述方法还包括: After the webpage information of the user is obtained, the webpage information is sent to the IM client of the user's contact, and the method further includes:
对所述游戏操作进行逻辑处理, 得到游戏结果; Performing logical processing on the game operation to obtain a game result;
相应的, 将所述网页游戏信息通过网页界面发送给所述用户, 包括: 将所述游戏结果通过网页界面发送给所述用户; Correspondingly, sending the webpage game information to the user through a webpage interface, comprising: sending the game result to the user through a webpage interface;
相应的, 将所述网页游戏信息发送给所述用户的 IM客户端,使所述用户的 IM客户端生成包含所述网页游戏信息的 IM消息 ,并使所述用户的 IM客户端将 所述 IM消息发送给所述用户, 包括: Correspondingly, sending the webpage game information to the IM client of the user, causing the IM client of the user to generate an IM message including the webpage game information, and causing the user's IM client to An IM message is sent to the user, including:
将所述游戏结果发送给所述用户的 IM客户端, 使所述用户的 IM客户端生 成包含所述游戏结果的 IM消息, 并使所述用户的 IM客户端将所述 IM消息发 送给所述用户。 Sending the game result to the user's IM client, causing the user's IM client to generate an IM message containing the game result, and causing the user's IM client to send the IM message to the User.
所述网页游戏信息包括用户在网页游戏中的游戏操作以及所述游戏操作产 生影响的联系人时; The web game information includes a user's game operation in a web game and when the game operation generates an affected contact;
获取所述用户的网页游戏信息之后, 将所述网页游戏信息发送给所述用户 的联系人的 IM客户端之前, 所述方法还包括: After the webpage information of the user is obtained, the webpage information is sent to the IM client of the user's contact, and the method further includes:
对所述游戏操作进行逻辑处理, 得到游戏结果; Performing logical processing on the game operation to obtain a game result;
相应的, 将所述网页游戏信息发送给所述用户的联系人的 IM客户端, 使所 述用户的联系人的 IM客户端生成包含所述网页游戏信息的 IM消息, 并使所述
用户的联系人的 IM客户端将所述 IM消息发送给所述用户的联系人包括: 将所述游戏结果发送给所述游戏操作产生影响的联系人的 IM客户端,使所 述游戏操作产生影响的联系人的 IM客户端生成包含所述游戏结果的 IM消息, 并使所述游戏操作产生影响的联系人的 IM客户端将生成的 IM消息发送给所述 游戏操作产生影响的联系人。 Correspondingly, sending the webpage game information to an IM client of the user's contact, causing the IM client of the user's contact to generate an IM message including the webpage game information, and causing the Sending, by the IM client of the user's contact, the IM message to the user's contact includes: transmitting the game result to an IM client of the game operation-influencing contact, causing the game operation to be generated The IM client of the affected contact generates an IM message containing the game result, and causes the IM client of the contact whose influence is generated by the game operation to transmit the generated IM message to the contact whose influence is generated by the game operation.
所述方法还包括: The method further includes:
将所述游戏结果通过网页界面发送给所述用户; Sending the game result to the user through a webpage interface;
或者, 将所述游戏结果发送给所述用户的 IM客户端, 使所述用户的 IM客 户端生成包含所述游戏结果的 IM消息, 并使所述用户的 IM客户端将所述 IM 消息发送给所述用户。 Or sending the game result to the IM client of the user, causing the IM client of the user to generate an IM message including the game result, and causing the IM client of the user to send the IM message To the user.
所述用户的联系人, 或者所述游戏操作产生影响的联系人如果在网页游戏 状态, 则通过网页界面将所述网页游戏信息发送给所述用户的联系人; 或者通 过网页界面所述游戏结果发送给所述游戏操作产生影响的联系人。 The contact of the user, or the contact affected by the game operation, if in a web game state, sending the webpage game information to the contact of the user through a webpage interface; or the game result through a webpage interface A contact sent to the game operation that has an impact.
所述 IM消息, 具体为: The IM message is specifically:
IM系统消息; 或者, IM提示通知消息; 或者 IM离线消息。 IM system message; or, IM prompt notification message; or IM offline message.
所述方法还包括: The method further includes:
在所述用户的 IM客户端显示所述用户的网页游戏信息或者游戏结果, 以便 所述用户以及所述用户的联系人通过 IM客户端实时的获取用户当前的网页游 戏信息。 The user's web game information or game result is displayed on the user's IM client, so that the user and the user's contact obtain the user's current webpage game information in real time through the IM client.
所述方法还包括: The method further includes:
将所述用户的网页游戏信息或者游戏结果发送给所述用户的 IM标志位服 务器。 Sending the user's web game information or game results to the user's IM flag server.
本发明实施例提供了一种网页游戏的实现系统, 所述系统包括: 用户的即 时通信 IM客户端、 服务器和用户的联系人的 IM客户端, 其中, An embodiment of the present invention provides a system for implementing a webpage game, where the system includes: an IM client that instantly communicates with the IM client, the server, and the user's contact,
所述用户的 IM客户端, 用于用户登陆 IM客户端后, 通过 IM客户端登陆 网页游戏; The IM client of the user is used to log in to the web game through the IM client after the user logs in to the IM client;
所述服务器, 用于通过所述用户的 IM客户端登陆网页游戏后, 获取用户的 网页游戏信息,并将所述用户的网页游戏信息发送给所述用户的联系人的 IM客 户端; The server is configured to obtain webpage game information of the user after logging in to the webpage game by the user's IM client, and send the webpage game information of the user to the IM client of the contact of the user;
所述用户的联系人的 IM客户端, 用于接收所述服务器发送的网页游戏信
息, 生成包含所述网页游戏信息的 IM消息, 并将生成的 IM消息发送给用户的 联系人。 An IM client of the user's contact, configured to receive a webpage game letter sent by the server And generating an IM message containing the webpage game information, and transmitting the generated IM message to the user's contact.
所述服务器还用于, 将所述网页游戏信息通过网页界面发送给所述用户, 或者, The server is further configured to send the webpage game information to the user through a webpage interface, or
将所述网页游戏信息发送给所述用户的 IM客户端; Sending the webpage game information to the IM client of the user;
相应的, 所述用户的 IM客户端, 还用于生成包含所述网页游戏信息的 IM 消息, 并将所述 IM消息发送给所述用户。 Correspondingly, the IM client of the user is further configured to generate an IM message including the webpage game information, and send the IM message to the user.
所述用户的网页游戏信息包括用户在网页游戏中的游戏操作时; The web game information of the user includes a user's game operation in a web game;
所述服务器, 还用于对所述游戏操作进行逻辑处理, 得到游戏结果, 将所 述游戏结果通过网页界面发送给用户; 或者, 将所述游戏结果发送给所述用户 的 IM客户端; The server is further configured to perform logic processing on the game operation to obtain a game result, and send the game result to the user through a webpage interface; or send the game result to the IM client of the user;
相应的,所述用户的 IM客户端,还用于生成包含所述游戏结果的 IM消息 , 并将生成的所述 IM消息发送给所述用户。 Correspondingly, the IM client of the user is further configured to generate an IM message including the game result, and send the generated IM message to the user.
所述用户的网页游戏信息包括用户在网页游戏中的游戏操作以及所述游戏 操作产生影响的联系人时; The web game information of the user includes a game operation of the user in the web game and a contact affected by the game operation;
所述服务器, 还用于对所述游戏操作进行逻辑处理, 得到游戏结果, 并将 得到的游戏结果发送给所述用户的联系人的 IM客户端; The server is further configured to perform logic processing on the game operation, obtain a game result, and send the obtained game result to an IM client of the user's contact;
相应的,所述用户的联系人的 IM客户端,用于生成包含所述游戏结果的 IM 消息, 并将生成的 IM消息发送给所述游戏操作产生影响的联系人。 或者, 所述服务器还用于将所述游戏结果发送给所述用户的 IM客户端; 相应的, 所述用户的 IM客户端, 用于生成包含所述游戏结果的 IM消息, 并将所述 IM消息发送给所述用户。 Correspondingly, the IM client of the user's contact is configured to generate an IM message containing the game result, and send the generated IM message to the contact whose influence is generated by the game operation. Alternatively, the server is further configured to send the game result to the IM client of the user; correspondingly, the IM client of the user is configured to generate an IM message including the game result, and An IM message is sent to the user.
如果所述用户的联系人或者所述游戏操作产生影响的联系人在网页游戏状 态, 所述服务器通过网页界面直接向所述用户的联系人返回所述网页游戏信息; 或者所述服务器通过网页界面直接向所述游戏操作产生影响的联系人返回所述 游戏结果。 If the contact of the user or the contact affected by the game operation is in a web game state, the server directly returns the webpage game information to the contact of the user through a webpage interface; or the server passes the webpage interface A contact that directly affects the game operation returns the game result.
所述用户的 IM客户端和用户的联系人的 IM客户端, 还用于显示所述用户 的网页游戏信息或者所述游戏结果, 以便所述用户以及所述用户的联系人通过 对应的 IM客户端实时的获取用户当前的网页游戏信息或游戏结果。
所述服务器还用于将所述用户的网页游戏信息或者游戏结果发送给所述用 户的 IM标志位服务器。 The IM client of the user and the IM client of the user's contact are also used to display the web game information of the user or the game result, so that the user and the user's contact pass the corresponding IM client. The real-time acquisition of the user's current web game information or game results. The server is further configured to send the web game information or the game result of the user to the IM flag server of the user.
本发明实施例提供了一种网页游戏的服务器装置, 所述装置包括: 登陆模块, 用于验证用户通过用户的即时通信 IM客户端登陆网页游戏; 获取模块, 用于获取所述用户的网页游戏信息, 并将所述用户的网页游戏 信息发送给所述用户的联系人的 IM客户端, 以便使所述用户的联系人的 IM客 户端生成包含所述网页游戏信息的 IM消息。 An embodiment of the present invention provides a server device for a webpage game, the device includes: a login module, configured to verify that a user logs in to a webpage game through an instant messaging IM client of the user; and an acquiring module, configured to acquire a webpage game of the user And transmitting the user's web game information to the IM client of the user's contact, so that the IM client of the user's contact generates an IM message containing the web game information.
所述获取模块, 包括: The obtaining module includes:
获取单元, 用于获取用户的网页游戏信息, 用户的网页游戏信息包括用户 在网页游戏中的游戏操作以及游戏操作产生影响的联系人; An obtaining unit, configured to acquire webpage game information of the user, where the webpage game information of the user includes a game operation of the user in the webpage game and a contact that affects the game operation;
发送单元, 用于对所述获取单元获取的游戏操作进行逻辑处理, 得到游戏 结果, 将所述游戏结果发送给所述 IM客户端, 以便使所述 IM客户端生成包含 所述游戏结果的 IM消息, 并将生成的 IM消息发送给用户和游戏操作产生影响 的联系人。 a sending unit, configured to perform logic processing on the game operation acquired by the acquiring unit, obtain a game result, and send the game result to the IM client, so that the IM client generates an IM including the game result The message, and the generated IM message is sent to the user and the contact affected by the game operation.
所述发送单元, 还用于将所述游戏结果发送给所述用户的 IM客户端, 以便 使所述用户的 IM客户端生成包含所述游戏结果的 IM消息, 并将生成的 IM消 息发送给所述用户。 The sending unit is further configured to send the game result to the IM client of the user, so that the IM client of the user generates an IM message including the game result, and sends the generated IM message to The user.
所述装置还包括: The device also includes:
返回模块, 用于通过网页界面直接向所述用户返回所述游戏结果; 或者, 当所述游戏操作产生影响的联系人在网页游戏状态, 通过网页界面直接向游戏 操作产生影响的联系人返回所述游戏结果。 a returning module, configured to directly return the game result to the user through a webpage interface; or, when the contact of the game operation affects the webpage game state, returning to the contact directly affected by the game operation through the webpage interface The game results.
本发明实施例提供的技术方案的有益效果是: The beneficial effects of the technical solutions provided by the embodiments of the present invention are:
通过本发明实施例提供的方案, 通过以 IM为网页游戏的实现载体, 解决了 现有 SNS为载体的网页游戏不能实时通知以及无法长期在线的问题, 同时为网 页游戏提供了更紧密的关系链和更多的展现方式, 提高了用户使用体验。 附图说明 Through the solution provided by the embodiment of the present invention, the problem that the existing SNS-based web game cannot be notified in real time and cannot be long-term online is solved by using IM as the implementation carrier of the web game, and a tighter relationship chain is provided for the web game. And more ways to display, improve the user experience. DRAWINGS
图 1是本发明实施例 1提供的方法流程示意图; 1 is a schematic flow chart of a method provided by Embodiment 1 of the present invention;
图 2是本发明实施例 2提供的通过 IM的系统消息将游戏状态传递给用户的 示意图;
图 3是本发明实施例 2提供的方法流程示意图; 2 is a schematic diagram of a game message transmitted by an IM system message to a user according to Embodiment 2 of the present invention; 3 is a schematic flow chart of a method according to Embodiment 2 of the present invention;
图 4是本发明实施例 2提供的用户登陆网页游戏的示意图; 4 is a schematic diagram of a user login webpage game provided by Embodiment 2 of the present invention;
图 5是本发明实施例 2提供的用户将游戏操作返回给其他用户的示意图; 图 6是本发明实施例 3提供的系统结构示意图; 5 is a schematic diagram of a system for providing a user to return a game operation to another user according to Embodiment 2 of the present invention; FIG. 6 is a schematic structural diagram of a system according to Embodiment 3 of the present invention;
图 7是本发明实施例 4提供的装置结构示意图。 具体实施方式 Figure 7 is a block diagram showing the structure of a device according to Embodiment 4 of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合附图对 本发明实施方式作进一步地详细描述。 The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
实施例 1 Example 1
本发明实施例提供了一种网页游戏的实现方法, 参见图 1 , 该方法包括: 101 : 险证用户通过即时通信 IM(Instant Messaging, 即时通信)客户端登陆 网页游戏; An embodiment of the present invention provides a method for implementing a webpage game. Referring to FIG. 1, the method includes: 101: a security card user logs in to a webpage game through an instant messaging IM (Instant Messaging) client;
具体的, 用户登陆 IM客户端, 然后服务器验证用户通过 IM客户端登陆网 页游戏; Specifically, the user logs in to the IM client, and then the server verifies that the user logs in to the web game through the IM client;
随着通信技术的发展, 目前 IM技术已经成为目前互联网上一个主流应用的 方向, 它使人与人之间的交流更加容易、 快捷。 With the development of communication technology, IM technology has become the mainstream of the current Internet application, which makes the communication between people easier and faster.
102: 获取用户的网页游戏信息, 并将用户的网页游戏信息发送给用户的联 系人的 IM客户端,使该用户的联系人的 IM客户端生成包含网页游戏信息的 IM 消息, 并使该用户的联系人的 IM客户端将该 IM消息发送给用户的联系人。 102: Acquire a webpage game information of the user, and send the webpage game information of the user to the IM client of the user's contact, so that the IM client of the user's contact generates an IM message including the webpage game information, and makes the user The IM client of the contact sends the IM message to the user's contact.
其中, 该方法还包括: The method further includes:
将上述获取的网页游戏信息通过网页界面发送给上述用户, 或者, 将上述获取的网页游戏信息发送给上述用户的 IM客户端, 使该用户的 IM 客户端生成包含该网页游戏信息的 IM消息, 并使该用户的 IM客户端将生成的 IM消息发送给该用户。 Sending the obtained web game information to the user through the webpage interface, or sending the obtained webpage game information to the IM client of the user, and causing the IM client of the user to generate an IM message including the webpage game information. And the IM client of the user sends the generated IM message to the user.
需要说明的是, 如果该用户的联系人在网页游戏状态, 则可以通过网页界 面将网页游戏信息发送给该用户的联系人。 It should be noted that if the user's contact is in the web game state, the web game information may be sent to the user's contact through the web interface.
其中, 当网页游戏信息包括用户在网页游戏中的游戏操作时, 获取用户的 网页游戏信息之后, 将网页游戏信息发送给用户的联系人的 IM客户端之前, 该 方法还包括:
对游戏操作进行逻辑处理, 得到游戏结果; The method further includes: before the webpage game information includes the user's game operation in the webpage game, after the webpage game information of the user is acquired, and the webpage game information is sent to the IM client of the user's contact, the method further includes: Logically process the game operation to get the game result;
相应的, 将网页游戏信息通过网页界面发送给用户, 包括: Correspondingly, the webpage game information is sent to the user through the webpage interface, including:
将游戏结果通过网页界面发送给所述用户; Sending game results to the user through a web interface;
相应的, 将网页游戏信息发送给用户的 IM客户端, 使用户的 IM客户端生 成包含网页游戏信息的 IM消息, 并使用户的 IM客户端将生成的 IM消息发送 给用户, 包括: Correspondingly, the web game information is sent to the user's IM client, and the user's IM client generates an IM message including the webpage game information, and the user's IM client sends the generated IM message to the user, including:
将游戏结果发送给用户的 IM客户端, 使用户的 IM客户端生成包含游戏结 果的 IM消息, 并使用户的 IM客户端将生成的 IM消息发送给用户。 The game result is sent to the user's IM client, the user's IM client generates an IM message containing the game result, and the user's IM client sends the generated IM message to the user.
其中, 当用户的网页游戏信息包括用户在网页游戏中的游戏操作以及游戏 操作产生影响的联系人时; Wherein, when the user's web game information includes a user's game operation in the web game and a contact affected by the game operation;
获取用户的网页游戏信息之后, 将该网页游戏信息发送给用户的联系人的 IM客户端之前, 还包括: After obtaining the webpage game information of the user, before sending the webpage game information to the IM client of the user's contact, the method further includes:
对游戏操作进行逻辑处理, 得到游戏操作处理后的游戏结果; Performing logic processing on the game operation to obtain the game result after the game operation processing;
相应的, 将网页游戏信息发送给用户的联系人的 IM客户端,使用户的联系 人的 IM客户端生成包含网页游戏信息的 IM消息, 并使用户的联系人的 IM客 户端将 IM消息发送给用户的联系人包括: Correspondingly, the web game information is sent to the IM client of the user's contact, so that the IM client of the user's contact generates an IM message containing the webpage game information, and the IM client of the user's contact sends the IM message. The contacts to the user include:
将该游戏结果发送给游戏操作产生影响的联系人的 IM客户端,使该联系人 的 IM客户端生成包含游戏结果的 IM消息, 并使该联系人的 IM客户端将生成 的 IM消息发送给游戏操作产生影响的联系人。 Sending the game result to the IM client of the contact affected by the game operation, causing the IM client of the contact to generate an IM message containing the game result, and causing the IM client of the contact to send the generated IM message to The game operation affects the contacts.
其中, IM消息, 具体为: Wherein, the IM message is specifically:
IM系统消息; 或者, IM提示通知消息; 或者 IM离线消息。 IM system message; or, IM prompt notification message; or IM offline message.
其中, 方法还包括: Among them, the method also includes:
在用户的 IM客户端显示用户的网页游戏信息或者游戏结果, 以便用户以及 用户的联系人通过 IM客户端实时的获取用户当前的网页游戏信息或者游戏结 果。 The user's web game information or game result is displayed on the user's IM client, so that the user and the user's contact can obtain the user's current web game information or game results in real time through the IM client.
本发明实施例中, 由于用户基本每天都登陆 IM客户端, 所以当自己的网页 游戏信息有所变化时, 会及时通过 IM客户端来获取到, 而不像现有技术一样, 用户只有在 SNS社区的登陆状态下才能获取到自己希望得到的游戏信息, 例如 用户 A的菜被偷了, 现有技术中该用户 A不能及时获取到菜被偷的信息, 而本 发明实施例中只要用户 A登陆着 IM客户端, 即使用户 A的菜被偷时, 该用户
A没有玩该网页游戏 ,但该用户 A仍然可以立即通过 IM客户端来获取到这一信 息。 In the embodiment of the present invention, since the user basically logs in to the IM client every day, when the information of the webpage game changes, the IM client obtains it in time, and unlike the prior art, the user only has the SNS. In the login state of the community, the game information that is desired by the user can be obtained. For example, the user A's dish is stolen. In the prior art, the user A cannot obtain the information that the dish is stolen in time. Log in to the IM client, even if user A’s dish is stolen, the user A did not play the web game, but the user A can still get this information through the IM client immediately.
本发明实施例提供的方法, 通过以 IM为网页游戏的实现载体, 解决了现有 SNS 为载体的网页游戏不能实时通知以及无法长期在线的问题, 同时为网页游 戏提供了更紧密的关系链和更多的展现方式, 提高了用户使用体验。 实施例 2 The method provided by the embodiment of the present invention solves the problem that the existing SNS-based web game cannot be notified in real time and cannot be long-term online by using IM as an implementation carrier of the web game, and provides a closer relationship chain for the web game. More presentations have improved the user experience. Example 2
为了解决目前以 SNS社区为载体的网页游戏无法实时通知用户游戏信息以 及无法长期在线的问题, 本发明实施例提供了一种网页游戏的实现方法, 其中, 本发明实施例为网页游戏提供了一种新的实现载体: IM, 下面对 IM以及以 IM 为载体的网页游戏进行简单的描述: In order to solve the problem that the web game with the SNS community as the carrier cannot notify the user of the game information in real time and the long-term online is not available, the embodiment of the present invention provides a method for implementing a web game, wherein the embodiment of the present invention provides a web game. A new implementation carrier: IM, the following is a brief description of IM and IM-based web games:
IM是一种可以让用户在网络上建立某种私人聊天室的实时通讯服务, 提供 了状态信息的特性如显示联络人名单, 联络人是否在线及能否与联络人交谈等。 IM is a real-time communication service that allows users to set up a private chat room on the network. It provides status information such as a list of contacts, whether the contact is online, and whether they can talk to the contact.
IM具有极强粘性和非常稳固的关系链, 用户每天开电脑第一件事往往就是登陆 IM客户端, 即使不聊天也会挂机, 这为网页游戏提供了非常好的条件, IM 涵 盖了 SNS社区所能为网页游戏提供的两点生存环境:好友关系链和艮好的粘性。 其中, 就关系链而言, IM的关系链要比 SNS社区还要再紧密; 而粘性上, 相对 而言用户每天登陆 IM客户端的时间要比 SNS网站要长。 IM has a very sticky and very stable relationship chain. The first thing users do to open a computer every day is to log in to the IM client. Even if they don't chat, they will hang up. This provides excellent conditions for web games. IM covers the SNS community. The two-point living environment that can be provided for web games: a friend relationship chain and a good sticky. Among them, in terms of relationship chain, IM's relationship chain is more closely related than SNS community; and stickyly, users spend more time on IM client than SNS website every day.
而 IM除了具备好友关系链和极强的粘性以外, 还解决了网页游戏在 SNS 社区无法实时通知和不能长时间在线的缺陷: In addition to having a friend relationship chain and strong stickiness, IM also solves the shortcomings of web games that cannot be notified in real time in the SNS community and cannot be online for a long time:
( 1 ) 实时通知: IM 的系统消息可以将自己或者好友的游戏状态传递给用 户; (1) Real-time notification: IM's system message can pass the game status of itself or a friend to the user;
参见图 2, 用户 A在网页游戏中的信息会即时上报到服务器, 而服务器可 以即时把用户 A的游戏信息通知给用户 A的好友用户 B, 这样用户 B可以通过 IM系统消息及时的获取到好友用户 A的游戏信息。 例如: 在朋友买卖游戏中, 当用户 B被用户 A买了, 用户 B通过 IM系统消息及时获知, 增加网页游戏的 实时性。 Referring to FIG. 2, the information of the user A in the web game is immediately reported to the server, and the server can immediately notify the user A of the user A of the game information of the user A, so that the user B can obtain the friend in time through the IM system message. User A's game information. For example: In a friend buying and selling game, when user B is bought by user A, user B knows in time through the IM system message, increasing the real-time nature of the web game.
( 2 )长期在线: IM与 SNS社区最大的区别是 IM的粘性极强, 能让用户 长时间挂机, 尤其在中国, 用户都养成了开电脑先开 IM的习惯, 这使得网页游 戏可以生存在一个更加活跃的环境里,并且网页游戏也为 IM的挂机提供了更多
的理由。 (2) Long-term online: The biggest difference between IM and SNS community is that IM is very sticky and allows users to hang up for a long time. Especially in China, users have developed the habit of opening a computer to open IM first, which makes web games can survive. In a more active environment, and web games also provide more for IM's hang up Reasons.
其中, 以 IM为载体的网页游戏除了具有实时通知和长时间在线的特点外, 还会有如下优势: Among them, the IM-based web game has the following advantages in addition to real-time notification and long-term online features:
一方面, IM中更加紧密的好友关系链, 由于 IM中的好友都是经常在线联 系的, 其好友关系链一般会比 SNS网站的好友关系链更为紧密, 所以对关系链 依赖较高的网页游戏来说更有价值。 On the one hand, the closer friend relationship chain in IM, because the friends in IM are often online, the friend relationship chain is generally closer than the SNS website's friend relationship chain, so the relationship chain depends on the higher page. The game is more valuable.
另一方面, IM中为网页游戏信息提供了多种展现方式。 目前 IM中用来展 现网页游戏信息的地方很多,如用户状态,可以显示"用户 A目前是用户 B的奴 隶,,, 而在用户的迷你资料页中也可以显示用户其他游戏信息, 比如用户在网页 游戏中所种的蔬菜类别或者拥有的车的信息, 而用户自己可以决定是否显示该 类信息。 其中, 也可以在 IM主面板的 Tab (按键)栏展示网页游戏, 相关网页游 戏的具体内容还是以网页形式显示。 On the other hand, IM provides a variety of presentation methods for web game information. At present, there are many places in IM for displaying web game information, such as user status, it can be displayed that "user A is currently a slave of user B, and other user information can be displayed in the user's mini data page, such as the user. The information of the vegetable category or the car owned by the web game, and the user can decide whether to display the information. In addition, the web game can also be displayed in the Tab button of the IM main panel, and the specific content of the related web game. Still displayed as a web page.
201 : 用户登陆 IM客户端, 服务器验证用户通过 IM客户端登陆网页游戏; 参见图 4, 当用户 A在 IM的主面板 Tab点击网页游戏按钮后, 网页游戏首 先从 IM客户端获取 IM身份签名, 根据获取的 IM身份签名到服务器中验证, 当服务器通过验证后, 服务器直接向网页游戏返回用户 A相关的身份信息和游 戏信息, 用户登陆完成, 即进入网页游戏。 201: The user logs in to the IM client, and the server verifies that the user logs in to the web game through the IM client. Referring to FIG. 4, when the user A clicks the web game button on the main panel tab of the IM, the web game first obtains the IM identity signature from the IM client. According to the obtained IM identity signature to the server for verification, when the server passes the verification, the server directly returns the user A related identity information and game information to the web game, and the user login is completed, that is, the web game is entered.
其中, 网页游戏从 IM客户端获取的身份签名一般为用户的 IM账号, 网页 游戏根据获取的 IM账号在服务器中验证身份, 并通过 IM账号登陆网页游戏, 这样用户将 IM账号作为用户在网页游戏中的游戏账号,即用户只需要一个账号 就可以既实现 IM的功能, 又可以在网页游戏中通过该 IM账号在线玩网页游戏 而无须另外注册游戏账号, 从而提高了用户使用体验且更加容易管理。 The identity signature obtained by the web game from the IM client is generally the user's IM account, the web game verifies the identity in the server according to the obtained IM account, and logs the web game through the IM account, so that the user uses the IM account as the user in the web game. In the game account, the user only needs one account to realize the function of IM, and can play the web game online through the IM account in the web game without separately registering the game account, thereby improving the user experience and being easier to manage. .
其中, 用户的 IM身份签名也可以为 IM账号以及与该 IM账号对应的身份 信息, 该身份信息可以为用户的游戏账号, 是用户在网页游戏中所使用的唯一 标示, 与 IM账号为——对应的关系。 例如: 用户 A从 IM客户端获取 IM账号 为 123456以及该 IM账号 123456对应的游戏账号为 789, 则用户 A将 IM账号 123456以及对应的游戏账号 789到服务器中验证, 如果验证成功, 则网页游戏 返回用户 A对应的身份信息和游戏信息, 进入网页游戏界面, 用户登陆成功。 其中, 网页游戏返回用户 A的身份信息可以为用户 A的游戏账号, 游戏信息可
以为当前用户 A在网页游戏中相关信息, 例如车位信息中, 游戏信息可以为用 户 A当前所拥有的车的数量、 各辆车的型号价格以及所停放的车位和停放时间 等。 The user's IM identity signature may also be an IM account and identity information corresponding to the IM account. The identity information may be a user's game account, which is a unique identifier used by the user in the web game, and the IM account is - Corresponding relationship. For example, if user A obtains an IM account of 123456 from the IM client and a game account corresponding to the IM account 123456 is 789, the user A authenticates the IM account 123456 and the corresponding game account 789 to the server, and if the verification is successful, the web game is Return the identity information and game information corresponding to user A, enter the web game interface, and the user logs in successfully. Wherein, the identity information returned by the web game user A may be the game account of user A, and the game information may be In the current information of the user A in the web game, for example, the parking space information, the game information may be the number of vehicles currently owned by the user A, the model price of each vehicle, and the parked parking space and parking time.
202a: 服务器获取用户在网页游戏中的网页游戏信息, 该网页游戏信息包 括游戏操作时, 服务器对用户的游戏操作进行逻辑处理, 并将处理之后的游戏 结果通过网页直接返回给用户。 202a: The server acquires webpage game information of the user in the webpage game. When the webpage game information includes a game operation, the server logically processes the user's game operation, and returns the processed game result directly to the user through the webpage.
其中, 参见图 4, 用户 A通过网页游戏界面在线对网页游戏进行操作, 并 将所作的游戏操作直接发送给服务器, 服务器对用户的操作进行逻辑处理, 并 将用户 A的操作后的游戏结果直接返回给用户。 例如: 在车位游戏中, 用户 A 购买 1辆新车 X, 则到车市中选中新车 X以及数量 1进行购买操作, 服务器接 收到用户 A的该操作后, 首先才艮据用户 A的当前游戏中的虚拟货币情况, 判断 是否能够买 1辆新车 X, 如果是, 则购买成功, 将用户 A的货币进行扣除 1辆 新车 X的价格, 并将 1辆新车 X在用户 A中显示; 否则, 返回购买失败消息, 并提示用户当前的货币不足, 无法购买 1辆新车 X。 4, user A operates the web game online through the web game interface, and directly sends the game operation to the server, and the server logically processes the user's operation, and directly outputs the game result of the user A's operation. Return to the user. For example: In the parking game, user A purchases a new car X, then selects the new car X and the quantity 1 to perform the purchase operation in the car market. After receiving the operation of the user A, the server firstly records the user A's current game. In the case of virtual currency, judge whether it is possible to buy a new car X. If yes, the purchase is successful, deduct the price of 1 new car X from the currency of user A, and display 1 new car X in user A; otherwise, return to purchase The failure message, and prompting the user that the current currency is insufficient, cannot purchase a new car X.
需要说明的是, 服务器也可以将游戏结果发送给该用户的 IM客户端, 使该 用户的 IM客户端生成包含游戏结果的 IM消息, 并使该用户的 IM客户端将生 成的 IM消息发送给该用户。 It should be noted that the server may also send the game result to the user's IM client, so that the user's IM client generates an IM message containing the game result, and causes the user's IM client to send the generated IM message to the IM client. The user.
202b: 服务器获取的网页游戏信息包括游戏操作和游戏操作产生影响的联 系人时, 服务器对用户的游戏操作进行逻辑处理, 处理之后得到游戏结果; 当该游戏操作产生影响的联系人未在游戏状态时, 服务器将游戏结果发送 给游戏操作产生影响的联系人的 IM客户端,使该游戏操作产生影响的联系人的 IM客户端生成包含游戏结果的 IM消息, 并使该游戏操作产生影响的联系人的 IM客户端将生成的 IM消息发送给游戏操作产生影响的联系人; 202b: When the web game information acquired by the server includes a contact that is affected by the game operation and the game operation, the server logically processes the user's game operation, and the game result is obtained after the processing; when the game operation affects the contact is not in the game state When the server sends the game result to the IM client of the contact affected by the game operation, the IM client of the contact that affects the game operation generates an IM message containing the game result, and makes the game operation affect the contact. The human IM client sends the generated IM message to the contact that affects the game operation;
当该游戏操作产生影响的联系人在游戏状态时, 服务器通过网页界面将所 述游戏结果发送给游戏操作产生影响的联系人。 When the contact of the game operation affects the game state, the server transmits the game result to the contact affected by the game operation through the web interface.
参见图 5, 当用户 A进行的游戏操作会对未在游戏状态的用户 B产生影响 时, 服务器处理完成游戏逻辑后, 直接从网页界面将处理后的游戏结果返回给 用户 A, 而通过 IM系统消息的方式将游戏结果返回给用户 B, 因为此时用户 B 未处在打开游戏状态, 所以通过 IM的方式来即时获取游戏信息。 其中, 用户 B 是否需要获取用户 A的游戏操作后的结果,取决于用户 B的设置, 用户 B可以
根据需要灵活设置是否通过 IM系统消息接收用户 A的操作结果。 Referring to FIG. 5, when the game operation performed by the user A affects the user B that is not in the game state, after the server processes the game logic, the processed game result is directly returned from the webpage interface to the user A, and the IM system is passed. The way of the message returns the game result to the user B, because the user B is not in the open game state at this time, so the game information is instantly acquired by the IM method. Among them, whether user B needs to obtain the result of user A's game operation, depending on the setting of user B, user B can According to the need, it is flexible to set whether to receive the operation result of user A through the IM system message.
另外, 如果用户 B此时处在游戏状态时, 则直接通过网页界面实时将用户 In addition, if user B is in the game state at this time, the user is directly put through the web interface in real time.
A的游戏操作后的结果返回给用户 B; 如果用户 B 此时既不在游戏状态也没有 登陆 IM客户端, 则可以通过 IM的离线信息向用户 B通知用户 A的游戏操作 后的结果。 其中, 用户 B是否需要获取用户 A的游戏操作后的结果, 取决于用 户 B的设置, 用户 B可以根据需要灵活设置在不登陆 IM客户端时是否需要通 过离线信息接收用户 A的操作结果。 The result of the game operation of A is returned to the user B; if the user B is neither in the game state nor the IM client, the user B can be notified of the result of the game operation of the user A through the offline information of the IM. Whether the user B needs to obtain the result of the game operation of the user A depends on the setting of the user B, and the user B can flexibly set whether the operation result of the user A needs to be received through the offline information when not logging in to the IM client.
例如: 在朋友买卖游戏中, 如果用户 A在网页游戏中将用户 B买为奴隶, 则服务器处理完成游戏逻辑后, 将用户 B在用户 A的奴隶中显示, 并且将该处 理结果发送给 IM客户端, IM客户端通过 IM 系统信息通知用户 B,这样用户 B 虽然不在游戏状态, 但是可以通过 IM系统消息及时的获取到该消息, 获知当前 用户 A已经将自己买为奴隶。 For example: In a friend buying and selling game, if user A buys user B as a slave in a web game, after the server processes the completion of the game logic, the user B is displayed in the slave of user A, and the processing result is sent to the IM client. On the other hand, the IM client notifies the user B through the IM system information, so that the user B is not in the game state, but can obtain the message in time through the IM system message, and knows that the current user A has bought himself as a slave.
其中, 用户进行的游戏操可能会对其他未在游戏状态的多个用户产生影响, 即用户进行的游戏操作产生影响的联系人有多个, 则服务器处理完成游戏逻辑 后, 对用户直接从网页返回处理后的游戏结果, 而对其他多个产生影响的用户 分别通过该多个用户的 IM客户端生成的 IM系统消息返回处理后的游戏结果。 The game operation performed by the user may affect other users who are not in the game state, that is, there are multiple contacts that affect the game operation performed by the user, and after the server processes the game logic, the user directly accesses the webpage. The processed game result is returned, and the processed game results are returned to the other plurality of affected users through the IM system messages generated by the plurality of users' IM clients.
另外,服务器也可以将处理后用户操作的游戏结果通过其他 IM方式发送给 其他产生影响的用户, 本发明实施例对此不作限制, 如通过 IM 的 TIP提示信 息发送给产生影响且不在游戏状态的用户。 In addition, the server may also send the game result of the user operation to other influential users through other IM modes, which is not limited by the embodiment of the present invention, such as sending the TIP prompt information of the IM to the affected and not in the game state. user.
从上面描述可以看出, 202a和 202b是并列的两个步骤。 As can be seen from the above description, 202a and 202b are two steps in parallel.
203: 当用户的游戏状态发生变化,在用户的 IM上和用户的联系人的 IM上 显示的该用户的网页游戏信息也会得到更新。 203: When the user's game state changes, the user's web game information displayed on the user's IM and the user's contact's IM is also updated.
其中, 当用户的游戏状态发生变化, 在用户的 IM上和用户的联系人的 IM 上显示的用户的网页游戏信息也会得到更新, 其中显示用户的网页游戏信息的 位置可以根据需要灵活选取, 本发明实施例对此不作限制。 Wherein, when the user's game state changes, the user's web game information displayed on the user's IM and the user's contact's IM is also updated, wherein the position of displaying the user's web game information can be flexibly selected according to needs. The embodiment of the invention does not limit this.
例如, 用户 A进行游戏操作, 导致用户 A的游戏状态发生变化, 服务器会 把相关的用户 A的网页游戏信息发送到用户的 IM的标志位服务器, 而用户 A 的好友(甚至非好友)在拉取 A的网页游戏信息时会从标志位服务器获取到用 户 A的最新的网页游戏信息, 实现了用户 A的网页游戏信息得到更新。 其中, IM的标志位服务器用于存储 IM 的状态信息的服务器, 包括用户的网页游戏信
息以及用户的其他状态信息等。 其中, IM的标志位服务器可以实时的接收服务 器发送的用户的网页游戏信息, 也可以按照一定的时间间隔定时的接收服务器 发送的用户的网页游戏信息。 For example, when user A performs a game operation, causing user A's game state to change, the server sends the related user A's web game information to the user's IM's flag server, and user A's friend (even a non-friend) is pulling. When the web game information of A is taken, the latest web game information of user A is obtained from the flag server, and the web game information of user A is updated. Wherein, the IM flag server is used to store the status information of the IM, including the user's web game letter. Information and other status information of the user. The IM flag server can receive the web game information of the user sent by the server in real time, and can also receive the web game information of the user sent by the server at a certain time interval.
例如: 在车位游戏中, 用户 A当前购买了一辆新车 X,则服务器将该用户 A 的该游戏信息发送给 IM的标志位服务器, 这样当用户 A的好友或者非好友在 自身的 IM客户端查看用户 A的网页游戏信息时, 会获取到用户 A当前最新的 网页游戏信息为用户 A刚买了一辆新车 X。 For example: In the parking game, user A currently purchases a new car X, and the server sends the game information of user A to the flag server of IM, so that when user A's friend or non-friend is in his own IM client When viewing the web game information of user A, the latest webpage game information of user A is obtained, and user A has just bought a new car X.
其中, 本发明实施例提供的以 IM为载体的网页游戏的实现方法中, IM载 体为跨平台型的, 可以是 PC平台也可以手机平台等, 本发明实施例对此不作限 制, 可以根据用户的实际情况灵活选取。 In the implementation method of the webpage game with the IM as the carrier provided by the embodiment of the present invention, the IM bearer is a cross-platform type, and may be a PC platform or a mobile phone platform, etc., which is not limited by the embodiment of the present invention, and may be based on the user. The actual situation is flexible.
另外, 本发明实施例中是以 IM为载体的网页游戏的实现方法, 本发明实施 例提供的方法还适用于以邮箱为载体的网页游戏、 以休闲平台为载体的网页游 戏、 以移动终端为载体的网页游戏, 其实现过程和原理相似, 不再赘述。 In addition, in the embodiment of the present invention, a method for implementing a web game with an IM as a carrier is provided. The method provided by the embodiment of the present invention is also applicable to a web game with a mailbox as a carrier, a web game with a leisure platform as a carrier, and a mobile terminal. The webpage game of the carrier is similar in its implementation process and principle, and will not be described again.
本发明实施例提供的方法, 通过以 IM为网页游戏的实现载体, 解决了现有 SNS 为载体的网页游戏不能实时通知以及无法长期在线的问题, 同时为网页游 戏提供了更紧密的关系链和更多的展现方式, 提高了用户使用体验。 实施例 3 The method provided by the embodiment of the present invention solves the problem that the existing SNS-based web game cannot be notified in real time and cannot be long-term online by using IM as an implementation carrier of the web game, and provides a closer relationship chain for the web game. More presentations have improved the user experience. Example 3
本发明实施例提供了一种网页游戏的实现系统, 参见图 6, 该系统包括: 用 户的即时通信 IM客户端 301、 服务器 302和用户的联系人的 IM客户端 303 , 其中, The embodiment of the present invention provides a system for implementing a webpage game. Referring to FIG. 6, the system includes: an instant messaging IM client 301 of the user, a server 302, and an IM client 303 of the user's contact, where
用户的 IM客户端 301 , 用于用户登陆用户的 IM客户端 301后, 登陆网页 游戏; The user's IM client 301 is configured to log in to the web game after the user logs in to the user's IM client 301;
服务器 302, 用于通过用户的 IM客户端 301登陆网页游戏后, 获取用户的 网页游戏信息, 并将该用户的网页游戏信息发送给用户的联系人的 IM客户端 303; The server 302 is configured to obtain the web game information of the user after logging in to the web game by the user's IM client 301, and send the web game information of the user to the IM client 303 of the user's contact;
需要说明的是, 如果该用户的联系人在网页游戏状态, 则服务器 302 可以 通过网页界面将网页游戏信息发送给该用户的联系人。 It should be noted that if the user's contact is in the web game state, the server 302 can send the web game information to the user's contact through the web interface.
用户的联系人的 IM客户端 303 ,用于接收服务器 302发送的网页游戏信息, 生成包含网页游戏信息的 IM消息, 并将生成的 IM消息发送给用户的联系人。
服务器 302, 还用于将获取的用户的网页游戏信息通过网页界面发送给用 户; 或者,还用于将获取的网页游戏信息发送给用户的 IM客户端 301 ; 相应的, 用户的 IM客户端 301还用于生成包含该网页游戏信息的 IM消息, 并将生成的 IM消息发送给该用户。 The IM client 303 of the user's contact is configured to receive the webpage game information sent by the server 302, generate an IM message including the webpage game information, and send the generated IM message to the user's contact. The server 302 is further configured to send the obtained webpage game information of the user to the user through the webpage interface; or, the user is also used to send the obtained webpage game information to the user's IM client 301; correspondingly, the user's IM client 301 It is also used to generate an IM message containing the webpage game information, and send the generated IM message to the user.
其中, 当网页游戏信息包括用户在网页游戏中的游戏操作时, 服务器 302, 还用于对游戏操作进行逻辑处理, 将游戏操作处理后的游戏结果通过网页界面 发送给用户; 或者, 将游戏结果发送给用户的 IM客户端 301 ; The server 302 is further configured to perform logic processing on the game operation, and send the game result processed by the game operation to the user through the webpage interface; or, the game result is used when the webpage game information includes the user's game operation in the webpage game. An IM client 301 that is sent to the user;
相应的, 用户的 IM客户端 301具体用于生成包含该游戏结果的 IM消息, 并将生成的 IM消息发送给该用户。 Correspondingly, the user's IM client 301 is specifically configured to generate an IM message containing the game result, and send the generated IM message to the user.
其中, 当用户的网页游戏信息包括用户在网页游戏中的游戏操作和游戏操 作产生影响的联系人时; Wherein, when the user's web game information includes a user's game operation in the web game and a contact affected by the game operation;
服务器 302, 还用于将游戏操作处理后的游戏结果发送给用户的联系人的 IM客户端 303 , 相应的, The server 302 is further configured to send the game result processed by the game operation to the IM client 303 of the user's contact, correspondingly,
用户的联系人的 IM客户端 303 , 用于生成包含游戏结果的 IM消息, 并将 生成的 IM消息发送给游戏操作产生影响的联系人。 The IM client 303 of the user's contact is used to generate an IM message containing the game result, and the generated IM message is sent to the contact whose influence is affected by the game operation.
其中, 用户的 IM客户端 301和用户的联系人的 IM客户端 303 , 还用于显 示用户的网页游戏信息或者所述游戏结果, 以便用户以及用户的联系人通过对 应的 IM客户端实时的获取用户当前的网页游戏信息或者游戏结果。 The user's IM client 301 and the user's contact's IM client 303 are also used to display the user's web game information or the game result, so that the user and the user's contact can be obtained in real time through the corresponding IM client. The user's current web game information or game results.
本发明实施例提供的系统, 通过以 IM为网页游戏的实现载体, 解决了现有 SNS 为载体的网页游戏不能实时通知以及无法长期在线的问题, 同时为网页游 戏提供了更紧密的关系链和更多的展现方式, 提高了用户使用体验。 实施例 4 The system provided by the embodiment of the present invention solves the problem that the existing SNS-based web game cannot be notified in real time and cannot be long-term online by using IM as an implementation carrier of the web game, and provides a closer relationship chain for the web game. More presentations have improved the user experience. Example 4
本发明实施例了一种网页游戏的服务器装置, 参见图 7, 该装置包括: 登陆模块 401 , 用于验证用户通过用户的 IM客户端登陆网页游戏; 获取模块 402 , 用于获取用户的网页游戏信息, 并将用户的网页游戏信息发 送给用户的联系人的 IM客户端, 以便用户的联系人的 IM客户端生成包含网页 游戏信息的 IM消息。 The embodiment of the present invention is a server device for a webpage game. Referring to FIG. 7, the device includes: a login module 401, configured to verify that a user logs in to a webpage game through a user's IM client; and an obtaining module 402, configured to acquire a webpage game of the user The information, and the user's web game information is sent to the IM client of the user's contact, so that the IM client of the user's contact generates an IM message containing the web game information.
其中, 获取模块 401 , 包括: The obtaining module 401 includes:
获取单元, 用于通过用户的 IM客户端登陆网页游戏后, 获取用户的网页游
戏信息, 用户的网页游戏信息包括用户在网页游戏中的游戏操作及游戏操作产 生影响的联系人; The obtaining unit is configured to obtain a webpage tour of the user after logging in to the webpage game through the user's IM client The game information, the user's web game information includes the user's game operation in the web game and the contact of the game operation;
发送单元, 用于对获取单元获取的游戏操作进行逻辑处理, 将游戏操作处 理后的游戏结果发送给用户的联系人的 IM客户端, 以便用户的联系人的 IM客 户端生成包含游戏结果的 IM消息,并使用户的联系人的 IM客户端将生成的 IM 消息发送给游戏操作产生影响的联系人。 a sending unit, configured to perform logic processing on the game operation acquired by the acquiring unit, and send the game result processed by the game operation to the IM client of the user's contact, so that the IM client of the user's contact generates the IM including the game result The message is sent to the IM client of the user's contact to send the generated IM message to the contact affected by the game operation.
其中, 发送单元, 还用于将游戏结果发送给用户的 IM客户端, 以便用户的 IM客户端生成包含游戏结果的 IM消息,并使用户的 IM客户端将生成的 IM消 息发送给用户。 The sending unit is further configured to send the game result to the IM client of the user, so that the IM client of the user generates an IM message including the game result, and causes the IM client of the user to send the generated IM message to the user.
其中, 装置还包括: Wherein, the device further comprises:
返回模块, 用于通过网页界面直接向用户返回游戏结果; 或者, 当游戏操 作产生影响的联系人在网页游戏状态, 则通过网页界面直接向游戏操作产生影 响的联系人返回游戏结果。 The return module is configured to directly return the game result to the user through the web interface; or, when the contact affected by the game operation is in the web game state, the contact directly affected by the game operation through the web interface returns the game result.
本发明实施例提供的装置, 通过以 IM为网页游戏的实现载体, 解决了现有 SNS 为载体的网页游戏不能实时通知以及无法长期在线的问题, 同时为网页游 戏提供了更紧密的关系链和更多的展现方式, 提高了用户使用体验。 本发明实施例中的"接收,,一词可以理解为主动从其他模块获取,也可以是接 收其他模块发送来的信息。 The device provided by the embodiment of the present invention solves the problem that the existing SNS-based web game cannot be notified in real time and cannot be long-term online by using IM as an implementation carrier of the web game, and provides a closer relationship chain for the web game and More presentations have improved the user experience. The term "receiving" in the embodiment of the present invention may be understood as being actively acquired from other modules, or may be receiving information sent by other modules.
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的模 块或流程并不一定是实施本发明所必须的。 Those skilled in the art will appreciate that the drawings are only a schematic representation of a preferred embodiment, and that the modules or processes in the drawings are not necessarily required to practice the invention.
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述分 布于实施例的装置中, 也可以进行相应变化位于不同于本实施例的一个或多个 装置中。 上述实施例的模块可以合并为一个模块, 也可以进一步拆分成多个子 模块。 Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be described in the apparatus of the embodiments as described in the embodiments, and the corresponding changes may be made in one or more apparatuses different from the embodiment. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。 The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
本发明实施例中的部分步骤, 可以利用实现, 相应的程序可以存储在可读 取的存储介质中, 如光盘或硬盘等。 Some of the steps in the embodiments of the present invention may be implemented, and the corresponding programs may be stored in a readable storage medium, such as an optical disk or a hard disk.
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的
保护范围之内。
The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are included in the spirit and scope of the present invention, should be included in the present invention. Within the scope of protection.