CN108270867A - The sharing method of virtual resource, storage medium in game - Google Patents
The sharing method of virtual resource, storage medium in game Download PDFInfo
- Publication number
- CN108270867A CN108270867A CN201810069134.7A CN201810069134A CN108270867A CN 108270867 A CN108270867 A CN 108270867A CN 201810069134 A CN201810069134 A CN 201810069134A CN 108270867 A CN108270867 A CN 108270867A
- Authority
- CN
- China
- Prior art keywords
- game
- game client
- account
- virtual resource
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000006854 communication Effects 0.000 claims description 19
- 230000004044 response Effects 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 235000008733 Citrus aurantifolia Nutrition 0.000 description 1
- 235000011941 Tilia x europaea Nutrition 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004571 lime Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009182 swimming Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/32—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using local area network [LAN] connections
- A63F13/327—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using local area network [LAN] connections using wireless networks, e.g. Wi-Fi® or piconet
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of sharing method of virtual resource in game, storage medium, first game client receives connection and establishes instruction, short-distance wireless is established according to connection foundation instruction with the second game client to connect, receive first resource experience instruction, first resource experience instruction, which is used to indicate, allows the first game account to experience the first virtual resource, first virtual resource is the virtual resource of the second game account, first game account is the game account logged in by the first game client, second game account is the game account logged in by the second game client, first resource experience instruction is to determine that the first game client and the second game client establish what is received after short-distance wireless connects.The program not need between good friend under line by exchange mobile phone or log in other side's account can experiencing virtual resource mutually, improve user experience.
Description
Technical field
The present invention relates to the sharing method of virtual resource, storage mediums in field of play more particularly to a kind of game.
Background technology
With the development of science and technology, the function of mobile phone is more and more, mobile phone network game is one kind therein.Cell phone network
It plays using internet as transmission medium, the game garment that user is provided by the game client installed on mobile phone with gaming operators
Business device interacts, and supports multiplayer online games.
Existing online game usually has following two modes:Playing method under playing method and line on line, playing method refers to remotely on line
Multiple players form a team and play, multiple players are by the exchange in real time of voice or video mode to exchange in game
Information.Playing method refers to closely or face-to-face play game between good friend under line.In the prior art, game is played between good friend under line
When, the game item (such as " hero ") between good friend cannot be shared, if some player wants to experience the hero of good friend, need
Good friend's mobile phone is borrowed, is experienced using the mobile phone of good friend, alternatively, the game account experience of good friend is logged on the mobile phone of oneself,
Lead to poor user experience.
Invention content
The present invention provides the sharing method of virtual resource, storage medium in a kind of game so that is not required between good friend under line
Virtual resource can be shared mutually by exchanging mobile phone or logging in other side's account, improve user experience.
First aspect present invention provides a kind of sharing method of virtual resource in game, including:
First game client receives connection and establishes instruction;
First game client establishes instruction according to the connection and establishes short-distance wireless with the second game client
Connection;
First game client receives first resource experience instruction, and the first resource experience instruction is used to indicate fair
Perhaps the first game account experiences the first virtual resource, and first virtual resource is the virtual resource of the second game account, described
First game account is the game account logged in by first game client, and second game account is by described
The game account that second game client logs in, first resource experience instruction are first game client and described the
Two game clients establish what is received after short-distance wireless connects.
Optionally, first game client establishes instruction according to the connection and establishes short distance with the second game client
From wireless connection, including:
First game client establishes instruction according to the connection, and the first request message is sent to server;
First game client receives the first response message that the server is sent, in first response message
Including the first identifying code;
First game client establishes bluetooth connection with second game client;
First identifying code is sent to second game by first game client by the bluetooth connection
Client.
Optionally, first game client establishes instruction according to the connection and establishes short distance with the second game client
From wireless connection, including:
First game client establishes instruction according to the connection, and third request message is sent to server;
First game client receives the third response message that the server is sent, in the third response message
Including the second identifying code;
First game client is established near-field communication NFC with second game client and is connect;
Second identifying code is sent to the second game visitor by first game client by the NFC connections
Family end.
Optionally, first game client establishes instruction according to the connection and establishes short distance with the second game client
After wireless connection, further include:
First game client receives the second selection instruction, and second selection instruction is used for from the described first game
Selection allows the second virtual resource that second game account is experienced in the virtual resource of account;
The information of second virtual resource is sent to the server by first game client.
Optionally, it after first game client receives the second selection instruction, further includes:
First game client received for the second experience time, and the second experience time is allows second game
Account experiences the time of second virtual resource.
Optionally, when the first resource experience instruction includes mark and the first experience of first virtual resource
Between, the first experience time is the time that first game account is allowed to experience first virtual resource.
Second aspect of the present invention provides a kind of sharing method of virtual resource in game, including:
First game client receives selection instruction, and the selection instruction is used for the adjacent game account from the first game account
The second game account is selected in the list of family, the adjacent game account list of first game account is according to game client
What location information determined;
First game client sends connection face-to-face to server and establishes request, institute according to the selection instruction
It states connection face-to-face and establishes request for asking to connect face-to-face with second game client foundation;
First game client receives first resource experience instruction, and the first resource experience instruction is used to indicate fair
Perhaps the first game account experiences the first virtual resource, and first virtual resource is the virtual resource of second game account,
First game account is the game account logged in by first game client, and second game account is passes through
The game account that second game client logs in, the first resource experience instruction is first game client and institute
It states the second game client and establishes after the face-to-face connection what is received.
Optionally, after first game client and second game client establish the face-to-face connection, also
Including:
First game client receives the second selection instruction, and second selection instruction is used for from the described first game
Selection allows the second virtual resource that second game account is experienced in the virtual resource of account;
The information of second virtual resource is sent to the server by first game client.
Optionally, it after first game client receives the second selection instruction, further includes:
First game client received for the second experience time, and the second experience time is allows second game
Account experiences the time of second virtual resource.
Optionally, when the first resource experience instruction includes mark and the first experience of first virtual resource
Between, the first experience time is the time that first game account is allowed to experience first virtual resource.
Third aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer program, the meter
It realizes when calculation machine program is executed by processor and is virtually provided in the game described in any one of first aspect present invention and second aspect
The sharing method in source.
Fourth aspect present invention provides a kind of game client, including:Processor, memory and transceiver, the storage
For storing instruction, the transceiver is used for device and other equipment communication, the processor are deposited for performing in the memory
The instruction of storage, so that the game client is performed in the game as described in any one of first aspect present invention and second aspect
The sharing method of virtual resource.
The sharing method of virtual resource, storage medium in game provided by the invention, the first game client receive connection
Instruction is established, establishing short-distance wireless with the second game client according to connection foundation instruction connect, and receives first resource body
Instruction is tested, first resource experience instruction, which is used to indicate, allows the first game account to experience the first virtual resource, the first virtual money
Source is the virtual resource of the second game account, and the first game account is the game account logged in by the first game client, the
Two game account are the game account logged in by the second game client, and first resource experience instruction is the first game client
Establish what is received after short-distance wireless connects with the second game client.First game client and the second game visitor in the program
Family end is connected by establishing short-distance wireless so that does not need to play by exchanging mobile phone or logging in other side between good friend under line
Account can experiencing virtual resource mutually, improve user experience.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the schematic diagram of the applicable network structure of the present invention;
Fig. 2 is the flow chart of the sharing method of virtual resource in the game that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of the sharing method of virtual resource in game provided by Embodiment 2 of the present invention;
Fig. 4 is the signaling process figure of the sharing method of virtual resource in the game that the embodiment of the present invention three provides,
Pass through above-mentioned attached drawing, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail.These attached drawings
It is not intended to limit the range of present inventive concept by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate idea of the invention.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The present invention provides a kind of sharing method of virtual resource in game, and Fig. 1 is showing for the applicable network structure of the present invention
It is intended to, as shown in Figure 1, the network architecture includes at least one server and at least two game clients.Server is also referred to as
For game server, for preserving the position coordinates of all players and game logic data and relevant other information, player
Refer to the user registered on the server, each player uniquely corresponds to a game account.Game client is substantially carried out swimming
The operation for logic of playing and the display of game picture, the operation of game logic are played to logging on to the leading role of going game client
What family carried out.The display of game picture is included to the display of leading role player and to non-in the current map where leading role player
The display of leading role player.After game client creates connection with server, i.e., player logs in the game client and plays, every
A period of time carries out a data interaction.Game client is also referred to as game application (Application, APP), game client
On the terminal device, which can be mobile phone, computer, game machine etc. for installation.
The method of the present invention is suitable for online game, and existing online game usually has following two modes:Playing method on line
With playing method under line, playing method refers to that long-range multiple players form a team and play on line, and multiple players are by voice or regard
Frequency mode exchanges to exchange the information in game in real time.Playing method refers to closely or face-to-face play game between good friend under line, this
The method of embodiment is primarily adapted for use in playing method under line.
Based on the network architecture shown in FIG. 1, Fig. 2 is the shared side of virtual resource in the game that the embodiment of the present invention one provides
The flow chart of method, as shown in Fig. 2, method provided in this embodiment includes the following steps:
Step S101, the first game client receives connection and establishes instruction.
The connection, which establishes to instruct to be used to indicate, establishes short-distance wireless connection, and it can be user's input which, which establishes instruction,
's.Illustratively, user opens games page, and short-distance wireless establishment of connection button, user are shown in the games page
Button input connection foundation instruction is established by clicking this.Optionally, a variety of short-distance wireless can be provided in the present embodiment to lead to
Letter mode is selected for user, for example, user is clicked after this establishes button, shows a variety of short-distance wireless communication modes for user's choosing
It selects, user selects a kind of mode from a variety of short-distance wireless communication modes, to trigger short-distance wireless establishment of connection process.
For example, user has selected Bluetooth communication, then user can further set the first game account logged on the first game client
The identity at family is participator.
Optionally, short-distance wireless connection e.g. bluetooth connection, near-field communication (Near
FieldCommunication, NFC) connection.
Step S102, the first game client according to the connection establish instruction with the second game client establish short distance without
Line connects.
Wherein, it during short-distance wireless connection is established, is needed between the first game client and the second game client
It to verify mutually, that is, the both sides for establishing short-distance wireless communication agree to or give tacit consent to agreement and establish.
First way, the first game client are established according to the connection and are instructed, and the first request message is sent to server,
First request message establishes bluetooth connection for request.Server is the first game account distribution the according to the first request message
One identifying code, the first game account are the game account logged in by the first game client, and then, server is played to first
Client sends the first response message, and the first game client receives the first response message that server is sent, and the first response disappears
Breath includes the first identifying code.First game client and the second game client establish bluetooth connection, the first game client
First identifying code is sent to by the second game client by bluetooth connection.
Second game client receives the first identifying code that the first game client is sent by bluetooth connection, the second game
User end to server sends the second request message, and the second request message includes the first identifying code and the mark of the first game account
Know, when the mark for the game account that the second request message includes is identical with the mark of the first game account, and the second request disappears
When the identifying code that breath includes is identical with the first identifying code, server determines that the first game client and the second game client are built
Bluetooth connection is stood.
Optionally, server sends connection foundation to the first game client and the second game client and completes to disappear respectively
Breath, the first game client and the second game client to be notified to connect to establish and complete.Alternatively, server is only to the second game visitor
Family end sends connection setup complete message, after the second game client receives connection setup complete message, to the first game client
End sends connection setup complete message.
Bluetooth communication is a kind of safe communication mode of comparison, which can not be simulated by fraudulent means, can be with
Player is avoided to destroy game balance using this rule.
The second way, the first game client are established according to the connection and are instructed, and third request message is sent to server,
The third request message establishes NFC connections for request.Server is the first game account distribution the according to third request message
Two identifying codes, then send third response message to the first game client, and the first game client receives what server was sent
Third response message, third response message include the second identifying code.First game client and the second game client are established
Second identifying code is sent to the second game client by NFC connections, the first game client by NFC connections, wherein, the first trip
Play client can establish NFC by terminal touching with the second game client and connect.
In the present embodiment, NFC communication uses ad hoc mode (P2P mode), and the pattern is similar with infrared ray, can be used for
Data exchange, only transmission range is shorter, and transmission creates speed, and transmission speed is also quicker, (bluetooth is also similar) low in energy consumption.
Two equipment for having NFC function are connected, can realize data point-to-point transmission.Support NFC equipment can actively or by
Data are exchanged under dynamic model formula, in the passive mode, start the equipment of NFC communication, also referred to as NFC initiating equipments (main equipment),
Radiofrequency field (RF-field) is provided in entire communication process, another equipment is known as NFC target devices (slave device), it is not necessary to generate
Radiofrequency field, and use load modulation (load modulation) technology, you can initiation back is passed data with identical speed and is set
It is standby.When two good friends play into line downstream, user A can will be equipped with the terminal device of the first game client with being equipped with
The terminal device of second game client is touched to establish NFC connections.
Second game client receives the second identifying code that the first game client is sent by NFC connections, the second game
User end to server sends the 4th request message, and the 4th request message includes the second identifying code and the first game account
Mark.When the mark for the game account that the 4th request message includes is identical with the mark of the first game account, and the 4th request
When the identifying code that message includes is identical with the second identifying code, server determines the first game client and the second game client
Establish NFC connections.
Optionally, server can also send connection respectively to the first game client and the second game client and establish
Into message, the first game client and the second game client to be notified to connect to establish and complete.Alternatively, server is only to the second trip
Client of playing sends connection setup complete message, after the second game client receives connection setup complete message, to the first game
Client sends connection setup complete message.
In above two mode, it is the feelings known and mutually permitted in both sides' game client that short-distance wireless connection, which is established,
It is completed under condition, and either one can interrupt short-distance wireless connection at any time halfway.Connect for example, either side disconnects bluetooth
It connects or NFC connections, alternatively, individually setting the button of a disconnection short-distance wireless linkage function, user in games page
Short-distance wireless connection or user are disconnected by closing button disconnection short-distance wireless connection by operating the button.
In the present embodiment, the first game client can monitor the first game client and the second game in the following way
Short-distance wireless establishment of connection is completed between client:Mode one, the first game client receive server or the second game
The connection setup complete message that client is sent determines the first game client and the second trip according to the connection setup complete message
Short-distance wireless establishment of connection is completed between client of playing.Mode two, the first game client are given tacit consent to after the preset lime
Short-distance wireless establishment of connection is completed between first game client and the second game client.
Step S103, the first game client receives first resource experience instruction, and first resource experience indicates to refer to
Showing allows the first game account to experience the first virtual resource, and the first virtual resource is the virtual resource of the second game account.
Wherein, the first game account is the game account logged in by the first game client, and the second game account is logical
The game account that the second game client logs in is crossed, first resource experience instruction is the first game client and the second game client
What is received after short-distance wireless connects established in end.First resource experience instruction can be server or the second game client
It is sent to the first game client.
Optionally, server can be after the request message for receiving the transmission of the first game client, to the first game client
End sends first resource experience instruction, can also determine the first game client and the second game client establish short distance without
First resource experience instruction is sent after line connection.
Server can obtain the information of the first virtual resource and the information of the second virtual resource by the following two kinds mode:
In a kind of mode, server receive the first game client send the second virtual resource information and/or, receive second trip
The information for the first virtual resource that client of playing is sent.In another way, server is according to the virtual money of the first game account
Source and the virtual resource of the second game account determine that the second game account has the virtual money that still the first game account does not have
Source is the first virtual resource;And/or server is according to the virtual resource of the first game account and the virtual money of the second game account
Source, it is the second virtual resource to determine that the first game account has the virtual resource that still the second game account does not have.
The virtual resource can be virtual item, virtual equipment or game account, and virtual item is also referred to as game item, empty
Intend equipment and be also referred to as game article, game account is also referred to as game role.
In the present embodiment, the experience instruction of the first virtual resource first resource includes the information of the first virtual resource, and first
The information of virtual resource can include the mark of the first virtual resource, optionally, can also be wrapped in the information of the first virtual resource
Included for the first experience time, the first experience time was the time that the first game account is allowed to experience the first virtual resource, and first plays
Account can only experience the first virtual resource within the first experience time.Optionally, which can be that user is led to
The input of the second game client is crossed, the time as defined in server can also be used.
Optionally, the first virtual resource is all virtual resources of the second game account, alternatively, the first virtual resource is the
The partial virtual resource of two game accounts.First virtual resource can be specified by the second game account, and the first virtual resource also may be used
With using the virtual resource of acquiescence, for example, the first virtual resource has for the second game account but the first game account does not have
Some virtual resources.The quantity of first virtual resource can be one or more.
It should be clear that " experience " in the present embodiment refers to " interim use/possess permission ".That is the first game account
There was only interim access right to the first virtual resource that the second game account is shared or possess permission temporarily, do not merchandise,
It gives or other permissions, the virtual resource for the first game account that server is safeguarded and the virtual resource of the second game account are not
Variation.
After first game client receives first resource experience instruction, the first virtual resource, Yong Hucong are shown to user
Selection needs the virtual resource experienced to be experienced in first virtual resource.Optionally, for there was only the first game account or
The virtual resource that two game accounts possess, if the virtual resource is chosen by the first game account, the state of the virtual resource
Become seizure condition, the second game account cannot use the virtual resource, only after the first game account has been experienced, second
Game account could use the virtual resource.
Optionally, server can also send Secondary resource experience instruction, Secondary resource experience to the second game client
Instruction, which is used to indicate, allows the second game account to experience the second virtual resource, and the second virtual resource is virtual for the first game account
Resource.Optionally, the second virtual resource is that the first game account is specified, correspondingly, the first game client is according to the foundation
Instruction and the second game client are established after short-distance wireless connect, and the first game client shows the void of the first game account
Intend resource the selection page, the selection page can be user trigger specific button opens, then, user from first play account
Selection allows the second virtual resource that the second game account is experienced in the virtual resource at family.First game client receives the second choosing
Instruction is selected, which can be inputted by user, which is used for the virtual money from the first game account
Selection allows the second virtual resource that the second game account is experienced in source, and the first game client is by the information of the second virtual resource
It is sent to server.
Optionally, the option of experience time is further included in the selection page, user can select the body of the second virtual resource
The time is tested, correspondingly, after the first game client receives the second selection instruction, when the first game client receives the second experience
Between, the second experience time was the time that the second game account is allowed to experience the second virtual resource.
It should be noted that server only can send first resource experience instruction to the first game client, it can also
Secondary resource experience instruction only is sent to the second game client, it can also be to the first game client and the second game client
Send resource experience instruction.
In the present embodiment, the first game client receives connection and establishes instruction, and instruction and the second trip are established according to the connection
Play client establishes short-distance wireless connection, receives first resource experience instruction, and first resource experience instruction is used to indicate permission
First game account experiences the first virtual resource, which is the virtual resource of the second game account, and first plays
Account is the game account logged in by the first game client, and the second game account is logged in by the second game client
Game account, first resource experience instruction are the first game client and after the second game client establish short-distance wireless connection
It receives.The first game client and the second game client are connected by establishing short-distance wireless in the program so that under line
Do not needed between good friend by exchange mobile phone or log in other side's game account can experiencing virtual resource mutually, improve use
It experiences at family.
Fig. 3 is the flow chart of the sharing method of virtual resource in game provided by Embodiment 2 of the present invention, as shown in figure 3,
Method provided in this embodiment includes the following steps:
Step S201, the first game client receives selection instruction, and the selection instruction is for from the phase of the first game account
The second game account is selected in adjacent game account list, the adjacent game account list of the first game account is according to game client
What the location information at end determined.
The adjacent game account list of first game account can be that server is true according to the location information of game client
Fixed.Correspondingly, each game client is required for reporting the location information of oneself, optionally, game client to server
Location information is global positioning system (Global Positioning System, GPS) data of game client, alternatively, trip
The location information for client of playing is Wireless Fidelity (WIreless-Fidelity, WIFI) account of game client.
Server determines first according to the location information of the first game client and the location information of the second game client
Game account and the second game account are adjacent game account.When the location information of game client is GPS data, server
According to the GPS data of the first game client and the GPS data of the second game client, the first game client and second is calculated
The distance of game client.When the distance of the first game client and the second game client be less than it is preset apart from when, determine
First game account and the second game account are adjacent game account, which is, for example, 1 meter, 2 meters, 5 meters or 10 meters
Deng.It should be noted that the adjacent game client phase for referring to two game accounts and logging in of two game accounts in the present embodiment
It is adjacent.
When game client is the account that location information is WIFI, server judges the WIFI accounts of the first game client
It is number whether identical with the WIFI accounts of the second game client, account and the second game visitor as the WIFI of the first game client
When the WIFI accounts at family end are identical, server determines the first game account and the second game account is adjacent game account.First
The account of the WIFI of game client is identical with the WIFI accounts of the second game client, illustrates the first game client and second
Game client is in the coverage area of same WIFI signal, and the covering of WIFI signal is changeable, for example, in a family
In front yard, the coverage area of WIFI signal is smaller, and the coverage area of WIFI signal is larger in a company, therefore, according to WIFI
Account determines that two game accounts for adjacent game account are not very accurate.
Server determines the first game account and the second game account as after adjacent game account, to the first game client
The adjacent game account list of the first game account is sent, the adjacent game of the second game account is sent to the second game client
Account list.First game client receives the adjacent game account list for the first game account that server is sent, the first trip
The adjacent game account list of play account includes the mark of the second game account.
Step S202, the first game client is instructed according to the selection, and sending connection face-to-face to server establishes request,
The face-to-face connection establishes request for asking to connect face-to-face with the foundation of the second game client.
The mark that request includes the second game account is established in the face-to-face connection, is needed with identifying the first game client
It being connect face-to-face with the foundation of the second game client, server sends connection face-to-face to the second game client and establishes request,
The account that request includes the first game account is established in the face-to-face connection that server is sent to the second game client, by taking
Account with the first game account with notify the second game account this it is face-to-face connection by the first game account initiate.
Second game client can connect face-to-face foundation request, on the second game client display reminding information and
Select button, prompt message are pressed for the request of second the first game account of game account to be prompted to establish connection, the selection face-to-face
Button connects for choosing whether to agree to that foundation is face-to-face.Connect face-to-face if the corresponding user of the second game account agrees to establish
It connects, then the second game client sends face-to-face connection establishment response to server, which is used to refer to
Show that the second game account allows to establish face-to-face connection.Server receives the face-to-face connection that the second game client is sent and establishes
Response, determines that the first game client and the second game client are established and connected face-to-face according to face-to-face connection establishment response
It connects.
Optionally, server can also send connection respectively to the first game client and the second game client and establish
Into message, to notify the first game client and the second game client connect foundation face-to-face to complete.If the second game account
The corresponding user in family disagrees foundation connection face-to-face, then the second game client can send to connect to establish to server and refuse
Exhausted message, server forward the connection to establish refuse information to the first game client.
Step S203, the first game client receives first resource experience instruction, and first resource experience instruction is used to indicate
The first game account is allowed to experience the first virtual resource.
Wherein, the first virtual resource is the virtual resource of the second game account, and the first game account is by the first game
The game account that client logs in, the second game account are the game account logged in by the second game client, first resource
Experience instruction is that the first game client and the second game client are established after connecting face-to-face and received.
In the present embodiment, the first game client receives selection instruction, and the selection instruction is for from the first game account
The second game account is selected in adjacent game account list, the adjacent game account list of the first game account is according to game visitor
What the location information at family end determined, the first game client sends connection foundation face-to-face to server and asks according to selection instruction
It asks, the first game client receives first resource experience instruction, and first resource experience instruction is used to indicate permission the first game account
The first virtual resource is experienced at family, and first resource experience instruction is that the first game client and the second game client are established face-to-face
It is received after connection.The first game client and the second game client are by establishing connection face-to-face in the program so that line
Do not needed between lower good friend by exchange mobile phone or log in other side's game account can experiencing virtual resource mutually, improve
User experience.
Optionally, in the application other embodiment, server can determine two game clients in the following manner
Establish face-to-face connection:Server is according to the landing approach of the first game account and the landing approach of the second game account, inspection
Survey the first game account and the second game account whether be immediate communication tool good friend.Even if it is e.g. micro- to be somebody's turn to do communication tool
Letter, QQ, microblogging etc..When the first game account and the second game account are the good friend of immediate communication tool, server determines the
The second game client that the first game client and the second game account that one game account logs in log in establishes face-to-face
Connection.
The signaling process figure of the sharing method of virtual resource, this implementation in the game that Fig. 4 is provided for the embodiment of the present invention three
Example illustrated so that two game clients establish bluetooth connection as an example, as shown in figure 4, method provided in this embodiment include with
Lower step:
Step S301, the first game client receives connection and establishes instruction.
Specifically, user opens the short-distance wireless linkage function on the first game client, short-distance wireless connection
Function can open in the setting options of games page, for example, user A clicks or slide short-distance wireless linkage function pair
After the button answered, optionally, a variety of short-distance wireless communication modes are further shown, for example, user A selects Bluetooth communication, and
The identity for setting the first game account is participator.
Step S302, the first game client is established according to the connection and is instructed, and the first request message is sent to server.
First request message establishes bluetooth connection for request.
Step S303, server distributes the first identifying code according to the first request message for the first game account.
Step S304, server sends the first response message to the first game client, and the first response message includes the
One identifying code.
First identifying code can be saved in memory by the first game client.
Step S305, the first game client and the second game client establish bluetooth connection.
Specifically, user B opens the short-distance wireless linkage function on the second game client, bluetooth connection is selected, and
The identity for setting the second game account is connectionist, and the second game client and the first game client carry out Bluetooth pairing, match
Bluetooth connection after success is successfully established.
Step S306, the first identifying code is sent to the second game client by the first game client by bluetooth connection.
Step S307, the second game client sends the second request message to server, and the second request message includes the
The mark of one identifying code and the first game account.
Step S308, the identifying code and the mark of game account that the second request message of server authentication includes are with distributing to
Whether the first identifying code of the first game account matches.
When the mark for the game account that the second request message includes is identical with the mark of the first game account, and second please
When asking the identifying code that message includes identical with the first identifying code, server determines the first game client and the second game client
End establishes bluetooth connection, illustrates that the first game account and the second game account are in game state under line.
Step S309, server sends connection setup complete message to the first game client.
Connection setup complete message is used to that the first game client to be notified to connect foundation face-to-face and complete.
Step S310, server sends connection setup complete message to the second game client.
Step 311, server send first resource experience instruction to the first game client.
First resource experience instruction, which is used to indicate, allows the first game account to experience the first virtual resource, the first virtual resource
Virtual resource for the second game account.
Step S312, server sends Secondary resource experience instruction to the second game client.
Secondary resource experience instruction, which is used to indicate, allows the second game account to experience the second virtual resource, the second virtual resource
Virtual resource for the first game account.
The embodiment of the present invention four provides a kind of computer readable storage medium, is stored thereon with computer program, the meter
Virtual resource is shared in game when calculation machine program is executed by processor described in the realization embodiment of the present invention one to embodiment three
Method.
The embodiment of the present invention five provides a kind of game client, including:Processor, memory and transceiver, the storage
For storing instruction, the transceiver is used for device and other equipment communication, the processor are deposited for performing in the memory
The instruction of storage, so that virtual resource in game of the game client execution as described in the embodiment of the present invention one to embodiment three
Sharing method.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following
Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (11)
1. a kind of sharing method of virtual resource in game, which is characterized in that including:
First game client receives connection and establishes instruction;
First game client is established short-distance wireless with the second game client according to the connection foundation instruction and is connect;
First game client receives first resource experience instruction, and the first resource experience instruction is used to indicate permission the
One game account the first virtual resource of experience, virtual resource of first virtual resource for the second game account, described first
Game account is the game account logged in by first game client, and second game account is passes through described second
The game account that game client logs in, the first resource experience instruction are first game client and second trip
Play client establishes what is received after short-distance wireless connects.
2. according to the method described in claim 1, it is characterized in that, first game client refers to according to the connection foundation
Order is established short-distance wireless with the second game client and is connect, including:
First game client establishes instruction according to the connection, and the first request message is sent to server;
First game client receives the first response message that the server is sent, and first response message includes
First identifying code;
First game client establishes bluetooth connection with second game client;
First identifying code is sent to second game client by first game client by the bluetooth connection
End.
3. according to the method described in claim 1, it is characterized in that, first game client refers to according to the connection foundation
Order is established short-distance wireless with the second game client and is connect, including:
First game client establishes instruction according to the connection, and third request message is sent to server;
First game client receives the third response message that the server is sent, and the third response message includes
Second identifying code;
First game client is established near-field communication NFC with second game client and is connect;
Second identifying code is sent to second game client by first game client by the NFC connections
End.
4. according to claim 1-3 any one of them methods, which is characterized in that first game client is according to the company
It connects foundation instruction and the second game client to establish after short-distance wireless connect, further include:
First game client receives the second selection instruction, and second selection instruction is used for from first game account
Virtual resource in selection allow the second virtual resource that second game account is experienced;
The information of second virtual resource is sent to the server by first game client.
5. according to the method described in claim 4, it is characterized in that, first game client receive the second selection instruction it
Afterwards, it further includes:
First game client received for the second experience time, and the second experience time is allows second game account
Experience the time of second virtual resource.
6. claim 1-5 any one of them methods, which is characterized in that the first resource experience instruction includes described
The mark of first virtual resource and the first experience time, the first experience time experience institute for permission first game account
State the time of the first virtual resource.
7. a kind of sharing method of virtual resource in game, which is characterized in that including:
First game client receives selection instruction, and the selection instruction is used to arrange from the adjacent game account of the first game account
The second game account is selected in table, the adjacent game account list of first game account is the position according to game client
What information determined;
First game client sends connection face-to-face to server and establishes request, the face according to the selection instruction
Opposite connection establishes request for asking to connect face-to-face with second game client foundation;
First game client receives first resource experience instruction, and the first resource experience instruction is used to indicate permission the
One game account experiences the first virtual resource, and first virtual resource is the virtual resource of second game account, described
First game account is the game account logged in by first game client, and second game account is by described
The game account that second game client logs in, first resource experience instruction are first game client and described the
Two game clients establish after the face-to-face connection what is received.
8. the method according to the description of claim 7 is characterized in that first game client and second game client
After the face-to-face connection is established at end, further include:
First game client receives the second selection instruction, and second selection instruction is used for from first game account
Virtual resource in selection allow the second virtual resource that second game account is experienced;
The information of second virtual resource is sent to the server by first game client.
9. according to the method described in claim 8, it is characterized in that, first game client receive the second selection instruction it
Afterwards, it further includes:
First game client received for the second experience time, and the second experience time is allows second game account
Experience the time of second virtual resource.
10. according to claim 7-9 any one of them methods, which is characterized in that the first resource experience instruction includes
The mark of first virtual resource and the first experience time, the first experience time is allows the first game account body
Test the time of first virtual resource.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The sharing method of virtual resource in the game of claim 1-10 any one of them is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069134.7A CN108270867B (en) | 2018-01-24 | 2018-01-24 | Method for sharing virtual resources in game and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069134.7A CN108270867B (en) | 2018-01-24 | 2018-01-24 | Method for sharing virtual resources in game and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108270867A true CN108270867A (en) | 2018-07-10 |
CN108270867B CN108270867B (en) | 2021-02-09 |
Family
ID=62776561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810069134.7A Active CN108270867B (en) | 2018-01-24 | 2018-01-24 | Method for sharing virtual resources in game and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108270867B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110109726A (en) * | 2019-04-30 | 2019-08-09 | 网易(杭州)网络有限公司 | Receiving handling method and transmission method, the device and storage medium of virtual objects |
CN110575670A (en) * | 2019-08-30 | 2019-12-17 | 深圳市新系区块链技术有限公司 | Game data configuration strategy generation method and related product |
CN111659119A (en) * | 2020-07-02 | 2020-09-15 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and storage medium |
CN114082192A (en) * | 2021-11-18 | 2022-02-25 | 腾讯科技(深圳)有限公司 | Method, device, equipment and storage medium for transferring use right of virtual clothes |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1918836A (en) * | 2004-02-25 | 2007-02-21 | 汤姆逊许可公司 | Transportable character-centric gaming for wireless lan hotspots |
US20090019375A1 (en) * | 2007-06-26 | 2009-01-15 | Michael Garofalo | Method of sharing multi-media content among users in a global computer network |
CN102171996A (en) * | 2008-09-30 | 2011-08-31 | 苹果公司 | System and method for simplified resource sharing |
CN104052712A (en) * | 2013-03-11 | 2014-09-17 | 华为技术有限公司 | Local-area-network information interaction method, device and system |
CN104519485A (en) * | 2013-09-29 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Communication method between terminals, devices and system |
CN104917807A (en) * | 2015-03-19 | 2015-09-16 | 腾讯科技(深圳)有限公司 | Resource transfer method, apparatus and system |
CN105099986A (en) * | 2014-04-23 | 2015-11-25 | 深圳市快播科技有限公司 | Network game data sharing method and server |
CN105721450A (en) * | 2016-01-27 | 2016-06-29 | 网易(杭州)网络有限公司 | Method, device and system for logging in network game |
CN105935495A (en) * | 2016-04-12 | 2016-09-14 | 网易(杭州)网络有限公司 | Game role log-in control method, apparatus and system, and game system |
US20170113145A1 (en) * | 2004-12-07 | 2017-04-27 | Microsoft Technology Licensing, Llc | Application interface for tracking player identity |
-
2018
- 2018-01-24 CN CN201810069134.7A patent/CN108270867B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1918836A (en) * | 2004-02-25 | 2007-02-21 | 汤姆逊许可公司 | Transportable character-centric gaming for wireless lan hotspots |
US20170113145A1 (en) * | 2004-12-07 | 2017-04-27 | Microsoft Technology Licensing, Llc | Application interface for tracking player identity |
US20090019375A1 (en) * | 2007-06-26 | 2009-01-15 | Michael Garofalo | Method of sharing multi-media content among users in a global computer network |
CN102171996A (en) * | 2008-09-30 | 2011-08-31 | 苹果公司 | System and method for simplified resource sharing |
CN104052712A (en) * | 2013-03-11 | 2014-09-17 | 华为技术有限公司 | Local-area-network information interaction method, device and system |
CN104519485A (en) * | 2013-09-29 | 2015-04-15 | 腾讯科技(深圳)有限公司 | Communication method between terminals, devices and system |
CN105099986A (en) * | 2014-04-23 | 2015-11-25 | 深圳市快播科技有限公司 | Network game data sharing method and server |
CN104917807A (en) * | 2015-03-19 | 2015-09-16 | 腾讯科技(深圳)有限公司 | Resource transfer method, apparatus and system |
CN105721450A (en) * | 2016-01-27 | 2016-06-29 | 网易(杭州)网络有限公司 | Method, device and system for logging in network game |
CN105935495A (en) * | 2016-04-12 | 2016-09-14 | 网易(杭州)网络有限公司 | Game role log-in control method, apparatus and system, and game system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110109726A (en) * | 2019-04-30 | 2019-08-09 | 网易(杭州)网络有限公司 | Receiving handling method and transmission method, the device and storage medium of virtual objects |
CN110575670A (en) * | 2019-08-30 | 2019-12-17 | 深圳市新系区块链技术有限公司 | Game data configuration strategy generation method and related product |
CN110575670B (en) * | 2019-08-30 | 2023-09-15 | 深圳市新系区块链技术有限公司 | Method for generating configuration strategy of game data and related products |
CN111659119A (en) * | 2020-07-02 | 2020-09-15 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and storage medium |
CN111659119B (en) * | 2020-07-02 | 2023-03-21 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, equipment and storage medium |
CN114082192A (en) * | 2021-11-18 | 2022-02-25 | 腾讯科技(深圳)有限公司 | Method, device, equipment and storage medium for transferring use right of virtual clothes |
Also Published As
Publication number | Publication date |
---|---|
CN108270867B (en) | 2021-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108126344A (en) | The sharing method of position, storage medium in game | |
CN108043033A (en) | Watch method and storage medium in games system | |
CN108270867A (en) | The sharing method of virtual resource, storage medium in game | |
JP6011894B1 (en) | program | |
CN101553290B (en) | System and method for managing virtual worlds mapped to real locations in a mobile-enabled massively multiplayer online role playing game (mmorpg) | |
US9498711B2 (en) | Multi-player, multi-screens, electronic gaming platform and system | |
JP2011528518A (en) | User device for exchanging information based on gestures, method for exchanging information based on gestures between a plurality of user devices, and related devices and systems | |
KR20060076783A (en) | A network-based gaming system | |
KR20080088353A (en) | System and methood of generationg image information for outputing common game image and private game image | |
CN103620629A (en) | Transfer information processing method and apparatus | |
CN103391283A (en) | Game access method, game processing method, servers, terminals and system | |
JP6948792B2 (en) | Information processing equipment, information processing system, information processing method and program | |
US11478700B2 (en) | Asynchronous event management for hosted sessions | |
CN109074616A (en) | Transmit equipment, application program and the method for game application and resource file | |
CN108401014A (en) | The transfer method and storage medium of virtual resource in game | |
JP6982128B2 (en) | Video game processing program and video game processing system | |
KR101908016B1 (en) | System and method for providing online to offline fugitive pursuit game based on internet of things | |
KR20130137871A (en) | Method of causing other game user to represent game play, game server performing the same and storage media storing the same | |
KR101505677B1 (en) | Remote Control Method for On Line Game Service | |
KR20140031446A (en) | Mobile game system using nfc communication | |
KR101178325B1 (en) | Method and system for controlling team play of online game | |
KR20130050061A (en) | Method for providing game uniting on-line with off-line based on location based service | |
TW200819177A (en) | Realized online game system architecture and method | |
US20210086078A1 (en) | Internet of things based video game play | |
JP5864017B1 (en) | Game server. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |