From aa242beb73a1f6cf0bec2eb8dabd77b8f34f83bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20S=C3=A4gesser?= Date: Tue, 13 Jan 2015 14:17:51 +0100 Subject: [PATCH] - how to use PolygonPathFinder from GD Script --- demos/2d/polygon_path_finder_demo/.fscache | 4 + demos/2d/polygon_path_finder_demo/engine.cfg | 5 ++ demos/2d/polygon_path_finder_demo/icon.png | Bin 0 -> 3639 bytes .../polygon_path_finder_demo/icon.png.flags | 1 + .../new_scene_poly_with_holes.scn | Bin 0 -> 2609 bytes .../polygonpathfinder.gd | 80 ++++++++++++++++++ 6 files changed, 90 insertions(+) create mode 100644 demos/2d/polygon_path_finder_demo/.fscache create mode 100644 demos/2d/polygon_path_finder_demo/engine.cfg create mode 100644 demos/2d/polygon_path_finder_demo/icon.png create mode 100644 demos/2d/polygon_path_finder_demo/icon.png.flags create mode 100644 demos/2d/polygon_path_finder_demo/new_scene_poly_with_holes.scn create mode 100644 demos/2d/polygon_path_finder_demo/polygonpathfinder.gd diff --git a/demos/2d/polygon_path_finder_demo/.fscache b/demos/2d/polygon_path_finder_demo/.fscache new file mode 100644 index 00000000000..f699ca5849f --- /dev/null +++ b/demos/2d/polygon_path_finder_demo/.fscache @@ -0,0 +1,4 @@ +::res://::1421147952 +icon.png::ImageTexture::1420046079:: +new_scene_poly_with_holes.scn::PackedScene::1421147952:: +polygonpathfinder.gd::GDScript::1421146502:: diff --git a/demos/2d/polygon_path_finder_demo/engine.cfg b/demos/2d/polygon_path_finder_demo/engine.cfg new file mode 100644 index 00000000000..41c4adf7017 --- /dev/null +++ b/demos/2d/polygon_path_finder_demo/engine.cfg @@ -0,0 +1,5 @@ +[application] + +name="polygon_path_finder_demo" +main_scene="res://new_scene_poly_with_holes.scn" +icon="icon.png" diff --git a/demos/2d/polygon_path_finder_demo/icon.png b/demos/2d/polygon_path_finder_demo/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0c422e37b0ea9e6ad2901c8d425cb12f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ej+>d z-V8?`nBhqJDrX5lC8U!X%y8sA@K4JxpZs(Cy}mB`&*k|1{{iVth5oYr`Az@;002ov JPDHLkV1hBt8>9dL literal 0 HcmV?d00001 diff --git a/demos/2d/polygon_path_finder_demo/icon.png.flags b/demos/2d/polygon_path_finder_demo/icon.png.flags new file mode 100644 index 00000000000..dbef2209e80 --- /dev/null +++ b/demos/2d/polygon_path_finder_demo/icon.png.flags @@ -0,0 +1 @@ +gen_mipmaps=true diff --git a/demos/2d/polygon_path_finder_demo/new_scene_poly_with_holes.scn b/demos/2d/polygon_path_finder_demo/new_scene_poly_with_holes.scn new file mode 100644 index 0000000000000000000000000000000000000000..07838be41e7fe99e105e6f5b4d6490ecafa276d5 GIT binary patch literal 2609 zcmXw53v3+K6}|J>PrOdN{;b!ZIDWfM;;fBrh-0i0@ZOnSJA@=9iiKzi;mz#s?C!ws z%ywqhu}wnPgr7(w@hP++Rd7&02tlDh8_|lgDN!j15Ur{LMJdmzXi13_DnLa6kv<18 z(mQi!=FNR~?%Z?F+clj^!SWFXI2Qrv2>^U90tf�fd@g185|^hMju$79%&EH7tXy zWMcrsWJ05`iUb=S!?mkU))=w$vY|Dv%9r$lJ2GRsW~O97E9t8>i#fYW!anMnIU~o! z_LZhJV>lko>siBvCI&-t)pCnECSWClmVj+h&#pi_gK)597K&b3uTat{S7$atltE{6 z)-LIeqt8*(rLI%RKnv;eS9C`&yCdWdzm=n9J7+K{vLa_xydupx`rhTMl4%)qubK0T zwHeu*HFC7}W<%9As9vfRby!Vyvp^@QiMB(v0|IojhF-a1o0b;~N%IDDG5;EW&UCZ7 zlUuwIdYHclXM(eH)UutjULs%U8yDY|a%MhHdIboR(Zv?otr*#AEX1VN6-L=~UDLLp zjjiaHs4-hvl7L6(>1K(R%~>W5)%F9`NA*wYW#w6Ln3SkB1J!yn_h>6*ccf6Vm*nD- z*aR!cLp&RFHcw6q&`cU-&zSY9@dAVQ@i+^#iPXz#|71c`dm&R~{#G1Nd79goU@b(L zRIW!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