Skip to content

Commit bfdb685

Browse files
authored
Merge pull request for release v4.1
pull request for release v4.1
2 parents 7628062 + 686a0a8 commit bfdb685

9 files changed

Lines changed: 265 additions & 359 deletions

File tree

Migrate_v3.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Changelog and migration guild from version 2 to 3
1+
# Changelog and migration guild from version 2 to 3.x
22

3+
## 3.1
4+
* Fixed issue with rotation calculation that may cause the game object to scale to flicker. [#4](https://github.com/dev-masih/defgraph/issues/4)
5+
6+
## 3.0
37
* Added ability for game objects to have curved corner paths.
48
* Added ability to track game object rotation as move result.
59
* Added only one ways routes, and added separate arguments `two_way_route_color` and `one_way_route_color` in `debug_draw_map_nodes` function.

Migrate_v4.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
# Changelog and migration guild from version 3 to 4
1+
# Changelog and migration guild from version 3 to 4.x
22

3+
## 4.1
4+
* Fixed issue that when a game object will reach the last destination it has a minor flicker.
5+
* `ROUTETYPE` members `onetime`, `shuffle` and `cycle` are changed to `ONETIME`, `SHUFFLE` and `CYCLE`.
6+
* Lots of code quality and style improvements and optimized memory and speed consumption.
7+
8+
## 4.0
39
* Added ability to specify multiple destination node id as `destination_list` and type of route that the game object has to walk as `route_type` in `move_initialize` function.
410
* Support 3 routing method when there is more than one destination: onetime, shuffle and cycle.
511
* Added `destination_id` to move result table that returned from function `move_player` and you can get node id of current destination from it.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# DefGraph v4
1+
# DefGraph v4.1
22

33
<img src="examples/raw/banner.jpg" alt="defgraph banner" style="max-width:100%;" />
44

5-
* <a href="https://github.com/dev-masih/defgraph/blob/master/Migrate_v4.md">**Changelog and migration guild from version 3 to 4**</a>
6-
* <a href="https://github.com/dev-masih/defgraph/blob/master/Migrate_v3.md">**Changelog and migration guild from version 2 to 3**</a>
5+
* <a href="https://github.com/dev-masih/defgraph/blob/master/Migrate_v4.md">**Changelog and migration guild from version 3.1 to 4.x**</a>
6+
* <a href="https://github.com/dev-masih/defgraph/blob/master/Migrate_v3.md">**Changelog and migration guild from version 2 to 3.x**</a>
77
* <a href="https://github.com/dev-masih/defgraph/blob/master/Migrate_v2.md">**Changelog and migration guild from version 1 to 2**</a>
88

99
This module contains functions to create a world map as a shape of a graph and the ability to manipulate it at any time, easily see debug drawing of this graph and move the game objects inside of this graph with utilizing auto pathfinder with different patterns.
@@ -70,11 +70,11 @@ False | True
7070

7171
## ROUTETYPE
7272
This extension uses an enum named `ROUTETYPE` to specify how game objects are going to move inside the graph with multiple destinations.
73-
#### **ROUTETYPE.onetime:**
73+
#### **ROUTETYPE.ONETIME:**
7474
This option allows the game object to go through destinations one by one and when it arrived at the last destination it will stop.
75-
#### **ROUTETYPE.shuffle:**
75+
#### **ROUTETYPE.SHUFFLE:**
7676
This option allows the game object to go through destinations in the shuffled order none stop.
77-
#### **ROUTETYPE.cycle:**
77+
#### **ROUTETYPE.CYCLE:**
7878
This option allows the game object to go through destinations one by one and when it arrived at the last destination it will go back to the first one and cycle through all destinations none stop.
7979
> **Note:** These enums only affect when the game object has more than one destination.
8080

0 commit comments

Comments
 (0)