the whole game
BIN
project/android/res/drawable-hdpi/icon.png
Executable file
|
After Width: | Height: | Size: 13 KiB |
BIN
project/android/res/drawable-hdpi/icon_demo.png
Executable file
|
After Width: | Height: | Size: 14 KiB |
BIN
project/android/res/drawable-ldpi/icon.png
Executable file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
project/android/res/drawable-ldpi/icon_demo.png
Executable file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
project/android/res/drawable-mdpi/icon.png
Executable file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
project/android/res/drawable-mdpi/icon_demo.png
Executable file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
project/android/res/drawable-xhdpi/icon.png
Executable file
|
After Width: | Height: | Size: 16 KiB |
BIN
project/android/res/drawable-xhdpi/icon_demo.png
Executable file
|
After Width: | Height: | Size: 18 KiB |
BIN
project/android/res/drawable/bg32.png
Executable file
|
After Width: | Height: | Size: 508 B |
4
project/android/res/drawable/bgtiled.xml
Executable file
@@ -0,0 +1,4 @@
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/bg32"
|
||||
android:tileMode="repeat"
|
||||
android:dither="false" />
|
||||
5
project/android/res/drawable/btn_nw_cancel.xml
Executable file
@@ -0,0 +1,5 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/cancel_1_3"
|
||||
android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/cancel_0_3" />
|
||||
</selector>
|
||||
5
project/android/res/drawable/btn_nw_create.xml
Executable file
@@ -0,0 +1,5 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/create_1_3"
|
||||
android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/create_0_3" />
|
||||
</selector>
|
||||
5
project/android/res/drawable/btngamemode.xml
Executable file
@@ -0,0 +1,5 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_checked="true"
|
||||
android:drawable="@drawable/survival_3" />
|
||||
<item android:drawable="@drawable/creative_3" />
|
||||
</selector>
|
||||
BIN
project/android/res/drawable/cancel_0_1.png
Executable file
|
After Width: | Height: | Size: 612 B |
BIN
project/android/res/drawable/cancel_0_3.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
project/android/res/drawable/cancel_1_1.png
Executable file
|
After Width: | Height: | Size: 632 B |
BIN
project/android/res/drawable/cancel_1_3.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
project/android/res/drawable/create_0_1.png
Executable file
|
After Width: | Height: | Size: 630 B |
BIN
project/android/res/drawable/create_0_3.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
project/android/res/drawable/create_1_1.png
Executable file
|
After Width: | Height: | Size: 649 B |
BIN
project/android/res/drawable/create_1_3.png
Executable file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
project/android/res/drawable/creative_3.png
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
project/android/res/drawable/iconx.png
Executable file
|
After Width: | Height: | Size: 81 KiB |
BIN
project/android/res/drawable/survival_3.png
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
project/android/res/drawable/worldname.png
Executable file
|
After Width: | Height: | Size: 589 B |
BIN
project/android/res/drawable/worldname_3.png
Executable file
|
After Width: | Height: | Size: 1.8 KiB |
170
project/android/res/layout/create_new_world.xml
Executable file
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" android:background="@drawable/bgtiled">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="18"
|
||||
android:orientation="vertical" >
|
||||
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_weight="0" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/button_createworld_cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="3"
|
||||
android:background="@drawable/btn_nw_cancel" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/header_createworld_worldname"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="7"
|
||||
android:background="@drawable/worldname_3" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/button_createworld_create"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="3"
|
||||
android:background="@drawable/btn_nw_create" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal" android:layout_marginBottom="20dp">
|
||||
|
||||
<View
|
||||
android:id="@+id/View01"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.25" />
|
||||
|
||||
|
||||
|
||||
<com.mojang.android.EditTextAscii
|
||||
android:id="@+id/editText_worldName"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.50"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/createworld_new_world"
|
||||
android:typeface="monospace" >
|
||||
|
||||
<requestFocus />
|
||||
</com.mojang.android.EditTextAscii>
|
||||
|
||||
<View
|
||||
android:id="@+id/view1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.25" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<com.mojang.minecraftpe.GameModeButton
|
||||
android:id="@+id/button_gameMode"
|
||||
android:layout_width="173dp"
|
||||
android:layout_height="46dp"
|
||||
android:background="@drawable/btngamemode"
|
||||
android:text="Button" android:textOff=" " android:textOn=" "/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingBottom="20dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/labelGameModeDesc"
|
||||
android:text="@string/gamemode_survival_summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:typeface="monospace"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout6"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal" >
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/createworld_seed" android:typeface="monospace"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout7"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<View
|
||||
android:id="@+id/View03"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.25" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editText_worldSeed"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.5"
|
||||
android:singleLine="true"
|
||||
android:typeface="monospace" android:gravity="center_horizontal"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/View02"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.25" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout8"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
41
project/android/res/layout/create_world_screen.xml
Executable file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="0dp"
|
||||
>
|
||||
|
||||
|
||||
|
||||
<TableRow
|
||||
android:id="@+id/tableRow1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/ImageButton1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="0dp"
|
||||
android:layout_weight="3"
|
||||
android:src="@drawable/btn_nw_cancel" />
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/ImageButton1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
android:layout_margin="0dp"
|
||||
android:layout_weight="7"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/ImageButton1"
|
||||
31
project/android/res/layout/main.xml
Executable file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="500px"
|
||||
android:layout_height="fill_parent"
|
||||
>
|
||||
<EditText android:id="@+id/editText1"
|
||||
android:text=""
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="60dp"
|
||||
android:singleLine="true">
|
||||
</EditText>
|
||||
<View
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="10px">
|
||||
</View>
|
||||
<LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/linearLayout1">
|
||||
<Button android:layout_height="wrap_content"
|
||||
android:layout_width="0px"
|
||||
android:id="@+id/button2"
|
||||
android:text="OK"
|
||||
android:layout_weight=".5">
|
||||
</Button>
|
||||
<Button android:layout_height="wrap_content"
|
||||
android:layout_width="0px"
|
||||
android:id="@+id/button1"
|
||||
android:text="Cancel"
|
||||
android:layout_weight=".5">
|
||||
</Button>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
19
project/android/res/layout/mainmenu_options.xml
Executable file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/bgtiled"
|
||||
android:tileMode="repeat" >
|
||||
<TextView android:text="Multiplayer username"
|
||||
android:layout_width="540px"
|
||||
android:layout_height="24dp" />
|
||||
<EditText android:id="@+id/editText_options_mpusername"
|
||||
android:text=""
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="48dp"
|
||||
android:singleLine="true"
|
||||
android:inputType="textNoSuggestions"
|
||||
>
|
||||
</EditText>
|
||||
</LinearLayout>
|
||||
29
project/android/res/layout/rename_mp_world.xml
Executable file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bgtiled"
|
||||
android:tileMode="repeat"
|
||||
android:gravity="center_horizontal"
|
||||
>
|
||||
<TextView android:text = "@string/renameworld_title"
|
||||
android:layout_width="360dp"
|
||||
android:layout_height="24dp"
|
||||
android:typeface="monospace"
|
||||
/>
|
||||
<com.mojang.android.EditTextAscii
|
||||
android:id="@+id/editText_worldNameRename"
|
||||
android:text="@string/renameworld_saved_world"
|
||||
android:layout_width="360dp"
|
||||
android:layout_height="48dp"
|
||||
android:singleLine="true"
|
||||
android:typeface="monospace"
|
||||
android:maxLength="64"
|
||||
android:imeActionLabel="Ok"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:imeOptions="actionDone" />
|
||||
<View
|
||||
android:layout_width="360dp"
|
||||
android:layout_height="10px" />
|
||||
</LinearLayout>
|
||||
40
project/android/res/values/strings.xml
Executable file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Minecraft - Pocket Edition</string>
|
||||
<string name="app_name_demo">Minecraft - Pocket Edition Demo</string>
|
||||
<string name="xperiaplayoptimized_content">true</string>
|
||||
<string name="app_name_short">Minecraft PE</string>
|
||||
<string name="app_name_short_demo">Minecraft PE Demo</string>
|
||||
|
||||
<!-- CREATE NEW WORLD -->
|
||||
<string name="createworld_name">World name</string>
|
||||
<string name="createworld_new_world">Unnamed world</string>
|
||||
<string name="createworld_seed">World Generator seed. Leave blank for random.</string>
|
||||
<string name="createworld_seed_info">Leave blank for random seed</string>
|
||||
<string name="gamemode_survival_summary">Mobs, health and gather resources</string>
|
||||
<string name="gamemode_creative_summary">Unlimited resources and flying</string>
|
||||
|
||||
<!-- RENAME WORLD -->
|
||||
<string name="renameworld_title">Save world as</string>
|
||||
<string name="renameworld_saved_world">Saved World</string>
|
||||
|
||||
<!-- MAIN MENU OPTIONS -->
|
||||
<string name="mmoptions_mp_username_title">Username</string>
|
||||
<string name="mmoptions_mp_username_dialog">Enter your username</string>
|
||||
<string name="mmoptions_mp_server_visible_default_title">Server visible by default</string>
|
||||
<string name="mmoptions_ctrl_sensitivity_title">Sensitivity</string>
|
||||
<string name="mmoptions_ctrl_invertmouse_title">Invert Y-axis</string>
|
||||
<string name="mmoptions_ctrl_islefthanded_title">Lefty</string>
|
||||
<string name="mmoptions_ctrl_usetouchscreen_title">Use touch screen</string>
|
||||
<string name="mmoptions_ctrl_usetouchjoypad_title">Split touch controls</string>
|
||||
<string name="mmoptions_feedback_vibration_title">Vibration</string>
|
||||
<string name="mmoptions_feedback_vibration_summary">Slight vibration when blocks are destroyed</string>
|
||||
<string name="mmoptions_gfx_fancygraphics_title">Fancy graphics</string>
|
||||
<string name="mmoptions_gfx_fancygraphics_summary"></string>
|
||||
<string name="mmoptions_gfx_fancygraphics_summary_powervr"></string>
|
||||
<string name="mmoptions_gfx_lowquality_title">Lower graphics quality</string>
|
||||
<string name="mmoptions_gfx_lowquality_summary">Shorter view distance and disables fancy rendering</string>
|
||||
<string name="mmoptions_game_difficultypeaceful_title">Peaceful mode</string>
|
||||
<string name="mmoptions_game_difficultypeaceful_summary">No hostile mobs, heal automatically</string>
|
||||
|
||||
</resources>
|
||||
105
project/android/res/xml/preferences.xml
Executable file
@@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceCategory
|
||||
android:title="Multiplayer">
|
||||
|
||||
<EditTextPreference
|
||||
android:key="mp_username"
|
||||
android:title="@string/mmoptions_mp_username_title"
|
||||
android:summary=""
|
||||
android:dialogTitle="@string/mmoptions_mp_username_dialog"
|
||||
android:defaultValue="Steve"
|
||||
android:singleLine="true" />
|
||||
<CheckBoxPreference
|
||||
android:key="mp_server_visible_default"
|
||||
android:title="@string/mmoptions_mp_server_visible_default_title"
|
||||
android:summary=""
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="category_graphics"
|
||||
android:title="Graphics">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="gfx_fancygraphics"
|
||||
android:title="@string/mmoptions_gfx_fancygraphics_title"
|
||||
android:summary="@string/mmoptions_gfx_fancygraphics_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
<CheckBoxPreference
|
||||
android:key="gfx_lowquality"
|
||||
android:title="@string/mmoptions_gfx_lowquality_title"
|
||||
android:summary="@string/mmoptions_gfx_lowquality_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Controls">
|
||||
|
||||
<com.mojang.android.preferences.SliderPreference
|
||||
android:key="ctrl_sensitivity"
|
||||
android:title="@string/mmoptions_ctrl_sensitivity_title"
|
||||
android:max="100"
|
||||
android:summary=""
|
||||
android:defaultValue="50"
|
||||
android:enabled="true"
|
||||
/>
|
||||
<CheckBoxPreference
|
||||
android:key="ctrl_invertmouse"
|
||||
android:title="@string/mmoptions_ctrl_invertmouse_title"
|
||||
android:summary=""
|
||||
android:defaultValue="false"
|
||||
android:enabled="true"
|
||||
/>
|
||||
<CheckBoxPreference
|
||||
android:key="ctrl_islefthanded"
|
||||
android:title="@string/mmoptions_ctrl_islefthanded_title"
|
||||
android:summary=""
|
||||
android:defaultValue="false"
|
||||
android:enabled="true"
|
||||
/>
|
||||
<CheckBoxPreference
|
||||
android:key="ctrl_usetouchscreen"
|
||||
android:title="@string/mmoptions_ctrl_usetouchscreen_title"
|
||||
android:summary=""
|
||||
android:defaultValue="true"
|
||||
android:enabled="false"
|
||||
/>
|
||||
<CheckBoxPreference
|
||||
android:key="ctrl_usetouchjoypad"
|
||||
android:title="@string/mmoptions_ctrl_usetouchjoypad_title"
|
||||
android:summary=""
|
||||
android:defaultValue="false"
|
||||
android:enabled="true"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Feedback">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="feedback_vibration"
|
||||
android:title="@string/mmoptions_feedback_vibration_title"
|
||||
android:summary="@string/mmoptions_feedback_vibration_summary"
|
||||
android:defaultValue="true"
|
||||
android:enabled="true"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Game">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="game_difficultypeaceful"
|
||||
android:title="@string/mmoptions_game_difficultypeaceful_title"
|
||||
android:summary="@string/mmoptions_game_difficultypeaceful_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||