Game anti-addiction method and device, electronic equipment and computer readable storage medium

By obtaining user behavior parameters in real time in the game and detecting dangerous behaviors, and performing corresponding anti-addiction operations, the problem that existing systems cannot cope with potential dangerous behaviors in the game is solved, and user safety and gaming experience are improved.

CN119565167APending Publication Date: 2025-03-07BEIJING PIXEL SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411633807.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The existing game anti-addiction system cannot effectively solve the potential dangerous problems caused by players during the game.

Method used

By obtaining the user's behavior parameters during the game running, if preset dangerous behavior is detected, the corresponding game anti-addiction operation is performed, including outputting prompt information or saving game progress and exiting the game.

Benefits of technology

It effectively avoids dangerous behaviors caused by users' addiction to games, and improves users' security and gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119565167A_ABST
    Figure CN119565167A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a game anti-addiction method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of computers. Under the condition that the game runs, behavior parameters of a current user are obtained; and if the behavior parameter represents that the user behavior of the current user is a preset dangerous behavior, executing a game anti-addiction operation so as to avoid the situation of danger when the user is addicted to the game.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, electronic device, and computer-readable storage medium for preventing game addiction. Background Art

[0002] At present, all online games need to be connected to an anti-addiction system to prevent players from becoming addicted to the game by limiting their online time.

[0003] However, this method can only limit the online gaming time of players and cannot solve the problem that players may be in danger due to some behaviors during the game. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a game addiction prevention method, device, electronic device and computer-readable storage medium to solve the problem that users may be in danger during the game.

[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, the present invention provides a method for preventing game addiction, the method comprising:

[0007] When the game is running, obtain the behavior parameters of the current user;

[0008] If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, a game addiction prevention operation is performed.

[0009] In an optional implementation manner, obtaining the behavior parameters of the current user includes:

[0010] Call the map navigation interface;

[0011] The behavior parameters of the current user are obtained from the map navigation interface.

[0012] In an optional implementation manner, obtaining the behavior parameters of the current user while the game is running includes:

[0013] When the game is running, the behavior parameters are obtained once every preset time period;

[0014] If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, then executing a game addiction prevention operation includes:

[0015] If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, the target game anti-addiction operation that should be executed is determined according to the number of consecutive occurrences of the dangerous behavior, and the target game anti-addiction operation is executed.

[0016] In an optional implementation, the step of determining the target game anti-addiction operation to be currently executed according to the number of consecutive occurrences of the dangerous behavior includes:

[0017] If the number of consecutive occurrences of the dangerous behavior does not reach a preset number, determining that the target game anti-addiction operation is to output a prompt message;

[0018] If the number of consecutive occurrences of the dangerous behavior reaches a preset number, the game progress of the game is saved and the game is exited.

[0019] In a second aspect, the present invention provides a game addiction prevention device, the device comprising:

[0020] The acquisition module is used to obtain the behavior parameters of the current user when the game is running;

[0021] The processing module is used to execute a game addiction prevention operation if the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior.

[0022] In an optional implementation, the acquisition module is further used to call a map navigation interface; and acquire the behavior parameters of the current user from the map navigation interface.

[0023] In an optional implementation manner, the acquisition module is further used to acquire the behavior parameter once every preset time period when the game is running;

[0024] The processing module is also used to determine the target game anti-addiction operation that should be executed currently according to the number of consecutive occurrences of the dangerous behavior if the behavior parameter characterizes that the user behavior of the current user is a preset dangerous behavior, and execute the target game anti-addiction operation.

[0025] In an optional embodiment, the processing module is also used to determine that the anti-addiction operation of the target game is to output prompt information if the number of consecutive occurrences of the dangerous behavior does not reach a preset number of times; if the number of consecutive occurrences of the dangerous behavior reaches a preset number of times, save the game progress of the game and exit the game.

[0026] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the method described in any one of the aforementioned embodiments.

[0027] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any one of the aforementioned embodiments.

[0028] The game addiction prevention method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application can determine whether the user behavior is dangerous behavior by analyzing the user's behavior parameters during the game, so as to promptly perform game addiction prevention operations when the user performs dangerous behavior, so as to avoid dangerous situations when the user is addicted to the game.

[0029] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A block diagram of an electronic device provided by an embodiment of the present application is shown;

[0032] Figure 2 A schematic diagram of a process flow of a method for preventing game addiction provided by an embodiment of the present application is shown;

[0033] Figure 3 Another flowchart of the game addiction prevention method provided in an embodiment of the present application is shown;

[0034] Figure 4 A functional module diagram of a game addiction prevention device provided in an embodiment of the present application is shown.

[0035] Icon: 100 - memory; 110 - processor; 120 - communication module; 200 - acquisition module; 210 - processing module. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0037] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0038] It should be noted that relational terms such as "first" and "second" are used only 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", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0039] Figure 1 For a block diagram of an electronic device provided in an embodiment of the present application, see Figure 1 The electronic device includes a memory 100, a processor 110 and a communication module 120. The memory 100, the processor 110 and the communication module 120 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0040] The memory 100 is used to store computer programs or data that can be executed by the processor. The memory 100 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0041] The processor 110 is used to read / write data or computer programs stored in the memory, and execute the computer program to implement the game addiction prevention method provided in the embodiment of the present application.

[0042] The communication module 120 is used to establish a communication connection between the electronic device and other communication terminals through a network, and to send and receive data through the network.

[0043] Optionally, the electronic device may be a mobile terminal, such as a mobile phone, a tablet computer, etc.

[0044] Optionally, the electronic device may be provided with a game application and a map application.

[0045] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device. The electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0046] Next, the above Figure 1 The electronic device in the example is the execution subject, and the game addiction prevention method provided in the embodiment of the present application is exemplarily introduced in combination with the flow chart.

[0047] Specifically, Figure 2 A flowchart of the game addiction prevention method provided in the embodiment of the present application is shown in FIG. Figure 2 , the method comprising:

[0048] Step S20, when the game is running, obtain the behavior parameters of the current user.

[0049] It should be noted that the behavior parameter refers to the behavior parameter of the user's own behavior, not the character behavior in the game.

[0050] Step S21: If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, a game addiction prevention operation is performed.

[0051] Optionally, the dangerous behavior refers to a behavior that may lead to danger if the user is addicted to the game while performing the behavior.

[0052] In a possible implementation, since the user may be in danger if he lowers his head to play games while walking, the preset dangerous behavior may be walking. In this embodiment, the dangerous behavior may be set by the staff according to actual needs.

[0053] Optionally, the game anti-addiction operation can be set according to the actual application situation, such as popping up a prompt box and / or exiting the game, etc.

[0054] The game addiction prevention method provided in the embodiment of the present application can be used by an electronic device to determine whether the user's behavior is dangerous by analyzing the user's behavior parameters during the game, thereby promptly performing game addiction prevention operations when the user performs dangerous behavior to avoid dangerous situations when the user is addicted to the game.

[0055] Optionally, the electronic device may obtain the user's behavior parameters by calling some interfaces capable of recording the user's behavior, and thereby determine the user's behavior according to the behavior parameters.

[0056] In a possible implementation, if the dangerous behavior refers to walking, the interface may be a map navigation interface, and the electronic device may obtain the behavior parameters of the current user from the map navigation interface.

[0057] In this embodiment, a third-party map navigation library can be loaded when the game is started, and then the user's behavior parameters can be obtained by accessing the map navigation interface that records the user's behavior in the map navigation library.

[0058] Optionally, the map navigation library may be a navigation library of a map software previously downloaded in the mobile phone. In this embodiment, the specific form of the behavior parameter is related to the specific map navigation library.

[0059] In a possible implementation, the behavior parameter may be the number of steps taken by the user or the behavior status.

[0060] It can be understood that if the behavior parameter is the number of user steps, the electronic device can determine that the user behavior of the current user is walking if the number of user steps continues to increase; if the behavior parameter is the behavior state, the electronic device can determine that the user behavior is walking when the behavior state is a walking state.

[0061] Optionally, in addition to the map navigation interface, the interface may also be a pedometer interface, a sports health interface, and the like.

[0062] In this embodiment, if the interface is a pedometer interface, the behavior parameter may be the number of steps of the user; if the interface is a sports health interface, the behavior parameter may be the behavior status.

[0063] Optionally, in order to ensure the safety of the user, the electronic device may detect at regular intervals whether the user is performing any dangerous behavior.

[0064] Specifically, in Figure 2 On the basis of Figure 3 For another flowchart of the game addiction prevention method provided in the embodiment of the present application, please refer to Figure 3 , the above step S20 can also be implemented by the following steps:

[0065] Step S20-1, when the game is running, obtain the behavior parameters every preset time period.

[0066] Optionally, the preset duration can be set according to actual application conditions, for example, to one minute.

[0067] In this embodiment, the electronic device can monitor the game duration in real time. If the time interval between the current moment and the last moment when the behavior parameters were obtained reaches a preset duration, that is, the game duration after the behavior parameters were last obtained reaches a preset duration, the behavior parameters are obtained again to determine whether the user behavior is a preset dangerous behavior.

[0068] Furthermore, the above step S21 can also be implemented by the following steps:

[0069] Step S21-1, if the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, the target game anti-addiction operation that should be executed is determined according to the number of consecutive occurrences of the dangerous behavior, and the target game anti-addiction operation is executed.

[0070] Optionally, a frequency counter may be set to record the number of consecutive occurrences of the dangerous behavior.

[0071] In one possible implementation, the electronic device may set the number of consecutive occurrences to 0 when it determines that the user behavior of the current user is not a preset dangerous behavior. When it determines that the user behavior of the current user is a preset dangerous behavior, it may add one to the number of consecutive occurrences through a counter, and then determine the target game anti-addiction operation that should be performed based on the number of consecutive occurrences.

[0072] In one possible implementation, multiple game anti-addiction operation classes can be set in the electronic device. It can be understood that each game anti-addiction operation class corresponds to a game anti-addiction operation. On this basis, the electronic device can perform the target game anti-addiction operation by calling the game anti-addiction operation class after determining the corresponding target game anti-addiction operation.

[0073] Optionally, in order to maximize the user's gaming experience while ensuring the user's safety, the electronic device can, if the dangerous behavior occurs a small number of times in a row, not affect the normal progress of the game, and only provide anti-addiction reminders to the user, and close the game if the dangerous behavior occurs multiple times in a row.

[0074] Specifically, if the number of consecutive occurrences of dangerous behaviors does not reach a preset number, the electronic device can determine the target game anti-addiction operation to output prompt information. If the number of consecutive occurrences of dangerous behaviors reaches a preset number, the electronic device can save the game progress and exit the game.

[0075] Optionally, the preset number of times can be set according to actual application conditions. In a possible implementation, the preset number of times can be 3 times.

[0076] Optionally, the prompt information may be a vibration of the mobile phone, or a security pop-up window, etc., to remind the user to pay attention to safety, actively close the game before performing the behavior, and then continue the game after stopping the behavior.

[0077] Taking walking as an example of dangerous behavior, in one example, the electronic device can load a map navigation library after starting the game APP, and create a game anti-addiction class in the main loop of the game, and implement the game anti-addiction method provided in the embodiment of the present application by executing the game anti-addiction class.

[0078] In this example, the game anti-addiction class can be represented as follows:

[0079]

[0080]

[0081]

[0082] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a game addiction prevention device is given below. Optionally, the game addiction prevention device can adopt the above Figure 1 For further information, please refer to Figure 4 , Figure 4 A functional module diagram of a game anti-addiction device provided in an embodiment of the present application. It should be noted that the basic principle and technical effects of the game anti-addiction device provided in this embodiment are the same as those in the above embodiment. For the sake of brief description, for parts not mentioned in this embodiment, please refer to the corresponding contents in the above embodiment. The game anti-addiction device includes: an acquisition module 200 and a processing module 210.

[0083] The acquisition module 200 is used to acquire the behavior parameters of the current user when the game is running.

[0084] It can be understood that the acquisition module 200 can also be used to execute the above step S20.

[0085] The processing module 210 is used to execute a game addiction prevention operation if the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior.

[0086] It can be understood that the processing module 210 can also be used to execute the above step S21.

[0087] Optionally, the acquisition module 200 is further used to call a map navigation interface; and acquire the behavior parameters of the current user from the map navigation interface.

[0088] Optionally, the acquisition module 200 is further used to acquire the behavior parameters once every preset time period when the game is running.

[0089] It can be understood that the acquisition module 200 can also be used to execute the above step S20-1.

[0090] Optionally, the processing module 210 is also used to determine the target game anti-addiction operation that should be performed according to the number of consecutive occurrences of the dangerous behavior if the behavior parameter characterizes that the user behavior of the current user is a preset dangerous behavior, and perform the target game anti-addiction operation.

[0091] It can be understood that the processing module 210 can also be used to execute the above step S21-1.

[0092] Optionally, the processing module 210 is also used to determine the anti-addiction operation of the target game as outputting prompt information if the number of consecutive occurrences of the dangerous behavior does not reach a preset number of times; if the number of consecutive occurrences of the dangerous behavior reaches a preset number of times, save the game progress and exit the game.

[0093] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory shown in the figure or solidified in the operating system (OS) of the electronic device, and can be Figure 1 Meanwhile, the data and program codes required for executing the above modules can be stored in the memory.

[0094] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the game addiction prevention method provided in the embodiment of the present application can be implemented.

[0095] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0096] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0097] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0098] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for preventing game addiction, characterized in that: The method comprises: When the game is running, obtain the behavior parameters of the current user; If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, a game addiction prevention operation is performed.

2. The method according to claim 1, characterized in that The obtaining of the behavior parameters of the current user includes: Call the map navigation interface; The behavior parameters of the current user are obtained from the map navigation interface.

3. The method according to claim 1, characterized in that When the game is running, the behavior parameters of the current user are obtained, including: When the game is running, the behavior parameters are obtained once every preset time period; If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, then executing a game addiction prevention operation includes: If the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior, the target game anti-addiction operation that should be performed is determined according to the number of consecutive occurrences of the dangerous behavior, and the target game anti-addiction operation is performed.

4. The method according to claim 3, characterized in that The step of determining the target game anti-addiction operation to be currently executed according to the number of consecutive occurrences of the dangerous behavior includes: If the number of consecutive occurrences of the dangerous behavior does not reach a preset number, determining that the target game anti-addiction operation is to output a prompt message; If the number of consecutive occurrences of the dangerous behavior reaches a preset number, the game progress of the game is saved and the game is exited.

5. A game addiction prevention device, characterized in that: The device comprises: The acquisition module is used to obtain the behavior parameters of the current user when the game is running; The processing module is used to execute a game addiction prevention operation if the behavior parameter indicates that the user behavior of the current user is a preset dangerous behavior.

6. The device according to claim 5, characterized in that The acquisition module is further used to call the map navigation interface; and acquire the behavior parameters of the current user from the map navigation interface.

7. The device according to claim 5, characterized in that The acquisition module is further used to acquire the behavior parameter once every preset time period when the game is running; The processing module is also used to determine the target game anti-addiction operation that should be executed currently according to the number of consecutive occurrences of the dangerous behavior if the behavior parameter characterizes that the user behavior of the current user is a preset dangerous behavior, and execute the target game anti-addiction operation.

8. The device according to claim 7, characterized in that The processing module is also used to determine that the anti-addiction operation of the target game is to output prompt information if the number of consecutive occurrences of the dangerous behavior does not reach a preset number of times; if the number of consecutive occurrences of the dangerous behavior reaches a preset number of times, save the game progress of the game and exit the game.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the method according to any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.