minetest/doc
Treer 149d8fc8d6
Add group-based tool filtering for node drops ()
Supports both AND and OR requirements, e.g.

 * "a tool that's in any of these groups"
 * "a tool that's in all of these groups"
2021-08-27 20:23:20 +02:00
..
mkdocs Update API site build () 2020-04-11 20:38:39 +02:00
builtin_entities.txt Document builtin entities () 2020-10-03 19:01:38 +02:00
client_lua_api.txt Add bold, italic and monospace font styling for HUD text elements () 2021-07-27 19:11:46 +02:00
direction.md Add roadmap () 2021-06-17 04:15:30 +01:00
Doxyfile.in Add all src folders to doxygen () 2020-04-14 21:22:49 +02:00
fst_api.txt Add HTTP API to main menu () 2020-06-06 17:17:08 +01:00
lgpl-2.1.txt Remove doc/gpl-2.0.txt, add doc/lgpl-2.1.txt 2013-09-28 21:30:17 +02:00
lua_api.txt Add group-based tool filtering for node drops () 2021-08-27 20:23:20 +02:00
main_page.dox Actually add Doxygen main page 2016-01-09 15:11:43 -05:00
menu_lua_api.txt Consistent title bar + render information in mainmenu () 2021-03-30 21:49:15 +02:00
minetest.6 Add LevelDB player database () 2020-06-12 18:54:20 +02:00
minetestserver.6 Clean up and tweak build system 2015-03-27 15:00:48 -04:00
mod_channels.png Implement mod communication channels () 2017-09-26 00:11:20 +02:00
protocol.txt Protocol Docs: Python check bump to Python 3 2019-02-03 01:32:37 +00:00
README.android Move build/android directory to root of project () 2021-06-21 20:51:42 +01:00
texture_packs.txt Implement override.txt support for special tiles () 2020-08-04 20:12:47 +02:00
world_format.txt Removed some obsolete code () 2021-01-21 18:17:09 +00:00

Minetest: Android version
=========================

Controls
--------
The Android port doesn't support everything you can do on PC due to the
limited capabilities of common devices. What can be done is described
below:

While you're playing the game normally (that is, no menu or inventory is
shown), the following controls are available:
* Look around: touch screen and slide finger
* double tap: place a node or use selected item
* long tap: dig node
* touch shown buttons: press button
* Buttons:
** left upper corner: chat
** right lower corner: jump
** right lower corner: crouch
** left lower corner: walk/step...
   left up right
       down
** left lower corner: display inventory

When a menu or inventory is displayed:
* double tap outside menu area: close menu
* tap on an item stack: select that stack
* tap on an empty slot: if you selected a stack already, that stack is placed here
* drag and drop: touch stack and hold finger down, move the stack to another
  slot, tap another finger while keeping first finger on screen
  --> places a single item from dragged stack into current (first touched) slot

Special settings
----------------
There are some settings especially useful for Android users. Minetest's config
file can usually be found at /mnt/sdcard/Minetest.

* gui_scaling: this is a user-specified scaling factor for the GUI- In case
               main menu is too big or small on your device, try changing this
               value.

Requirements
------------

In order to build, your PC has to be set up to build Minetest in the usual
manner (see the regular Minetest documentation for how to get this done).
In addition to what is required for Minetest in general, you will need the
following software packages. The version number in parenthesis denotes the
version that was tested at the time this README was drafted; newer/older
versions may or may not work.

* Android SDK 29
* Android NDK r21
* Android Studio 3 [optional]

Additionally, you'll need to have an Internet connection available on the
build system, as the Android build will download some source packages.

Build
-----

The new build system Minetest Android is fully functional and is designed to
speed up and simplify the work, as well as adding the possibility of
cross-platform build.
You can use `./gradlew assemblerelease` or `./gradlew assembledebug` from the
command line or use Android Studio and click the build button.

When using gradlew, the newest NDK will be downloaded and installed
automatically. Or you can create a `local.properties` file and specify
`sdk.dir` and `ndk.dir` yourself.

* In order to make a release build you'll have to have a keystore setup to sign
  the resulting apk package. How this is done is not part of this README. There
  are different tutorials on the web explaining how to do it
  - choose one yourself.

* Once your keystore is setup, enter the android subdirectory and create a new
  file "ant.properties" there. Add following lines to that file:

  > key.store=<path to your keystore>
  > key.alias=Minetest