diff options
| author | Juan Linietsky | 2014-02-09 22:10:30 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-09 22:10:30 -0300 |
| commit | 0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac (patch) | |
| tree | 276c4d099e178eb67fbd14f61d77b05e3808e9e3 /plugins/terrain | |
| parent | 0e49da1687bc8192ed210947da52c9e5c5f301bb (diff) | |
| download | godot-0b806ee.tar.gz godot-0b806ee.tar.zst godot-0b806ee.zip | |
GODOT IS OPEN SOURCE
Diffstat (limited to '')
| -rw-r--r-- | plugins/terrain/plugin.cfg | 16 | ||||
| -rw-r--r-- | plugins/terrain/terrain.gd | 17 | ||||
| -rw-r--r-- | plugins/terrain/terrain.png | bin | 0 -> 762 bytes | |||
| -rw-r--r-- | plugins/terrain/terrain_node.gd | 3 |
4 files changed, 36 insertions, 0 deletions
diff --git a/plugins/terrain/plugin.cfg b/plugins/terrain/plugin.cfg new file mode 100644 index 000000000..d2f291742 --- /dev/null +++ b/plugins/terrain/plugin.cfg @@ -0,0 +1,16 @@ +[plugin] + +name="Terrain" +description="Simple plugin for generating and editing grid-based terrains. This type of terrains were all the rage in the early 2000's, but lost popularity to hand crafted geometry towards the end of the decade." +author="Juan Linietsky" +version="1.0" +installs=true +script="terrain.gd" +install_files=["terrain.gd","terrain_node.gd","icon_terrain.png"] + + + + + + + diff --git a/plugins/terrain/terrain.gd b/plugins/terrain/terrain.gd new file mode 100644 index 000000000..b3e3121e7 --- /dev/null +++ b/plugins/terrain/terrain.gd @@ -0,0 +1,17 @@ +tool # Always declare as Tool, if it's meant to run in the editor. +extends EditorPlugin + + +func get_name(): + return "Terrain" + + +func _init(): + print("PLUGIN INIT") + + +func _enter_scene(): + add_custom_type("Terrain","Spatial",preload("terrain_node.gd"),preload("terrain.png")) + +func _exit_scene(): + remove_custom_type("Terrain") diff --git a/plugins/terrain/terrain.png b/plugins/terrain/terrain.png Binary files differnew file mode 100644 index 000000000..7c1c3d70d --- /dev/null +++ b/plugins/terrain/terrain.png diff --git a/plugins/terrain/terrain_node.gd b/plugins/terrain/terrain_node.gd new file mode 100644 index 000000000..91cf3fcb2 --- /dev/null +++ b/plugins/terrain/terrain_node.gd @@ -0,0 +1,3 @@ +extends Spatial + + |
