README.android 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 esspecially usefull 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 to big or small on your device, try changing this
  36. value.
  37. * inventory_image_hack: if your inventory items are messed up, try setting
  38. this to true
  39. Known issues
  40. ------------
  41. Not all issues are fixed by now:
  42. * Unable to exit from volume menu -- don't use the volume menu, use Android's
  43. volume controls instead.
  44. * 512 MB RAM seems to be inadequate -- this depends on the server you join.
  45. Try to play on more lightweight servers.
  46. Versioning
  47. ----------
  48. Android version numbers are 4 digits instead of Minetest's 3 digits. The last
  49. number of Android's version represents the Android internal version code. This
  50. version code is strictly incremental. It's incremented for each official
  51. Minetest Android build.
  52. E.g. pre-release Minetest Android builds have been 0.4.9.3, while the first
  53. official version most likely will be 0.4.10.4
  54. Requirements
  55. ------------
  56. In order to build, your PC has to be set up to build Minetest in the usual
  57. manner (see the regular Minetest documentation for how to get this done).
  58. In addition to what is required for Minetest in general, you will need the
  59. following software packages. The version number in parenthesis denotes the
  60. version that was tested at the time this README was drafted; newer/older
  61. versions may or may not work.
  62. * android SDK (x86_64 20131030)
  63. * android NDK (r9d)
  64. * wget (1.13.4)
  65. Additionally, you'll need to have an Internet connection available on the
  66. build system, as the Android build will download some source packages.
  67. Build
  68. -----
  69. Debug build:
  70. * Enter "build/android" subdirectory
  71. * Execute "make"
  72. * Answer the questions about where SDK and NDK are located on your filesystem
  73. * Wait for build to finish
  74. After the build is finished, the resulting apk can be fond in
  75. build/android/bin/. It will be called Minetest-debug.apk
  76. Release build:
  77. * In order to make a release build you'll have to have a keystore setup to sign
  78. the resulting apk package. How this is done is not part of this README. There
  79. are different tutorials on the web explaining how to do it
  80. - choose one yourself.
  81. * Once your keystore is setup, enter build/android subdirectory and create a new
  82. file "ant.properties" there. Add following lines to that file:
  83. > key.store=<path to your keystore>
  84. > key.alias=Minetest
  85. * Execute "make release"
  86. * Enter your keystore as well as your Mintest key password once asked. Be
  87. carefull it's shown on console in clear text!
  88. * The result can be found at "bin/Minetest-release.apk"
  89. Other things that may be nice to know
  90. ------------
  91. * The environment for Android development tools is saved within Android build
  92. build folder. If you want direct access to it do:
  93. > make envpaths
  94. > . and_env
  95. After you've done this you'll have your path and path variables set correct
  96. to use adb and all other Android development tools
  97. * You can build a single dependency by calling make and the dependency's name,
  98. e.g.:
  99. > make irrlicht
  100. * You can completely cleanup a dependency by calling make and the "clean" target,
  101. e.g.:
  102. > make clean_irrlicht