README.android 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Minetest Android port
  2. =====================
  3. Date: 2014 06 28
  4. Controls
  5. --------
  6. The Android port doesn't support everything you can do on PC due to the
  7. limited capabilities of common devices. What can be done is described
  8. below:
  9. While you're playing the game normally (that is, no menu or inventory is
  10. shown), the following controls are available:
  11. * Look around: touch screen and slide finger
  12. * double tap: place a node or use selected item
  13. * long tap: dig node
  14. * touch shown buttons: press button
  15. * Buttons:
  16. ** left upper corner: chat
  17. ** right lower corner: jump
  18. ** right lower corner: crouch
  19. ** left lower corner: walk/step...
  20. left up right
  21. down
  22. ** left lower corner: display inventory
  23. When a menu or inventory is displayed:
  24. * double tap outside menu area: close menu
  25. * tap on an item stack: select that stack
  26. * tap on an empty slot: if you selected a stack already, that stack is placed here
  27. * drag and drop: touch stack and hold finger down, move the stack to another
  28. slot, tap another finger while keeping first finger on screen
  29. --> places a single item from dragged stack into current (first touched) slot
  30. Special settings
  31. ----------------
  32. There are some settings especially useful for Android users. Minetest's config
  33. file can usually be found at /mnt/sdcard/Minetest.
  34. * gui_scaling: this is a user-specified scaling factor for the GUI- In case
  35. main menu is too big or small on your device, try changing this
  36. value.
  37. Known issues
  38. ------------
  39. Not all issues are fixed by now:
  40. * Unable to exit from volume menu -- don't use the volume menu, use Android's
  41. volume controls instead.
  42. * 512 MB RAM seems to be inadequate -- this depends on the server you join.
  43. Try to play on more lightweight servers.
  44. Versioning
  45. ----------
  46. Android version numbers are 4 digits instead of Minetest's 3 digits. The last
  47. number of Android's version represents the Android internal version code. This
  48. version code is strictly incremental. It's incremented for each official
  49. Minetest Android build.
  50. E.g. prerelease Minetest Android builds have been 0.4.9.3, while the first
  51. official version most likely will be 0.4.10.4
  52. Requirements
  53. ------------
  54. In order to build, your PC has to be set up to build Minetest in the usual
  55. manner (see the regular Minetest documentation for how to get this done).
  56. In addition to what is required for Minetest in general, you will need the
  57. following software packages. The version number in parenthesis denotes the
  58. version that was tested at the time this README was drafted; newer/older
  59. versions may or may not work.
  60. * android SDK (api-26)
  61. * android NDK (r17c)
  62. * wget (1.13.4)
  63. Additionally, you'll need to have an Internet connection available on the
  64. build system, as the Android build will download some source packages.
  65. Build
  66. -----
  67. Debug build:
  68. * Enter "build/android" subdirectory
  69. * Execute "make"
  70. * Answer the questions about where SDK and NDK are located on your filesystem
  71. * Wait for build to finish
  72. After the build is finished, the resulting apk can be fond in
  73. build/android/bin/. It will be called Minetest-debug.apk
  74. Release build:
  75. * In order to make a release build you'll have to have a keystore setup to sign
  76. the resulting apk package. How this is done is not part of this README. There
  77. are different tutorials on the web explaining how to do it
  78. - choose one yourself.
  79. * Once your keystore is setup, enter build/android subdirectory and create a new
  80. file "ant.properties" there. Add following lines to that file:
  81. > key.store=<path to your keystore>
  82. > key.alias=Minetest
  83. * Execute "make release"
  84. * Enter your keystore as well as your Mintest key password once asked. Be
  85. careful it's shown on console in clear text!
  86. * The result can be found at "bin/Minetest-release.apk"
  87. Other things that may be nice to know
  88. ------------
  89. * The environment for Android development tools is saved within Android build
  90. build folder. If you want direct access to it do:
  91. > make envpaths
  92. > . and_env
  93. After you've done this you'll have your path and path variables set correct
  94. to use adb and all other Android development tools
  95. * You can build a single dependency by calling make and the dependency's name,
  96. e.g.:
  97. > make irrlicht
  98. * You can completely cleanup a dependency by calling make and the "clean" target,
  99. e.g.:
  100. > make clean_irrlicht