Game command input method, device, electronic device and medium
By detecting the charging status of terminal devices or peripheral devices, generating game instructions and controlling virtual object actions, the problem of single and insufficient fun input methods of existing game instructions is solved, and rich game interaction methods and increased fun are achieved.
Patent Information
- Application Number
- CN202210237983.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-10
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-03-10
AI Technical Summary
The existing game command input method is relatively single and has insufficient fun, especially when the terminal and peripheral devices are charging, this scenario cannot be fully utilized as a game interaction method.
By detecting whether the terminal device or peripheral device is in a charged state, corresponding game instructions are generated, and the virtual objects in the game are controlled to perform specific virtual actions or switch to a specific virtual state according to the instructions.
It enriches the players' command interaction methods in the game, increases the fun of the game, and improves the playability of the game by designing a variety of gameplay based on charging interaction methods.
Smart Images

Figure CN114602159B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a game instruction input method, a game instruction input device, an electronic device and a computer-readable storage medium. Background Art
[0002] In the development of computer games, online games have become the most popular game type in this century. The most attractive thing about online games is that players can interact with other players on the server, rather than just operating a single character. This type of online game and the way it is played have changed the entire game industry.
[0003] Whether it is an online game or a stand-alone game, the input method for game operation is generally a combination of direction keys and function keys. There are many types of game command input devices on the market, such as keyboards, handles, mice, joysticks and even steering wheels. Each game has its own suitable command input method. For some specific types of games, the game operation instructions are quite complicated.
[0004] At present, game operations can also be performed on touch terminals, which are various electronic devices with touch screens, such as mobile phones, tablet computers, game consoles, and PDAs. Whether the game commands are input through input devices such as handles and keyboards, or through touch screens, the interactive methods of game commands are still relatively simple and not interesting enough. Summary of the invention
[0005] In view of the above problems, embodiments of the present invention are proposed to provide a game instruction input method and a corresponding game instruction input device, an electronic device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0006] An embodiment of the present invention discloses a method for inputting game instructions, which is applied to a terminal device, wherein the terminal device displays a game screen of a currently running game application, and the game screen displays a virtual object. The method includes:
[0007] Detecting whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless method is in a charging state;
[0008] If it is detected that the terminal device or the peripheral device is in a charging state, a corresponding game instruction is generated;
[0009] In response to the game instruction, the virtual object is controlled to perform a corresponding virtual action or switch to a corresponding virtual state.
[0010] Optionally, the detecting whether the terminal device or a peripheral device connected to the terminal device in a wired or wireless manner is in a charging state includes:
[0011] Detect whether the terminal device or the peripheral device is in a switching state from uncharged to charged.
[0012] Optionally, before detecting whether the terminal device or a peripheral device connected to the terminal device in a wired or wireless manner is in a charging state, the method further includes:
[0013] A prompt message is displayed in the game screen; the prompt message is used to prompt the game player to charge the terminal device or the peripheral device.
[0014] Optionally, if it is detected that the terminal device or the peripheral device is in a charging state, generating a corresponding game instruction includes:
[0015] If it is detected that the terminal device or the peripheral device is in a charging state, determining the charging time of the terminal device or the peripheral device;
[0016] When the charging time is greater than a preset charging time threshold, the corresponding game instruction is generated.
[0017] Optionally, it also includes:
[0018] If it is detected that the terminal device or the peripheral device is in a charging state, a charging progress function control is displayed in the game screen; the charging progress function control is used to reflect the charging progress of the terminal device or the peripheral device.
[0019] Optionally, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state includes:
[0020] In response to the game instruction, the virtual object is controlled to release a discharge skill.
[0021] Optionally, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state includes:
[0022] In response to the game instruction, the virtual object is controlled to switch from an off state to a lit state.
[0023] Optionally, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state includes:
[0024] In response to the game instruction, the display form of the virtual object is controlled to switch to a lightning form.
[0025] Optionally, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state includes:
[0026] In response to the game instruction, the virtual object is controlled to restore health value.
[0027] Optionally, if it is detected that the terminal device or the peripheral device is in a charging state, generating a corresponding game instruction includes:
[0028] If it is detected that the terminal device or the peripheral device is in a charging state, determining the charging type of the terminal device or the peripheral device;
[0029] In the case where the charging type is a wireless charging type, generating the game instruction corresponding to the wireless charging type;
[0030] In a case where the charging type is a wired charging type, the game instruction corresponding to the wired charging type is generated.
[0031] Optionally, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state includes:
[0032] In response to the game instruction corresponding to the wireless charging type, displaying a virtual charging base in the game screen;
[0033] The virtual object is controlled to appear in a state of restoring health value on the virtual charging base.
[0034] Optionally, it also includes:
[0035] Receive game instruction configuration information input by a game player or a developer, and update the game instructions generated when the terminal device or the peripheral device is in a charging state according to the game instruction configuration information.
[0036] The embodiment of the present invention further discloses a game instruction input device, which is applied to a terminal device, wherein the terminal device displays a game screen of a currently running game application, and the game screen displays a virtual object, and the device comprises:
[0037] A detection module, used to detect whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless method is in a charging state;
[0038] A generating module, configured to generate corresponding game instructions if it is detected that the terminal device or the peripheral device is in a charging state;
[0039] The control module is used to control the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction.
[0040] Optionally, the detection module includes:
[0041] The detection submodule is used to detect whether the terminal device or the peripheral device is in a switching state from uncharged to charged.
[0042] Optionally, the device further comprises:
[0043] The first display module is used to display prompt information in the game screen; the prompt information is used to prompt the game player to charge the terminal device or the peripheral device.
[0044] Optionally, the generating module includes:
[0045] A first determining submodule, configured to determine a charging time of the terminal device or the peripheral device if it is detected that the terminal device or the peripheral device is in a charging state;
[0046] The first generating submodule is used to generate the corresponding game instruction when the charging time is greater than a preset charging time threshold.
[0047] Optionally, the device further comprises:
[0048] The second display module is used to display a charging progress function control in the game screen if it is detected that the terminal device or the peripheral device is in a charging state; the charging progress function control is used to reflect the charging progress of the terminal device or the peripheral device.
[0049] Optionally, the control module includes:
[0050] The first control submodule is used to control the virtual object to release a discharge skill in response to the game instruction.
[0051] Optionally, the control module includes:
[0052] The second control submodule is used to control the virtual object to switch from an off state to a lit state in response to the game instruction.
[0053] Optionally, the control module includes:
[0054] The third control submodule is used to control the display form of the virtual object to switch to a lightning form in response to the game instruction.
[0055] Optionally, the control module includes:
[0056] The fourth control submodule is used to control the virtual object to restore health value in response to the game instruction.
[0057] Optionally, the generating module includes:
[0058] A second determination submodule, configured to determine a charging type of the terminal device or the peripheral device if it is detected that the terminal device or the peripheral device is in a charging state;
[0059] A second generating submodule, configured to generate the game instruction corresponding to the wireless charging type when the charging type is the wireless charging type;
[0060] The third generation submodule is used to generate the game instructions corresponding to the wired charging type when the charging type is the wired charging type.
[0061] Optionally, the control module includes:
[0062] A display submodule, configured to display a virtual charging base in the game screen in response to the game instruction corresponding to the wireless charging type;
[0063] The fifth control submodule is used to control the virtual object to appear in a state of restoring health value on the virtual charging base.
[0064] Optionally, the device further comprises:
[0065] The update module is used to receive game instruction configuration information input by a game player or a developer, and update the game instructions generated when the terminal device or the peripheral device is in a charging state according to the game instruction configuration information.
[0066] An embodiment of the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the game instruction input method as described above when executed by the processor.
[0067] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the game instruction input method described above are implemented.
[0068] The embodiments of the present invention include the following advantages:
[0069] In an embodiment of the present invention, when it is detected that the terminal device or the peripheral device connected to the terminal device is in a charging state, a corresponding game instruction can be generated, and the virtual object in the game can be controlled to perform a corresponding game action or switch to a corresponding game state according to the game instruction. By adopting the above method, charging of the terminal device or the peripheral device is used as a game instruction input method, enriching the instruction interaction method of the player in the game, and by designing a variety of game play methods based on this interaction method, the fun of the game can be greatly increased. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 is a flowchart of a method for inputting game instructions provided by an embodiment of the present invention;
[0071] Figure 2 is a flowchart of another method for inputting game instructions provided by an embodiment of the present invention;
[0072] Figure 3 is a schematic diagram of charging prompt information according to an embodiment of the present invention;
[0073] Figure 4 is a schematic diagram of another charging prompt information according to an embodiment of the present invention;
[0074] Figure 5 is a schematic diagram of a charging progress function control according to an embodiment of the present invention;
[0075] Figure 6 This is a schematic diagram of a game interface after charging is completed according to an embodiment of the present invention;
[0076] Figure 7 It is a structural block diagram of a game instruction input device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.
[0078] At present, terminal devices such as mobile phones, tablet computers, game consoles, PDAs, etc. input game commands in games through touch screens. In addition to touch screens and built-in sensors, other interactive application methods are relatively rare. Using screen virtual controls as the interactive method of game input commands is too conventional, the interactive dimension is single, and the interaction between players lacks fun.
[0079] In addition, there is also an interactive method of inputting game commands through peripheral devices such as handles, fitness rings, keyboards, mice, VR controllers, etc. On the one hand, the purchase cost of peripheral devices is high, and on the other hand, the application scenarios of peripheral devices are relatively single. The input game commands are limited by the number of buttons of the peripheral devices. There is also a problem of being too functional and not interesting enough.
[0080] One of the core concepts of the embodiments of the present invention is that when it is detected that the terminal device or the peripheral device connected to the terminal device is in a charging state, a corresponding game instruction can be generated, and the virtual object in the game can be controlled to perform the corresponding game action or switch to the corresponding game state according to the game instruction. By adopting the above method, charging of the terminal device or the charging of the peripheral device is used as a game instruction input method, enriching the instruction interaction method of the player in the game, and by designing a variety of game play methods based on this interaction method, the fun of the game can be greatly increased.
[0081] Reference Figure 1 , shows a flowchart of the steps of a method for inputting game instructions provided by an embodiment of the present invention, which is applied to a terminal device, the terminal device displays a game screen of a currently running game application, and the game screen displays a virtual object, which may specifically include the following steps:
[0082] Step 101 , detecting whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless method is in a charging state.
[0083] In the embodiment of the present invention, the terminal device may be a computer, a mobile phone, a tablet computer, a game console, a PDA or other electronic devices. A game application is installed on the terminal device. The types of game applications may include level-breaking games, decryption games, role-playing games, competitive games, etc.
[0084] A virtual object is displayed in the game screen of the currently running game application. It should be noted that the game screen can be displayed in the entire area of the terminal device screen or in a partial area of the screen, and the embodiment of the present invention does not impose any specific restrictions on this. The virtual object can be a role-playing character in a role-playing game, or a key prop in a decryption game, etc.
[0085] In an optional embodiment, the terminal device can be connected to the peripheral device via wired or wireless means, so that game commands can be input through the peripheral device such as a handle, fitness ring, keyboard, mouse, VR controller, steering wheel, etc. to control the game content in the corresponding game application of the terminal device.
[0086] In an embodiment of the present invention, it is possible to detect whether a terminal device or a peripheral device connected to the terminal device is in a charging state. In one example, a power management module in the terminal device may detect whether a real-time current input from an external charger is received, and determine the charging state of the terminal device according to the real-time current. In another example, a power management module in a peripheral device connected to the terminal device may detect whether a real-time current input from an external charger is received, determine the charging state of the peripheral device according to the real-time current, and send the charging state of the peripheral device to the terminal device.
[0087] Step 102: If it is detected that the terminal device or the peripheral device is in a charging state, a corresponding game instruction is generated.
[0088] In the embodiment of the present invention, the terminal device being in a charging state or the peripheral device connected to the terminal device being in a charging state is used as a game instruction input method. When the terminal device or the peripheral device is detected to be in a charging state, the corresponding game instruction is triggered. In addition, it can be further designed that the corresponding game instruction is generated only when the charging state meets the preset conditions. The charging state can include the charging time or the newly added charging power. There can be many forms of the charging state for triggering the generation of game instructions. Those skilled in the art can set it according to the game requirements. This is not specifically limited by the embodiment of the present invention.
[0089] Step 103, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state.
[0090] Based on the game instructions generated when the terminal device is in a charging state or the peripheral device is in a charging state, the virtual objects in the game application can be controlled to perform corresponding virtual actions or switch to corresponding virtual states. Since the game instructions of the present application are generated based on connecting the terminal device or the peripheral device to the charger for charging, the corresponding virtual actions or virtual states can be set to virtual actions or virtual states associated with the charging scene, so that the display effect of the virtual objects in the game screen is connected to the real world, thereby improving the fun of the game.
[0091] In summary, in the embodiment of the present invention, when it is detected that the terminal device or the peripheral device connected to the terminal device is in a charging state, a corresponding game instruction can be generated, and the virtual object in the game can be controlled to perform a corresponding game action or switch to a corresponding game state according to the game instruction. By adopting the above method, charging of the terminal device or the peripheral device is used as a game instruction input method, enriching the instruction interaction method of the player in the game, and by designing a variety of game play methods based on this interaction method, the fun of the game can be greatly increased.
[0092] Reference Figure 2 , shows a flowchart of another method for inputting game commands provided by an embodiment of the present invention, which is applied to a terminal device, the terminal device displays a game screen of a currently running game application, and the game screen displays a virtual object, which may specifically include the following steps:
[0093] Step 201 , detecting whether the terminal device or the peripheral device is in a switching state from uncharged to charged.
[0094] In the embodiment of the present invention, detecting whether the terminal device or the peripheral device connected to the terminal device is in a charging state may be detecting whether the terminal device or the peripheral device connected to the terminal device is in a switching state from not being charged to being charged. If the switching state exists, it can be determined that the terminal device or the peripheral device is in a charging state, otherwise, the terminal device or the peripheral device is not in a charging state.
[0095] In an optional embodiment of the present invention, before executing the step of detecting whether the terminal device or a peripheral device connected to the terminal device in a wired or wireless manner is in a charging state, the following steps may also be executed:
[0096] Display prompt information in the game screen.
[0097] The prompt information is used to prompt the game player to charge the terminal device or the peripheral device. Specifically, the prompt information may be used to prompt the game player to connect the terminal device or the peripheral device to the charger.
[0098] In one example, when a game is being played, a player performs a game operation. If the game operation is triggered at a response area of a virtual key, a corresponding game instruction can be generated based on the virtual key, wherein the response area of the virtual key can be the virtual key itself, or a touch area that covers the virtual key and is larger than the touch area of the virtual key.
[0099] If a specific game operation is detected, a corresponding charging prompt instruction may be generated. In response to the charging prompt instruction, a prompt message may be displayed in the game screen of the terminal device to prompt the game player to charge the terminal device or a peripheral device connected to the terminal device. That is, in an embodiment of the present invention, after the player triggers a specific game operation, a message prompting the player to connect the terminal device or the peripheral device to the charger is displayed in the game screen.
[0100] Reference Figure 3As shown, it is a schematic diagram of a charging prompt information of an embodiment of the present invention. Due to its particularity, the interactive form of charging a terminal device or a peripheral device as a method of inputting game commands is not suitable for frequent game command input in design, but is only to make the game more playable and interesting. Therefore, the timing of displaying the prompt information can be the timing of defeating the boss at the end of the game plot, so as to increase the player's sense of game immersion and fun.
[0101] In an optional example, in the last game level, in response to the charging prompt instruction, a charging prompt message is displayed in the game screen. There are many ways to generate the charging prompt instruction, which may be generated after the game player performs a specific game operation. The specific game operation may include the game player choosing to release a certain skill, or selecting a display effect in a certain scene, etc. The operation mode of the specific game operation may include a click operation, a touch operation, a sliding operation, etc., and the embodiment of the present invention does not impose specific restrictions on this.
[0102] Reference Figure 4 As shown, it is a schematic diagram of another charging prompt information of an embodiment of the present invention. When the player selects the controlled character to release a certain skill in the game, the corresponding charging prompt information is displayed. For example, if the player selects the two-faced Buddha to release the secret skill to defeat the sleeping fat, the prompt information of "Connect the mobile phone charger, charge the two-faced Buddha, release the secret skill to defeat the sleeping fat" is displayed on the game screen. The prompt information can also be used to prompt the game player to complete the game effect that can be achieved after the action of charging the terminal device or peripheral device, and give sufficient prompts before the player performs specific operations, which can enhance the game experience of the player in the process of interacting with the game user interface.
[0103] Step 202: If it is detected that the terminal device or the peripheral device is in a charging state, a corresponding game instruction is generated.
[0104] In one example of an embodiment of the present invention, detecting the charging state of a terminal device or a peripheral device may be achieved by monitoring the real-time current on a power line of a USB interface at the insertion end of the terminal device or the peripheral device. In addition, those skilled in the art may also use other detection methods to detect whether a terminal device or a peripheral device is in a charging state, and this embodiment of the present invention does not impose any specific limitation on this.
[0105] In an embodiment of the present invention, the terminal device or the peripheral device being in a charging state is used as a game instruction input method. When it is detected that the terminal device or the peripheral device is in a charging state, the corresponding game instruction is triggered to be generated.
[0106] For step 202, the following sub-steps may be performed:
[0107] Sub-step S11, if it is detected that the terminal device or the peripheral device is in a charging state, determining the charging time of the terminal device or the peripheral device.
[0108] Sub-step S12, when the charging time is greater than a preset charging time threshold, generating the corresponding game instruction.
[0109] In an embodiment of the present invention, after determining that the terminal device or the peripheral device is in a charging state, the continuous charging time of the terminal device or the peripheral device can be further monitored, and the corresponding game instructions are generated only when the charging time meets the preset conditions.
[0110] In an optional example of an embodiment of the present invention, if it is detected that the terminal device or the peripheral device is in a charging state, a charging progress function control is displayed in the game screen.
[0111] Among them, the charging progress function control is used to reflect the charging progress of the terminal device or peripheral device.
[0112] Reference Figure 5 As shown, it is a schematic diagram of a charging progress function control of an embodiment of the present invention. When it is determined that the terminal device or the peripheral device connected to the terminal device is in a charging state, a charging progress bar reflecting the charging progress can be displayed in the game screen. When the charging progress bar is full, the corresponding skill can be released. Among them, the charging progress bar does not represent the power bar of the terminal device or the peripheral device.
[0113] The charging progress reflects the time that the terminal device or peripheral device continues to charge. The charging progress is positively correlated with the charging time, regardless of the actual amount of power added. The charging progress will be affected by the model of the terminal device or peripheral device. It should be noted that using the charging time instead of the charging power as the condition for generating game instructions can enable the terminal device or peripheral device to output game instructions even when the power is fully charged.
[0114] In an embodiment of the present invention, a charging time threshold can be set in advance. In order not to affect the player's gaming experience, the charging time threshold can be a shorter time. When the charging time of the terminal device or the peripheral device is greater than the preset charging time threshold, the condition for generating a game instruction is met, and the generation of the game instruction can be triggered.
[0115] Reference Figure 6 FIG. 1 is a schematic diagram of a charging completed game interface according to an embodiment of the present invention. When the charging time is greater than a preset charging time threshold, the charging progress bar will display a charging completion status, and the game player can know that the game command input operation is completed.
[0116] The above provides an interactive method that uses charging time as a condition for generating game instructions. In an optional embodiment, corresponding game instructions can also be generated according to the charging type of the terminal device or the peripheral device. That is, for step 202, the following sub-steps can be performed:
[0117] Sub-step S21, if it is detected that the terminal device or the peripheral device is in a charging state, determining the charging type of the terminal device or the peripheral device.
[0118] Sub-step S22, when the charging type is a wireless charging type, generating the game instruction corresponding to the wireless charging type.
[0119] Sub-step S23, when the charging type is a wired charging type, generating the game instruction corresponding to the wired charging type.
[0120] In the embodiment of the present invention, it can be identified whether the terminal device or the peripheral device is in a wired charging state or a wireless charging state, and different types of game instructions can be generated accordingly. The instruction information of the game instructions corresponding to the wireless charging type is different from the instruction information of the game instructions corresponding to the wired charging type. For different instruction information, those skilled in the art can make a variety of designs, and the embodiment of the present invention does not impose specific restrictions.
[0121] Step 203, in response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state.
[0122] Different game types may correspond to different response methods for game instructions, and the response method may be set by the developer according to the game planning requirements. Preferably, the following response methods may be specifically included.
[0123] For step 203, the following sub-steps may be performed:
[0124] Sub-step S31, in response to the game instruction, controlling the virtual object to release a discharge skill.
[0125] In an optional example, the virtual object may be a character controlled by a player, and after receiving a game instruction, the virtual object may be controlled to release a discharge skill. Figure 6 As shown, the character "Pikachu" controlled by the player releases the "Hundred Thousand Volts" skill.
[0126] Sub-step S32, in response to the game instruction, controlling the virtual object to switch from an off state to a lit state.
[0127] In an optional example, the virtual object may be a key prop, and after receiving a game command, the virtual object may be controlled to switch display states, such as switching from an off state to a lit state. For example, in a decryption game, when a player enters a dark environment, he needs to turn on the light to see the objects in the game scene clearly to operate. At this time, the game system will prompt the player to connect the charger and turn on the light as part of cracking the game level.
[0128] Sub-step S33, in response to the game instruction, controlling the display form of the virtual object to switch to a lightning form.
[0129] In an optional example, a virtual object can have multiple display forms. After receiving a game instruction, the virtual object can be controlled to switch the display form, such as switching to a lightning form. In current RPG games, most of the display forms of game characters are switched by clicking a virtual button on the screen. Switching the display form of a character by adding an interactive input method for charging can enrich the fun of the game. For example, the initial display form of the character controlled by the player is a melee warrior form. In a specific game plot, after the terminal device or peripheral device is connected to a power source, by determining whether the terminal device or peripheral device is in a charging state, the character controlled by the player is switched to a long-range attacking lightning mage, thereby enriching the fun and playability of the game.
[0130] Sub-step S34, in response to the game instruction, controlling the virtual object to restore health value.
[0131] In an optional example, the virtual object has health points, and after receiving a game instruction, the health points of the virtual object can be controlled to be restored. For example, in a battle royale game, virtual actions such as opening a first aid kit and taking painkillers can be performed to restore the health points of the character controlled by the player.
[0132] For the game instructions generated according to the charging type, the following sub-steps may be performed for step 203:
[0133] In response to the game instruction corresponding to the wireless charging type, a virtual charging base is displayed in the game screen; and the virtual object is controlled to appear in a state of restoring health on the virtual charging base.
[0134] In an optional example, the game application has a configured wireless charger. After receiving a game instruction corresponding to the wireless charging type, it can be determined that the game player uses the configured wireless charger to charge the terminal device or peripheral device, that is, a virtual charging base corresponding to the configured wireless charger can be displayed in the current game screen, and the virtual object can be controlled to appear in a state of restoring health on the virtual charging base.
[0135] For example, in a mecha-themed game, the game manufacturer can launch a wireless charger with the same style as the charging base in the game. When the player is wirelessly charging, the in-game character can sit on the charging base to recharge and restore health, making the entire game process more interesting and more immersive. If it is determined to be wired charging, this operation does not exist. Game manufacturers can also combine NFC technology to limit the use of only this charger to achieve the game effect.
[0136] In an optional embodiment of the present invention, the game instructions generated when the terminal device or the peripheral device is in a charging state can also be customized, and the following steps can be specifically performed:
[0137] Receive game instruction configuration information input by a game player or a developer, and update the game instructions generated when the terminal device or the peripheral device is in a charging state according to the game instruction configuration information.
[0138] In an embodiment of the present invention, a player or developer of a game application can configure the game instructions generated when the terminal device or peripheral device is in a charging state. In one example, the terminal device has a configuration interface, which displays multiple configurable game instructions that can be executed when the terminal device or peripheral device is in a charging state. For example, the first game instruction corresponds to the instruction information for executing the release of the lightning skill, and the second game instruction corresponds to the instruction information for executing the switch to the lightning state. The game player can choose from them. After the selection is completed, the game instructions generated when the terminal device or peripheral device is in a charging state can be updated.
[0139] In summary, in an embodiment of the present invention, when it is detected that a terminal device or a peripheral device connected to the terminal device is in a charging state, a corresponding game instruction can be generated, and the virtual object in the game can be controlled to perform a corresponding game action or switch to a corresponding game state according to the game instruction. By adopting the above method, charging of the terminal device or charging of the peripheral device is used as a game instruction input method, enriching the instruction interaction method of the player in the game, and by designing a variety of game play methods based on this interaction method, the fun of the game can be greatly increased. In addition, charging is an essential attribute of the terminal device or the peripheral device, and the operation is quick and convenient, and the cost is low. The present application provides a multi-dimensional interaction method, and designs that the player can control the character to release skills by charging when the player is fighting; the in-game mechanism can be unlocked by charging in a puzzle game; and the character form controlled by the player can be switched in a stand-alone game by charging, etc., which greatly increases the playability and fun of the game.
[0140] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0141] Reference Figure 7 , shows a structural block diagram of a game instruction input device provided by an embodiment of the present invention, which is applied to a terminal device, the terminal device displays a game screen of a currently running game application, the game screen displays a virtual object, and specifically may include the following modules:
[0142] A detection module 701 is used to detect whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless method is in a charging state;
[0143] A generating module 702, configured to generate a corresponding game instruction if it is detected that the terminal device or the peripheral device is in a charging state;
[0144] The control module 703 is used to control the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction.
[0145] In an embodiment of the present invention, the detection module includes:
[0146] The detection submodule is used to detect whether the terminal device or the peripheral device is in a switching state from uncharged to charged.
[0147] In an embodiment of the present invention, the device further includes:
[0148] The first display module is used to display prompt information in the game screen; the prompt information is used to prompt the game player to charge the terminal device or the peripheral device.
[0149] In an embodiment of the present invention, the generating module includes:
[0150] A first determining submodule, configured to determine a charging time of the terminal device or the peripheral device if it is detected that the terminal device or the peripheral device is in a charging state;
[0151] The first generating submodule is used to generate the corresponding game instruction when the charging time is greater than a preset charging time threshold.
[0152] In an embodiment of the present invention, the device further includes:
[0153] The second display module is used to display a charging progress function control in the game screen if it is detected that the terminal device or the peripheral device is in a charging state; the charging progress function control is used to reflect the charging progress of the terminal device or the peripheral device.
[0154] In an embodiment of the present invention, the control module includes:
[0155] The first control submodule is used to control the virtual object to release a discharge skill in response to the game instruction.
[0156] In an embodiment of the present invention, the control module includes:
[0157] The second control submodule is used to control the virtual object to switch from an off state to a lit state in response to the game instruction.
[0158] In an embodiment of the present invention, the control module includes:
[0159] The third control submodule is used to control the display form of the virtual object to switch to a lightning form in response to the game instruction.
[0160] In an embodiment of the present invention, the control module includes:
[0161] The fourth control submodule is used to control the virtual object to restore health value in response to the game instruction.
[0162] In an embodiment of the present invention, the generating module includes:
[0163] A second determination submodule, configured to determine a charging type of the terminal device or the peripheral device if it is detected that the terminal device or the peripheral device is in a charging state;
[0164] A second generating submodule, configured to generate the game instruction corresponding to the wireless charging type when the charging type is the wireless charging type;
[0165] The third generation submodule is used to generate the game instructions corresponding to the wired charging type when the charging type is the wired charging type.
[0166] In an embodiment of the present invention, the control module includes:
[0167] A display submodule, configured to display a virtual charging base in the game screen in response to the game instruction corresponding to the wireless charging type;
[0168] The fifth control submodule is used to control the virtual object to appear in a state of restoring health value on the virtual charging base.
[0169] In an embodiment of the present invention, the device further includes:
[0170] The update module is used to receive game instruction configuration information input by a game player or a developer, and update the game instructions generated when the terminal device or the peripheral device is in a charging state according to the game instruction configuration information.
[0171] In summary, in the embodiment of the present invention, when it is detected that the terminal device or the peripheral device connected to the terminal device is in a charging state, a corresponding game instruction can be generated, and the virtual object in the game can be controlled to perform a corresponding game action or switch to a corresponding game state according to the game instruction. By adopting the above method, charging of the terminal device or the peripheral device is used as a game instruction input method, enriching the instruction interaction method of the player in the game, and by designing a variety of game play methods based on this interaction method, the fun of the game can be greatly increased.
[0172] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0173] An embodiment of the present invention also provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned game instruction input method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0174] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned game instruction input method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0175] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0176] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0177] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0178] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0179] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0180] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0181] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0182] The game command input method and a game command input device, an electronic device and a computer-readable storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for inputting game instructions, characterized in that: Applied to a terminal device, the terminal device displays a game screen of a currently running game application, the game screen displays a virtual object, and the method includes: Detecting whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless method is in a charging state; If it is detected that the terminal device or the peripheral device is in a charging state, a corresponding game instruction is generated; In response to the game instruction, controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state; Wherein, the detecting whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless manner is in a charging state includes: Detecting whether the terminal device or the peripheral device is in a switching state from being uncharged to being charged; Wherein, if it is detected that the terminal device or the peripheral device is in a charging state, generating a corresponding game instruction includes: If it is detected that the terminal device or the peripheral device is in a charging state, determining the charging time of the terminal device or the peripheral device; When the charging time is greater than a preset charging time threshold, the corresponding game instruction is generated.
2. The method according to claim 1, characterized in that Before detecting whether the terminal device or a peripheral device connected to the terminal device in a wired or wireless manner is in a charging state, the method further includes: A prompt message is displayed in the game screen; the prompt message is used to prompt the game player to charge the terminal device or the peripheral device.
3. The method according to claim 1, characterized in that Also includes: If it is detected that the terminal device or the peripheral device is in a charging state, a charging progress function control is displayed in the game screen; the charging progress function control is used to reflect the charging progress of the terminal device or the peripheral device.
4. The method according to claim 1, characterized in that The step of controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction includes: In response to the game instruction, the virtual object is controlled to release a discharge skill.
5. The method according to claim 1, characterized in that The step of controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction includes: In response to the game instruction, the virtual object is controlled to switch from an off state to a lit state.
6. The method according to claim 1, characterized in that The step of controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction includes: In response to the game instruction, the display form of the virtual object is controlled to switch to a lightning form.
7. The method according to claim 1, characterized in that The step of controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction includes: In response to the game instruction, the virtual object is controlled to restore health value.
8. The method according to claim 1, characterized in that If it is detected that the terminal device or the peripheral device is in a charging state, generating a corresponding game instruction includes: If it is detected that the terminal device or the peripheral device is in a charging state, determining the charging type of the terminal device or the peripheral device; In the case where the charging type is a wireless charging type, generating the game instruction corresponding to the wireless charging type; In a case where the charging type is a wired charging type, the game instruction corresponding to the wired charging type is generated.
9. The method according to claim 8, characterized in that The step of controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction includes: In response to the game instruction corresponding to the wireless charging type, displaying a virtual charging base in the game screen; The virtual object is controlled to appear in a state of restoring health value on the virtual charging base.
10. The method according to claim 1, characterized in that Also includes: Receive game instruction configuration information input by a game player or a developer, and update the game instructions generated when the terminal device or the peripheral device is in a charging state according to the game instruction configuration information.
11. A game command input device, characterized in that: Applied to a terminal device, the terminal device displays a game screen of a currently running game application, the game screen displays a virtual object, and the device includes: A detection module, used to detect whether the terminal device or a peripheral device connected to the terminal device via a wired or wireless method is in a charging state; A generating module, configured to generate corresponding game instructions if it is detected that the terminal device or the peripheral device is in a charging state; A control module, for controlling the virtual object to perform a corresponding virtual action or switch to a corresponding virtual state in response to the game instruction; Wherein, the detection module includes: A detection submodule, used for detecting whether the terminal device or the peripheral device is in a switching state from uncharged to charged; Wherein, the generating module comprises: A first determining submodule, configured to determine a charging time of the terminal device or the peripheral device if it is detected that the terminal device or the peripheral device is in a charging state; The first generating submodule is used to generate the corresponding game instruction when the charging time is greater than a preset charging time threshold.
12. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a game instruction input method as described in any one of claims 1-10 are implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a game instruction input method as claimed in any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Storage and charging device for game pieces
CN106794378A
Game device and game system
CN107376345A