commit 9bf349b774c9ea6b62ca065c62d7bc07e6824599 Author: Bruno Rybársky Date: Mon Jul 11 08:12:42 2022 +0200 init diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8c533e5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,3 @@ +For licenses of mods used check their folders +Licenses: code: LGPL-2.1, media: CC BY-SA-4.0 +For changes check git or compare to original repo diff --git a/game.conf b/game.conf new file mode 100644 index 0000000..2c24e99 --- /dev/null +++ b/game.conf @@ -0,0 +1,6 @@ +name = Blocky portaling +description = A puzzle game involving portals. Portal gun code originally by AiTechEye check readme and license there. +allowed_mapgens = singlenode +release = 1 +author = BRNSystems +title = Modular Portals diff --git a/menu/background.png b/menu/background.png new file mode 100644 index 0000000..cebf7a8 Binary files /dev/null and b/menu/background.png differ diff --git a/menu/header.png b/menu/header.png new file mode 100644 index 0000000..1af9387 Binary files /dev/null and b/menu/header.png differ diff --git a/menu/icon.png b/menu/icon.png new file mode 100644 index 0000000..78e8970 Binary files /dev/null and b/menu/icon.png differ diff --git a/mods/player/init.lua b/mods/player/init.lua new file mode 100644 index 0000000..125b4c1 --- /dev/null +++ b/mods/player/init.lua @@ -0,0 +1,14 @@ +minetest.register_alias("portalgun:gun", ":") +--heal player every 4 ticks by 1 hp if isnt fully healed +i = 0 +minetest.register_globalstep(function(dtime) + if i>=4 then + i=0 + for _,player in ipairs(minetest.get_connected_players()) do + if player:get_hp()<20 then + player:set_hp(player:get_hp()+1) + end + end + end + i=i+1 +end) \ No newline at end of file diff --git a/mods/player/mod.conf b/mods/player/mod.conf new file mode 100644 index 0000000..3af6c9a --- /dev/null +++ b/mods/player/mod.conf @@ -0,0 +1,3 @@ +name = player +description = Gamespecific +depends = portalgun \ No newline at end of file diff --git a/mods/portalgun b/mods/portalgun new file mode 160000 index 0000000..0344893 --- /dev/null +++ b/mods/portalgun @@ -0,0 +1 @@ +Subproject commit 034489359dff365f1ed5a59c6e77f7eb0ddd48af