Engine-based lua script application and engine and lua script call method and device

An application method and script technology, applied in the direction of program control devices, etc., can solve problems such as programmers' inability to start, troublesome upgrade and maintenance, and disorder, and achieve the effects of reducing development costs and risks, avoiding nested calls of events, and reducing coupling

Active Publication Date: 2017-12-05
WUXI FANTIAN INFORMATION TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During program modification and debugging, because the event function is often called between the Lua script and the engine, it is messy, which makes the programmer feel at a loss. In addition, the existing program development cycle is relatively short, and there are many later maintenance and upgrade times. Scattered in Lua scripts and engines will bring great trouble to upgrade and maintenance

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
  • Engine-based lua script application and engine and lua script call method and device
  • Engine-based lua script application and engine and lua script call method and device
  • Engine-based lua script application and engine and lua script call method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

[0040] figure 1 A first embodiment of the invention is shown.

[0041] figure 1 It is a flow chart of the method for mutual calling of the engine and the Lua script provided by the first embodiment of the present invention, and the method for mutual calling of the engine and the Lua script includes:

[0042] Step S101, register all events in the Lua script.

[0043] Lua scripts are driven by events, which can control character movement, keyboard, mouse, network, custom event messages, etc. The most popular application scen...

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

The embodiment of the present invention discloses an engine-based Lua script application and a method and device for mutual calling between the engine and the Lua script. The engine-based Lua script application method includes: registering all events in the Lua script; defining a sending list in the engine and receive list; insert event message and the callback function corresponding to the event message to receive list; insert event message to send list; adopt the technical scheme provided by this embodiment, can encapsulate engine and provide corresponding interface for Lua script and The engine interacts to avoid nested calls between the engine and the events in the Lua script, effectively reducing the coupling between the various modules in the engine. Due to its independence, it can also separate the application and other games from the game, which is conducive to improving the efficiency of development and facilitating game upgrades and updates.

Description

technical field [0001] The invention relates to the field of computer software, in particular to an engine-based Lua script application, a method and a device for mutual calling of the engine and the Lua script. Background technique [0002] Engine (Engine) is the core component of developing programs or systems on electronic platforms. Using the engine, developers can quickly build and lay out the functions required by the program, or use it to assist the operation of the program. Generally speaking, an engine is a supporting part of a program or a system. Common program engines include game engines, search engines, and antivirus engines. [0003] In the game, the plot, levels, art, music, operation and other content experienced by the player are all directly controlled by the game engine, which plays the role of the midfield engine and binds all the elements of the game together. The background directs them to work simultaneously and orderly. Simply put, an engine is "...

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 & AuthorityPatents(China)
IPC IPC(8): G06F9/44
Inventor张翼
OwnerWUXI FANTIAN INFORMATION TECH