Move development text to README. Update to latest 'creative' and 'sfinv' mods

master
paramat 2019-08-18 21:09:14 +01:00
parent a365f06b99
commit 8222a92c9c
15 changed files with 113 additions and 80 deletions

View File

@ -1,4 +1,4 @@
minipeli 0.1.1 by paramat.
minipeli 0.1.2 by paramat.
A game for Minetest Engine 5.0.0 and later.
Authors of media (textures)
@ -14,10 +14,78 @@ About Minipeli
This game is intended to be an example of the minimal requirements for a Minetest game, to help others create their own games.
This also suggests a good mod structure, as opposed to the problematic structure of the game called 'Minetest Game', which has most content in one large mod called 'default'. It is better to split the content into many mods.
This game is not as minimal as it could be, the 'creative' mod is not necessary. However, i consider it as probably desirable for most games as freely building without it is very awkward. So the 'creative' mod from Minetest Game has been included, and therefore also 'sfinv' on which it depends, they are almost completely unmodified.
This game is not as minimal as it could be, the 'creative' mod is not necessary. However, i consider it desirable for most games as freely building without it is very awkward. So the 'creative' mod from Minetest Game has been included, and therefore also the 'sfinv' mod on which it depends, they are almost completely unmodified.
Because creating animated meshes is difficult the player model from Minetest Game is used, it seems suitable for many games.
The player API of Minetest Game is quite fundamental.
So, the 'player_api' mod from Minetest Game is included in a simplified form.
See the 'development.txt' document for details of how this game was created and other useful information.
Why Mapgen v6 is not supported
------------------------------
In the 'game.conf' file, mapgen v6 is set as a disallowed mapgen.
Mapgen v6 is very different to all the other mapgens, it has hardcoded biomes and does not use the Biome API. Due to this it makes game code more complex and more difficult to maintain, the mapgen also misses many features.
It is highly recommended that games do not support Mapgen v6 for these reasons.
Note about 'lamp' mod
---------------------
This is not a necessary part of the game, it is only provided in creative mode to illuminate caves and dungeons during testing.
How this game was created
-------------------------
Minetest Game mods used unmodified or slightly modified:
'creative':
Optional-depend on 'hand' mod instead of 'default' mod.
'sfinv'
Minetest Game mods used modified:
'default' (becomes 'hand', 'gui' and 'textures' mods)
'player_api'
'default' mod changes:
Split into 3 mods:
'hand', contains:
Textures:
wieldhand.png
Code:
minetest.register_item
'gui', contains:
Textures:
gui_formbg
gui_hb_bg
Code:
minetest.register_on_joinplayer player:set_formspec_prepend
'textures', contains:
Code:
Required non-functional init.lua.
Textures:
bubble
crack_anylength
heart
'player_api' mod changes:
Now only contains:
Models:
Player model b3d, blend, skin texture
Sounds:
player_damage
Files:
api.lua: Remove 2D sprite player code.
init.lua: From register_on_joinplayer remove:
player:hud_set_hotbar_image("gui_hotbar.png")
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")

View File

@ -1,63 +0,0 @@
Why Mapgen v6 is not supported
------------------------------
In the 'game.conf' file, mapgen v6 is set as a disallowed mapgen.
Mapgen v6 is very different to all the other mapgens, it has hardcoded biomes and does not use the Biome API. Due to this it makes game code more complex and more difficult to maintain, the mapgen also misses many features.
It is highly recommended that games do not support Mapgen v6 for these reasons.
Note about 'lamp' mod
---------------------
This is not a necessary part of the game, it is only provided in creative mode to illuminate caves and dungeons during testing.
How this game was created
-------------------------
MTG mods used unmodified:
creative (but optional-depend on 'hand' mod instead of default, and use new trash icon)
sfinv
MTG mods used modified:
default (becomes 'hand', 'gui' and 'textures' mods)
player_api
default mod changes:
Split into 3 mods:
'hand', contains:
Textures:
wieldhand.png
Code:
minetest.register_item
'gui', contains:
Textures:
gui_formbg
gui_furnace_arrow_bg
gui_hb_bg
Code:
minetest.register_on_joinplayer player:set_formspec_prepend
'textures', contains:
Textures:
bubble
crack_anylength
heart
player_api mod changes:
Now only contains:
Models:
Player model b3d, blend, skin texture
Sounds:
player_damage
Files:
api.lua unchanged
init.lua: From register_on_joinplayer remove:
player:hud_set_hotbar_image("gui_hotbar.png")
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")

View File

@ -14,4 +14,4 @@ paramat (CC BY-SA 3.0):
* creative_next_icon.png
* creative_search_icon.png
* creative_clear_icon.png
* creative_trash_icon.png
* creative_trash_icon.png derived from a texture by kilbith (CC BY-SA 3.0)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 712 B

View File

@ -13,6 +13,3 @@ Authors of media
BlockMen (CC BY-SA 3.0):
gui_formbg.png
gui_hb_bg.png
paramat (CC BY-SA 3.0):
gui_furnace_arrow_bg.png

View File

@ -22,7 +22,6 @@ License of media
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
Copyright (C) 2019 BlockMen
Copyright (C) 2019 paramat
You are free to:
Share — copy and redistribute the material in any medium or format.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 B

View File

@ -47,14 +47,6 @@ function player_api.set_model(player, model_name)
eye_height = model.eye_height or 1.47,
})
player_api.set_animation(player, "stand")
else
player:set_properties({
textures = {"player.png", "player_back.png"},
visual = "upright_sprite",
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.75, 0.3},
stepheight = 0.6,
eye_height = 1.625,
})
end
player_model[name] = model_name
end

View File

@ -11,3 +11,8 @@ https://forum.minetest.net/viewtopic.php?t=19765
Authors of source code
----------------------
rubenwardy (MIT)
Authors of media
----------------
paramat (CC BY-SA 3.0):
sfinv_crafting_arrow.png - derived from a texture by BlockMen (CC BY-SA 3.0)

View File

@ -6,7 +6,7 @@ sfinv.register_page("sfinv:crafting", {
return sfinv.make_formspec(player, context, [[
list[current_player;craft;1.75,0.5;3,3;]
list[current_player;craftpreview;5.75,1.5;1,1;]
image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]
image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
listring[current_player;main]
listring[current_player;craft]
]], true)

View File

@ -22,3 +22,38 @@ DEALINGS IN THE SOFTWARE.
For more details:
https://opensource.org/licenses/MIT
License of media
----------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
Copyright (C) 2019 paramat
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and
indicate if changes were made. You may do so in any reasonable manner, but not in any way
that suggests the licensor endorses you or your use.
ShareAlike — If you remix, transform, or build upon the material, you must distribute
your contributions under the same license as the original.
No additional restrictions — You may not apply legal terms or technological measures that
legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public
domain or where your use is permitted by an applicable exception or limitation.
No warranties are given. The license may not give you all of the permissions necessary
for your intended use. For example, other rights such as publicity, privacy, or moral
rights may limit how you use the material.
For more details:
http://creativecommons.org/licenses/by-sa/3.0/

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 B