2020-04-15 16:27:40 +02:00
|
|
|
Minetest: Android version
|
|
|
|
=========================
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
----------------
|
2014-08-22 19:34:16 +02:00
|
|
|
There are some settings especially useful for Android users. Minetest's config
|
2014-04-21 14:10:59 +02:00
|
|
|
file can usually be found at /mnt/sdcard/Minetest.
|
|
|
|
|
|
|
|
* gui_scaling: this is a user-specified scaling factor for the GUI- In case
|
2014-08-22 19:34:16 +02:00
|
|
|
main menu is too big or small on your device, try changing this
|
2014-04-21 14:10:59 +02:00
|
|
|
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.
|
|
|
|
|
2020-04-15 16:27:40 +02:00
|
|
|
* Android SDK 29
|
|
|
|
* Android NDK r21
|
|
|
|
* Android Studio 3 [optional]
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
Additionally, you'll need to have an Internet connection available on the
|
|
|
|
build system, as the Android build will download some source packages.
|
|
|
|
|
|
|
|
Build
|
|
|
|
-----
|
|
|
|
|
2020-04-15 16:27:40 +02:00
|
|
|
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.
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2020-04-15 16:27:40 +02:00
|
|
|
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.
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
2021-06-21 21:51:42 +02:00
|
|
|
* Once your keystore is setup, enter the android subdirectory and create a new
|
2014-04-21 14:10:59 +02:00
|
|
|
file "ant.properties" there. Add following lines to that file:
|
2020-04-15 16:27:40 +02:00
|
|
|
|
2014-04-21 14:10:59 +02:00
|
|
|
> key.store=<path to your keystore>
|
|
|
|
> key.alias=Minetest
|