Check patentability & draft patents in minutes with Patsnap Eureka AI!

Collision detecting method and device for 2D games

A technology for collision detection and games, which is applied in the field of collision detection devices for 2D games, can solve problems such as poor game operation, occupation of system resources, and browser crashes, and achieve the effects of reducing calculations, speeding up response speed, and improving accuracy

Inactive Publication Date: 2015-09-30
BEIJING AMAZGAME AGE INTERNET TECH CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, the detection method that comes with flash is computationally intensive and takes a long time. Especially in shooting games, frequent detection is required, which occupies a large amount of system resources such as CPU and memory.
[0007] And when the 2D game is a web game, the client of the 2D game is a browser, which is limited by the performance of the browser. The detection method that comes with the flash will make the game run poorly, and it is more likely to cause the browser to crash. Difference

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Collision detecting method and device for 2D games
  • Collision detecting method and device for 2D games
  • Collision detecting method and device for 2D games

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0074] refer to figure 1 , showing a flow chart of the steps of an embodiment of a collision detection method for a 2D game of the present invention, the map of the 2D game can be divided into one or more map grids of specified geometric shapes;

[0075] Applying the embodiment of the present invention, the map can be divided into one or more map grids of specified geometric shapes during the map editing process of the 2D game according to actual needs, and each map grid is composed of a plurality of pixels, specifically, it can be a rectangle ( Including squares, rectangles), rhombuses, circles, triangles, etc., which are not limited in this embodiment of the present invention. For example, the map of a 2D game may be divided in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention provides a collision detecting method and device for 2D games. A 2D game map is divided into one or more map cells in appointed geometric shapes. The collision detecting method includes converting first business objects to be detected into one or more matched target cells, wherein the target cells are same as the map cells in size; selecting one or more detecting points in the target cells; judging whether the first business objects collide with second business objects corresponding to the map cells in the moving direction or not according to the detecting points and the map cells. The detecting points in collisions are reduced by simplifying the map and the first business objects, operation amount is reduced, and collision detection accuracy is ensured. Meanwhile, consumption of system resources is greatly dissipated, operation efficiency of the games is improved and user experience is improved.

Description

technical field [0001] The invention relates to the technical field of image detection, in particular to a 2D game collision detection method and a 2D game collision detection device. Background technique [0002] 2D games are two-dimensional games that can be interacted with according to user needs. [0003] In 2D games, there is generally the existence of simulated gravity and obstacles, while business objects in the game, such as characters, airplanes, pets, props, etc. It is not possible to move through terrain barriers, etc., or it is necessary to realize actions such as flying and hitting props such as bullets in shooting games, and collisions often occur in the game. [0004] Therefore, collision detection is required in 2D games to detect whether the business objects in the game collide, so as to prevent business objects from passing through walls and other situations that are inconsistent with reality. [0005] A common collision detection method is the detection ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): A63F13/577
Inventor 洪晓健严攀云淼李园齐祥
Owner BEIJING AMAZGAME AGE INTERNET TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More