commit 368a8948c1d651fb09aa4657e03f8ab69697998b Author: Relintai Date: Sun Dec 12 20:56:56 2021 +0100 Initial commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e68a058 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.import +*.d +*.o +*.meta +*.pyc +*.obj +*.bc + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dfbc805 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2019-2021 Péter Magyar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf29abc --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# RTileMap + +Godot's TileMap but as an engine module, with a few smaller features added. + +The tilemap classes will be prefixed with R, so it compiles cleanly with the built in TileMap class. + +# Building + +1. Get the source code for the engine. + +```git clone -b 3.x https://github.com/godotengine/godot.git godot``` + +2. Go into Godot's modules directory. + +``` +cd ./godot/modules/ +``` + +3. Clone this repository + +``` +git clone https://github.com/Relintai/rtile_map.git rtile_map +``` + +4. Build Godot. [Tutorial](https://docs.godotengine.org/en/latest/development/compiling/index.html) diff --git a/SCsub b/SCsub new file mode 100644 index 0000000..eea2296 --- /dev/null +++ b/SCsub @@ -0,0 +1,7 @@ +Import('env') + +env.add_source_files(env.modules_sources,"register_types.cpp") + +#if env["tools"]: +# env.add_source_files(env.modules_sources, "tile_editor/*.cpp") + diff --git a/config.py b/config.py new file mode 100644 index 0000000..75b055a --- /dev/null +++ b/config.py @@ -0,0 +1,13 @@ + +def can_build(env, platform): + return True + +def configure(env): + pass + +def get_doc_classes(): + return [ + ] + +def get_doc_path(): + return "doc_classes" \ No newline at end of file diff --git a/register_types.cpp b/register_types.cpp new file mode 100644 index 0000000..264d6fc --- /dev/null +++ b/register_types.cpp @@ -0,0 +1,35 @@ +/* +Copyright (c) 2021 Péter Magyar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#include "register_types.h" + +#ifdef TOOLS_ENABLED +#endif + +void register_rtile_map_types() { +#ifdef TOOLS_ENABLED +#endif + +} + +void unregister_rtile_map_types() { +} diff --git a/register_types.h b/register_types.h new file mode 100644 index 0000000..59c1521 --- /dev/null +++ b/register_types.h @@ -0,0 +1,24 @@ +/* +Copyright (c) 2021 Péter Magyar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +void register_rtile_map_types(); +void unregister_rtile_map_types();