2019-07-19 12:41:33 +02:00
|
|
|
BlockColor Android version
|
2015-12-27 21:55:32 +01: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
|
|
|
|
----------------
|
2019-07-19 12:41:33 +02:00
|
|
|
There are some settings especially useful for Android users. BlockColor's config
|
|
|
|
file can usually be found at /sdcard/Android/data/mobi.BlockColor/files.
|
2015-12-27 21:55:32 +01:00
|
|
|
|
|
|
|
* 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.
|
|
|
|
* inventory_image_hack: if your inventory items are messed up, try setting
|
|
|
|
this to true
|
|
|
|
|
|
|
|
Known issues
|
|
|
|
------------
|
|
|
|
Not all issues are fixed by now:
|
|
|
|
|
|
|
|
* Unable to exit from volume menu -- don't use the volume menu, use Android's
|
|
|
|
volume controls instead.
|
|
|
|
* 512 MB RAM seems to be inadequate -- this depends on the server you join.
|
|
|
|
Try to play on more lightweight servers.
|
|
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
2019-07-19 12:41:33 +02:00
|
|
|
In order to build, your PC has to be set up to build BlockColor in the usual
|
|
|
|
manner (see the regular BlockColor documentation for how to get this done).
|
|
|
|
In addition to what is required for BlockColor in general, you will need the
|
2015-12-27 21:55:32 +01:00
|
|
|
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.
|
|
|
|
|
2018-06-26 01:58:52 +02:00
|
|
|
* android SDK (27+)
|
|
|
|
* android NDK (r17b)
|
2016-05-12 23:40:05 +02:00
|
|
|
* wget
|
|
|
|
* g++-multilib
|
|
|
|
* m4
|
2015-12-27 21:55:32 +01: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
|
|
|
|
-----
|
|
|
|
|
|
|
|
Debug build:
|
|
|
|
* Enter "build/android" subdirectory
|
|
|
|
* Execute "make"
|
|
|
|
* Answer the questions about where SDK and NDK are located on your filesystem
|
|
|
|
* Wait for build to finish
|
|
|
|
|
|
|
|
After the build is finished, the resulting apk can be fond in
|
2019-07-19 12:41:33 +02:00
|
|
|
build/android/bin/. It will be called BlockColor-debug.apk
|
2015-12-27 21:55:32 +01:00
|
|
|
|
|
|
|
Release build:
|
|
|
|
|
|
|
|
* 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 build/android subdirectory and create a new
|
|
|
|
file "ant.properties" there. Add following lines to that file:
|
2018-06-26 01:58:52 +02:00
|
|
|
|
2015-12-27 21:55:32 +01:00
|
|
|
> key.store=<path to your keystore>
|
2019-07-19 12:41:33 +02:00
|
|
|
> key.alias=BlockColor
|
2015-12-27 21:55:32 +01:00
|
|
|
|
|
|
|
* Execute "make release"
|
|
|
|
* Enter your keystore as well as your Mintest key password once asked. Be
|
|
|
|
careful it's shown on console in clear text!
|
2019-07-19 12:41:33 +02:00
|
|
|
* The result can be found at "bin/BlockColor-release.apk"
|
2015-12-27 21:55:32 +01:00
|
|
|
|
|
|
|
Other things that may be nice to know
|
|
|
|
------------
|
|
|
|
* The environment for Android development tools is saved within Android build
|
|
|
|
build folder. If you want direct access to it do:
|
2018-06-26 01:58:52 +02:00
|
|
|
|
2015-12-27 21:55:32 +01:00
|
|
|
> make envpaths
|
|
|
|
> . and_env
|
2018-06-26 01:58:52 +02:00
|
|
|
|
2015-12-27 21:55:32 +01:00
|
|
|
After you've done this you'll have your path and path variables set correct
|
|
|
|
to use adb and all other Android development tools
|
|
|
|
|
|
|
|
* You can build a single dependency by calling make and the dependency's name,
|
|
|
|
e.g.:
|
|
|
|
|
|
|
|
> make irrlicht
|
|
|
|
|
|
|
|
* You can completely cleanup a dependency by calling make and the "clean" target,
|
|
|
|
e.g.:
|
|
|
|
|
|
|
|
> make clean_irrlicht
|
2016-05-12 23:40:05 +02:00
|
|
|
|
2016-02-18 23:31:22 +01:00
|
|
|
|
2018-06-26 01:58:52 +02:00
|
|
|
After compiling you need to archive files in assets into three zips - Files.zip, games.zip and worlds.zip.
|
2019-07-22 02:51:54 +02:00
|
|
|
games.zip must contain "planets" folder.
|
2016-02-18 23:31:22 +01:00
|
|
|
worlds.zip must contain "worlds" folder and "multicraf.conf" text file.
|
|
|
|
Finally, remaining files must be packed into Files.zip.
|