You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llms/manuals/app-manifest.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Minimum supported version of Chrome. Cannot be less than 32. For more informatio
89
89
YAML field name: **`initialMemory`**
90
90
Default value: **33554432**
91
91
92
-
The size of memory that allocated for web application. If ALLOW_MEMORY_GROWTH=0, this is the total amount of memory that web application can use. for more information look [link](https://emscripten.org/docs/tools_reference/settings_reference.html?highlight=environment#initial-memory). Value in bytes. Note that value must be a multiple of WebAssembly page size (64KiB).
92
+
The size of memory that allocated for web application. If `ALLOW_MEMORY_GROWTH=0`, this is the total amount of memory that web application can use. for more information look [link](https://emscripten.org/docs/tools_reference/settings_reference.html?highlight=environment#initial-memory). Value in bytes. Note that value must be a multiple of WebAssembly page size (64KiB).
93
93
That options relates to `html5.heap_size` in *game.project*[link](https://defold.com/llms/manuals/html5.md). Option that configured via application manifest is set during compilation and used as default value for `INITIAL_MEMORY` option. Value from *game.project* overrides value from application manifest and used in runtime.
Copy file name to clipboardExpand all lines: llms/manuals/application-lifecycle.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ end
64
64
65
65
## Update Loop
66
66
67
-
The Update Loop runs through a specific sequence once per frame. This sequence can be defined by 5 main phases:
67
+
The `Update Loop` runs through a specific sequence once per frame. This sequence can be defined by 5 main phases:
68
68
69
69
1. Input (processing and handling)
70
70
2. Update (including Fixed, Regular, Late and engine components’ updates)
@@ -80,7 +80,7 @@ Any game object that has acquired input focus and contains collection proxy comp
80
80
81
81
### Update Phase
82
82
83
-
The `Update` phase is a part of the Update Loop. It is started once for the root collection, and then runs recursively for each enabled collection proxy.
83
+
The `Update` phase is a part of the `Update Loop`. It is started once for the root collection, and then runs recursively for each enabled collection proxy.
84
84
85
85
Within a collection, Defold processes callbacks by component type: it iterates over all instances of a component type that implements the relevant stage, calls the Lua callback for each instance, flushes messages, then moves on to the next component type.
Copy file name to clipboardExpand all lines: llms/manuals/camera.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,13 @@ Orthographic Mode
45
45
46
46
## Using the camera
47
47
48
-
All cameras are automatically enabled and updated during a frame, and the lua `camera` module is available in all script contexts. Since Defold 1.8.1 there is no longer a need to explicitly enable a camera via sending an `acquire_camera_focus` message to the camera component. The old acquire and release messages are still available, but it is recommended to instead use the "enable" and "disable" messages like for any other component that you wish to enable or disable:
48
+
All cameras are automatically enabled and updated during a frame, and the lua `camera` module is available in all script contexts. Since Defold 1.8.1 there is no longer a need to explicitly enable a camera via sending an `acquire_camera_focus` message to the camera component. The old acquire and release messages are still available, but it is recommended to instead use the `enable` and `disable` messages like for any other component that you wish to enable or disable:
49
49
```lua
50
50
msg.post("#camera", "disable")
51
51
msg.post("#camera", "enable")
52
52
```
53
53
54
-
To list all currently available cameras, you can use camera.get_cameras():
54
+
To list all currently available cameras, you can use `camera.get_cameras()`:
55
55
```lua
56
56
-- Note: The render calls are only available in a render script.
57
57
-- The camera.get_cameras() function can be used anywhere,
Currently, generating any type of output from a compute program can only be done via `storage textures`. A storage texture is similar to a "regular texture" except that they support more functionality and configurability. Storage textures, as the name implies, can be used as a generic buffer that you can read and write data to from a compute program. You can then bind the same buffer to a different shader program for reading.
91
91
92
-
To create a storage texture in Defold, you need to do this from a regular .script file. Render scripts does not have this functionality as dynamic textures need to be created via the resource API which is only available in regular .script files.
92
+
To create a storage texture in Defold, you need to do this from a regular .script file. Render scripts does not have this functionality as dynamic textures need to be created via the `resource` API which is only available in regular .script files.
Copy file name to clipboardExpand all lines: llms/manuals/debugging-native-code.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ It is important that you match the correct engine with the callstack, otherwise
73
73
* Windows - the `dmengine.pdb` file in `build/x86_64-win32` contains the debug symbols for Windows builds.
74
74
* HTML5 - the `dmengine.js.symbols` file in `build/wasm-web` contains the debug symbols for HTML5 builds.
75
75
76
-
It is very important that your save the debug symbols somewhere for each public release you make of your game and that you know which release the debug symbols belong to. You will not be able to debug any native crashes if you do not have the debug symbols! Also, you should keep an unstripped version of the engine. This allows for the best symbolication of the callstack.
76
+
It is very important that your save the debug symbols somewhere for each public release you make of your game and that you know which release the debug symbols belong to. You will not be able to debug any native crashes if you do not have the debug symbols! Also, you should keep an `unstripped` version of the engine. This allows for the best symbolication of the callstack.
77
77
78
78
### Uploading symbols to Google Play
79
79
You can [upload the debug symbols to Google Play](https://developer.android.com/studio/build/shrink-code#android_gradle_plugin_version_40_or_earlier_and_other_build_systems) so that any crashes logged in Google Play will show symbolicated call stacks. Zip the contents of the `projecttitle.apk.symbols/lib/` bundle output folder. The folder includes one or more sub folders with architecture names such as `arm64-v8a` and `armeabi-v7a`.
Copy file name to clipboardExpand all lines: llms/manuals/editor-scripts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ You can create custom menu items and editor lifecycle hooks using Lua files with
4
4
5
5
## Editor script runtime
6
6
7
-
Editor scripts run inside an editor, in a Lua VM emulated by Java VM. All scripts share the same single environment, which means they can interact with each other. You can require Lua modules, just as with `.script` files, but Lua version that is running inside the editor is different, so make sure your shared code is compatible. Editor uses Lua version 5.2.x, more specifically [luaj](https://github.com/luaj/luaj) runtime, which is currently the only viable solution to run Lua on JVM. Besides that, there are some restrictions:
7
+
Editor scripts run inside an editor, in a Lua VM emulated by Java VM. All scripts share the same single environment, which means they can interact with each other. You can `require` Lua modules, just as with `.script` files, but Lua version that is running inside the editor is different, so make sure your shared code is compatible. Editor uses Lua version 5.2.x, more specifically [luaj](https://github.com/luaj/luaj) runtime, which is currently the only viable solution to run Lua on JVM. Besides that, there are some restrictions:
8
8
- there is no `debug` package;
9
9
- there is no `os.execute`, though we provide a similar `editor.execute()`;
10
10
- there is no `os.tmpname` and `io.tmpfile` — currently editor scripts can access files only inside the project directory;
Copy file name to clipboardExpand all lines: llms/manuals/extender-local-setup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ where *profile* can be:
81
81
***metrics** - runs VictoriaMetrics + Grafana as metrics backend and tool for visualization
82
82
For more information about `docker compose` arguments see https://docs.docker.com/reference/cli/docker/compose/.
83
83
84
-
When docker compose is up you can use **http://localhost:9000** as Build server address in Editor's preference or as `--build-server` value if you use Bob to build the project.
84
+
When docker compose is up you can use **http://localhost:9000** as `Build server address` in Editor's preference or as `--build-server` value if you use Bob to build the project.
85
85
86
86
Several profiles can be passed to command line. For example:
Copy file name to clipboardExpand all lines: llms/manuals/flash.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ Motion tweens allow the animation of various properties of an object, including
97
97
98
98
## Defold—property animation
99
99
100
-
Defold works with pixel images as opposed to vector graphics, thus it does not have an equivalent for shape tweening. However, motion tweening has a powerful equivalent in [property animation](https://defold.com/ref/go/#go.animate). This is accomplished via script, using the `go.animate()` function. The go.animate() function tweens a property (such as color, scale, rotation or position) from the starting value to the desired end value, using one of many available easing functions (including custom ones). Where Flash required user implementation of more advanced easing functions, Defold includes [many easing functions](https://defold.com/llms/manuals/animation.md) built-into the engine.
100
+
Defold works with pixel images as opposed to vector graphics, thus it does not have an equivalent for shape tweening. However, motion tweening has a powerful equivalent in [property animation](https://defold.com/ref/go/#go.animate). This is accomplished via script, using the `go.animate()` function. The `go.animate()` function tweens a property (such as color, scale, rotation or position) from the starting value to the desired end value, using one of many available easing functions (including custom ones). Where Flash required user implementation of more advanced easing functions, Defold includes [many easing functions](https://defold.com/llms/manuals/animation.md) built-into the engine.
101
101
102
102
Where Flash makes use of keyframes of graphics on a timeline for animation, one of the main methods of graphic animation in Defold is by flipbook animation of imported image sequences. Animations are organized in a game object component known as an atlas. In this instance we have an atlas for a game character with an animation sequence called "run". This consists of a series of png files:
103
103
@@ -166,7 +166,7 @@ Defold includes a modified version of the Box2D physics engine, which can simula
166
166
167
167
The collision object includes the following properties:
168
168
169
-
A box shape has been used as this was most appropriate for the bullet graphic. The other shape used for 2D collisions, sphere, will be used for the target. Setting the type to Kinematic means resolving collisions is done by your script as opposed to the built-in physics engine (for more information on the other types, please refer to the [physics manual](https://defold.com/llms/manuals/physics.md)). The group and mask properties determine what collision group the object belongs to and what collision group it should be checked against, respectively. The current setup means a "bullet" can only collide with a "target". Imagine the setup was changed to the below:
169
+
A box shape has been used as this was most appropriate for the bullet graphic. The other shape used for 2D collisions, sphere, will be used for the target. Setting the type to Kinematic means resolving collisions is done by your script as opposed to the built-in physics engine (for more information on the other types, please refer to the [physics manual](https://defold.com/llms/manuals/physics.md)). The *Group* and *Mask* properties determine what collision group the object belongs to and what collision group it should be checked against, respectively. The current setup means a "bullet" can only collide with a "target". Imagine the setup was changed to the below:
170
170
171
171
Now, bullets can collide with targets and other bullets. For reference, we have set up a collision object for the target that looks as follows:
172
172
@@ -204,7 +204,7 @@ on_reload
204
204
205
205
The callback functions listed above are all optional and can be removed if not used. For details on how to set up input, please refer to the [input manual](https://defold.com/llms/manuals/input.md). A common pitfall occurs when working with collection proxies - please refer to [this section](https://defold.com/llms/manuals/input.md) of the input manual for more information.
206
206
207
-
As discussed in the collision detection section, collision events are dealt with through the sending of messages to the game objects involved. Their respective script components receive the message in their on_message callback functions.
207
+
As discussed in the collision detection section, collision events are dealt with through the sending of messages to the game objects involved. Their respective script components receive the message in their `on_message` callback functions.
0 commit comments