This commit is contained in:
Bruno Rybársky 2022-07-11 08:12:42 +02:00
commit 9bf349b774
8 changed files with 27 additions and 0 deletions

3
LICENSE Normal file
View File

@ -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

6
game.conf Normal file
View File

@ -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

BIN
menu/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
menu/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

BIN
menu/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

14
mods/player/init.lua Normal file
View File

@ -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)

3
mods/player/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = player
description = Gamespecific
depends = portalgun

1
mods/portalgun Submodule

@ -0,0 +1 @@
Subproject commit 034489359dff365f1ed5a59c6e77f7eb0ddd48af