diff --git a/bin/R.txt b/bin/R.txt index a56be14..21ea0ce 100644 --- a/bin/R.txt +++ b/bin/R.txt @@ -1,148 +1,148 @@ -int attr adSize 0x7f010000 -int attr adSizes 0x7f010001 -int attr adUnitId 0x7f010002 -int attr cameraBearing 0x7f010004 -int attr cameraTargetLat 0x7f010005 -int attr cameraTargetLng 0x7f010006 -int attr cameraTilt 0x7f010007 -int attr cameraZoom 0x7f010008 -int attr mapType 0x7f010003 -int attr uiCompass 0x7f010009 -int attr uiRotateGestures 0x7f01000a -int attr uiScrollGestures 0x7f01000b -int attr uiTiltGestures 0x7f01000c -int attr uiZoomControls 0x7f01000d -int attr uiZoomGestures 0x7f01000e -int attr useViewLifecycle 0x7f01000f -int attr zOrderOnTop 0x7f010010 -int color common_action_bar_splitter 0x7f040009 -int color common_signin_btn_dark_text_default 0x7f040000 -int color common_signin_btn_dark_text_disabled 0x7f040002 -int color common_signin_btn_dark_text_focused 0x7f040003 -int color common_signin_btn_dark_text_pressed 0x7f040001 -int color common_signin_btn_default_background 0x7f040008 -int color common_signin_btn_light_text_default 0x7f040004 -int color common_signin_btn_light_text_disabled 0x7f040006 -int color common_signin_btn_light_text_focused 0x7f040007 -int color common_signin_btn_light_text_pressed 0x7f040005 -int color common_signin_btn_text_dark 0x7f04000a -int color common_signin_btn_text_light 0x7f04000b -int dimen activity_horizontal_margin 0x7f080000 -int dimen activity_vertical_margin 0x7f080001 -int drawable common_signin_btn_icon_dark 0x7f020000 -int drawable common_signin_btn_icon_disabled_dark 0x7f020001 -int drawable common_signin_btn_icon_disabled_focus_dark 0x7f020002 -int drawable common_signin_btn_icon_disabled_focus_light 0x7f020003 -int drawable common_signin_btn_icon_disabled_light 0x7f020004 -int drawable common_signin_btn_icon_focus_dark 0x7f020005 -int drawable common_signin_btn_icon_focus_light 0x7f020006 -int drawable common_signin_btn_icon_light 0x7f020007 -int drawable common_signin_btn_icon_normal_dark 0x7f020008 -int drawable common_signin_btn_icon_normal_light 0x7f020009 -int drawable common_signin_btn_icon_pressed_dark 0x7f02000a -int drawable common_signin_btn_icon_pressed_light 0x7f02000b -int drawable common_signin_btn_text_dark 0x7f02000c -int drawable common_signin_btn_text_disabled_dark 0x7f02000d -int drawable common_signin_btn_text_disabled_focus_dark 0x7f02000e -int drawable common_signin_btn_text_disabled_focus_light 0x7f02000f -int drawable common_signin_btn_text_disabled_light 0x7f020010 -int drawable common_signin_btn_text_focus_dark 0x7f020011 -int drawable common_signin_btn_text_focus_light 0x7f020012 -int drawable common_signin_btn_text_light 0x7f020013 -int drawable common_signin_btn_text_normal_dark 0x7f020014 -int drawable common_signin_btn_text_normal_light 0x7f020015 -int drawable common_signin_btn_text_pressed_dark 0x7f020016 -int drawable common_signin_btn_text_pressed_light 0x7f020017 -int drawable f0 0x7f020018 -int drawable f1 0x7f020019 -int drawable f2 0x7f02001a -int drawable f3 0x7f02001b -int drawable f4 0x7f02001c -int drawable f5 0x7f02001d -int drawable f6 0x7f02001e -int drawable f7 0x7f02001f -int drawable f8 0x7f020020 -int drawable f9 0x7f020021 -int drawable ic_launcher 0x7f020022 -int drawable ic_plusone_medium_off_client 0x7f020023 -int drawable ic_plusone_small_off_client 0x7f020024 -int drawable ic_plusone_standard_off_client 0x7f020025 -int drawable ic_plusone_tall_off_client 0x7f020026 -int drawable sprite_b 0x7f020027 -int drawable sprite_blockline 0x7f020028 -int drawable sprite_controler 0x7f020029 -int drawable sprite_freeversion 0x7f02002a -int drawable sprite_gameover 0x7f02002b -int drawable sprite_i1 0x7f02002c -int drawable sprite_i1r 0x7f02002d -int drawable sprite_i2 0x7f02002e -int drawable sprite_i2r 0x7f02002f -int drawable sprite_i3 0x7f020030 -int drawable sprite_i3r 0x7f020031 -int drawable sprite_i4 0x7f020032 -int drawable sprite_i4r 0x7f020033 -int drawable sprite_l1 0x7f020034 -int drawable sprite_l2 0x7f020035 -int drawable sprite_s 0x7f020036 -int drawable sprite_score 0x7f020037 -int drawable sprite_t 0x7f020038 -int drawable sprite_z 0x7f020039 -int id action_settings 0x7f050005 -int id hybrid 0x7f050004 -int id none 0x7f050000 -int id normal 0x7f050001 -int id satellite 0x7f050002 -int id terrain 0x7f050003 -int integer google_play_services_version 0x7f070000 -int menu main 0x7f0a0000 -int raw tetris_a 0x7f030000 -int string action_settings 0x7f06001b -int string app_name 0x7f06001a -int string auth_client_needs_enabling_title 0x7f060015 -int string auth_client_needs_installation_title 0x7f060016 -int string auth_client_needs_update_title 0x7f060017 -int string auth_client_play_services_err_notification_msg 0x7f060018 -int string auth_client_requested_by_msg 0x7f060019 -int string auth_client_using_bad_version_title 0x7f060014 -int string common_google_play_services_enable_button 0x7f060006 -int string common_google_play_services_enable_text 0x7f060005 -int string common_google_play_services_enable_title 0x7f060004 -int string common_google_play_services_install_button 0x7f060003 -int string common_google_play_services_install_text_phone 0x7f060001 -int string common_google_play_services_install_text_tablet 0x7f060002 -int string common_google_play_services_install_title 0x7f060000 -int string common_google_play_services_invalid_account_text 0x7f06000c -int string common_google_play_services_invalid_account_title 0x7f06000b -int string common_google_play_services_network_error_text 0x7f06000a -int string common_google_play_services_network_error_title 0x7f060009 -int string common_google_play_services_unknown_issue 0x7f06000d -int string common_google_play_services_unsupported_date_text 0x7f060010 -int string common_google_play_services_unsupported_text 0x7f06000f -int string common_google_play_services_unsupported_title 0x7f06000e -int string common_google_play_services_update_button 0x7f060011 -int string common_google_play_services_update_text 0x7f060008 -int string common_google_play_services_update_title 0x7f060007 -int string common_signin_button_text 0x7f060012 -int string common_signin_button_text_long 0x7f060013 -int string hello_world 0x7f06001c -int style AppBaseTheme 0x7f090000 -int style AppTheme 0x7f090001 -int[] styleable AdsAttrs { 0x7f010000, 0x7f010001, 0x7f010002 } -int styleable AdsAttrs_adSize 0 -int styleable AdsAttrs_adSizes 1 -int styleable AdsAttrs_adUnitId 2 -int[] styleable MapAttrs { 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010 } -int styleable MapAttrs_cameraBearing 1 -int styleable MapAttrs_cameraTargetLat 2 -int styleable MapAttrs_cameraTargetLng 3 -int styleable MapAttrs_cameraTilt 4 -int styleable MapAttrs_cameraZoom 5 -int styleable MapAttrs_mapType 0 -int styleable MapAttrs_uiCompass 6 -int styleable MapAttrs_uiRotateGestures 7 -int styleable MapAttrs_uiScrollGestures 8 -int styleable MapAttrs_uiTiltGestures 9 -int styleable MapAttrs_uiZoomControls 10 -int styleable MapAttrs_uiZoomGestures 11 -int styleable MapAttrs_useViewLifecycle 12 -int styleable MapAttrs_zOrderOnTop 13 +int attr adSize 0x7f010000 +int attr adSizes 0x7f010001 +int attr adUnitId 0x7f010002 +int attr cameraBearing 0x7f010004 +int attr cameraTargetLat 0x7f010005 +int attr cameraTargetLng 0x7f010006 +int attr cameraTilt 0x7f010007 +int attr cameraZoom 0x7f010008 +int attr mapType 0x7f010003 +int attr uiCompass 0x7f010009 +int attr uiRotateGestures 0x7f01000a +int attr uiScrollGestures 0x7f01000b +int attr uiTiltGestures 0x7f01000c +int attr uiZoomControls 0x7f01000d +int attr uiZoomGestures 0x7f01000e +int attr useViewLifecycle 0x7f01000f +int attr zOrderOnTop 0x7f010010 +int color common_action_bar_splitter 0x7f040009 +int color common_signin_btn_dark_text_default 0x7f040000 +int color common_signin_btn_dark_text_disabled 0x7f040002 +int color common_signin_btn_dark_text_focused 0x7f040003 +int color common_signin_btn_dark_text_pressed 0x7f040001 +int color common_signin_btn_default_background 0x7f040008 +int color common_signin_btn_light_text_default 0x7f040004 +int color common_signin_btn_light_text_disabled 0x7f040006 +int color common_signin_btn_light_text_focused 0x7f040007 +int color common_signin_btn_light_text_pressed 0x7f040005 +int color common_signin_btn_text_dark 0x7f04000a +int color common_signin_btn_text_light 0x7f04000b +int dimen activity_horizontal_margin 0x7f080000 +int dimen activity_vertical_margin 0x7f080001 +int drawable common_signin_btn_icon_dark 0x7f020000 +int drawable common_signin_btn_icon_disabled_dark 0x7f020001 +int drawable common_signin_btn_icon_disabled_focus_dark 0x7f020002 +int drawable common_signin_btn_icon_disabled_focus_light 0x7f020003 +int drawable common_signin_btn_icon_disabled_light 0x7f020004 +int drawable common_signin_btn_icon_focus_dark 0x7f020005 +int drawable common_signin_btn_icon_focus_light 0x7f020006 +int drawable common_signin_btn_icon_light 0x7f020007 +int drawable common_signin_btn_icon_normal_dark 0x7f020008 +int drawable common_signin_btn_icon_normal_light 0x7f020009 +int drawable common_signin_btn_icon_pressed_dark 0x7f02000a +int drawable common_signin_btn_icon_pressed_light 0x7f02000b +int drawable common_signin_btn_text_dark 0x7f02000c +int drawable common_signin_btn_text_disabled_dark 0x7f02000d +int drawable common_signin_btn_text_disabled_focus_dark 0x7f02000e +int drawable common_signin_btn_text_disabled_focus_light 0x7f02000f +int drawable common_signin_btn_text_disabled_light 0x7f020010 +int drawable common_signin_btn_text_focus_dark 0x7f020011 +int drawable common_signin_btn_text_focus_light 0x7f020012 +int drawable common_signin_btn_text_light 0x7f020013 +int drawable common_signin_btn_text_normal_dark 0x7f020014 +int drawable common_signin_btn_text_normal_light 0x7f020015 +int drawable common_signin_btn_text_pressed_dark 0x7f020016 +int drawable common_signin_btn_text_pressed_light 0x7f020017 +int drawable f0 0x7f020018 +int drawable f1 0x7f020019 +int drawable f2 0x7f02001a +int drawable f3 0x7f02001b +int drawable f4 0x7f02001c +int drawable f5 0x7f02001d +int drawable f6 0x7f02001e +int drawable f7 0x7f02001f +int drawable f8 0x7f020020 +int drawable f9 0x7f020021 +int drawable ic_launcher 0x7f020022 +int drawable ic_plusone_medium_off_client 0x7f020023 +int drawable ic_plusone_small_off_client 0x7f020024 +int drawable ic_plusone_standard_off_client 0x7f020025 +int drawable ic_plusone_tall_off_client 0x7f020026 +int drawable sprite_b 0x7f020027 +int drawable sprite_blockline 0x7f020028 +int drawable sprite_controler 0x7f020029 +int drawable sprite_freeversion 0x7f02002a +int drawable sprite_gameover 0x7f02002b +int drawable sprite_i1 0x7f02002c +int drawable sprite_i1r 0x7f02002d +int drawable sprite_i2 0x7f02002e +int drawable sprite_i2r 0x7f02002f +int drawable sprite_i3 0x7f020030 +int drawable sprite_i3r 0x7f020031 +int drawable sprite_i4 0x7f020032 +int drawable sprite_i4r 0x7f020033 +int drawable sprite_l1 0x7f020034 +int drawable sprite_l2 0x7f020035 +int drawable sprite_s 0x7f020036 +int drawable sprite_score 0x7f020037 +int drawable sprite_t 0x7f020038 +int drawable sprite_z 0x7f020039 +int id action_settings 0x7f050005 +int id hybrid 0x7f050004 +int id none 0x7f050000 +int id normal 0x7f050001 +int id satellite 0x7f050002 +int id terrain 0x7f050003 +int integer google_play_services_version 0x7f070000 +int menu main 0x7f0a0000 +int raw tetris_a 0x7f030000 +int string action_settings 0x7f06001b +int string app_name 0x7f06001a +int string auth_client_needs_enabling_title 0x7f060015 +int string auth_client_needs_installation_title 0x7f060016 +int string auth_client_needs_update_title 0x7f060017 +int string auth_client_play_services_err_notification_msg 0x7f060018 +int string auth_client_requested_by_msg 0x7f060019 +int string auth_client_using_bad_version_title 0x7f060014 +int string common_google_play_services_enable_button 0x7f060006 +int string common_google_play_services_enable_text 0x7f060005 +int string common_google_play_services_enable_title 0x7f060004 +int string common_google_play_services_install_button 0x7f060003 +int string common_google_play_services_install_text_phone 0x7f060001 +int string common_google_play_services_install_text_tablet 0x7f060002 +int string common_google_play_services_install_title 0x7f060000 +int string common_google_play_services_invalid_account_text 0x7f06000c +int string common_google_play_services_invalid_account_title 0x7f06000b +int string common_google_play_services_network_error_text 0x7f06000a +int string common_google_play_services_network_error_title 0x7f060009 +int string common_google_play_services_unknown_issue 0x7f06000d +int string common_google_play_services_unsupported_date_text 0x7f060010 +int string common_google_play_services_unsupported_text 0x7f06000f +int string common_google_play_services_unsupported_title 0x7f06000e +int string common_google_play_services_update_button 0x7f060011 +int string common_google_play_services_update_text 0x7f060008 +int string common_google_play_services_update_title 0x7f060007 +int string common_signin_button_text 0x7f060012 +int string common_signin_button_text_long 0x7f060013 +int string hello_world 0x7f06001c +int style AppBaseTheme 0x7f090000 +int style AppTheme 0x7f090001 +int[] styleable AdsAttrs { 0x7f010000, 0x7f010001, 0x7f010002 } +int styleable AdsAttrs_adSize 0 +int styleable AdsAttrs_adSizes 1 +int styleable AdsAttrs_adUnitId 2 +int[] styleable MapAttrs { 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010 } +int styleable MapAttrs_cameraBearing 1 +int styleable MapAttrs_cameraTargetLat 2 +int styleable MapAttrs_cameraTargetLng 3 +int styleable MapAttrs_cameraTilt 4 +int styleable MapAttrs_cameraZoom 5 +int styleable MapAttrs_mapType 0 +int styleable MapAttrs_uiCompass 6 +int styleable MapAttrs_uiRotateGestures 7 +int styleable MapAttrs_uiScrollGestures 8 +int styleable MapAttrs_uiTiltGestures 9 +int styleable MapAttrs_uiZoomControls 10 +int styleable MapAttrs_uiZoomGestures 11 +int styleable MapAttrs_useViewLifecycle 12 +int styleable MapAttrs_zOrderOnTop 13 diff --git a/bin/Tetris.apk b/bin/Tetris.apk index 65e5cf6..c907895 100644 Binary files a/bin/Tetris.apk and b/bin/Tetris.apk differ diff --git a/bin/classes.dex b/bin/classes.dex index 68c8ccf..4d793ad 100644 Binary files a/bin/classes.dex and b/bin/classes.dex differ diff --git a/bin/classes/mangavalk/tetris/CanvasView.class b/bin/classes/mangavalk/tetris/CanvasView.class index f7b24c6..65f37f2 100644 Binary files a/bin/classes/mangavalk/tetris/CanvasView.class and b/bin/classes/mangavalk/tetris/CanvasView.class differ diff --git a/bin/dexedLibs/google-play-services_lib-0f09ee896a674b9292f9df3250c11de4.jar b/bin/dexedLibs/google-play-services_lib-0f09ee896a674b9292f9df3250c11de4.jar index 81dc944..9097cc0 100644 Binary files a/bin/dexedLibs/google-play-services_lib-0f09ee896a674b9292f9df3250c11de4.jar and b/bin/dexedLibs/google-play-services_lib-0f09ee896a674b9292f9df3250c11de4.jar differ diff --git a/bin/resources.ap_ b/bin/resources.ap_ index f8b33d9..34566ca 100644 Binary files a/bin/resources.ap_ and b/bin/resources.ap_ differ diff --git a/gen/mangavalk/tetris/R.java b/gen/mangavalk/tetris/R.java index 0b9436e..1160a0e 100644 --- a/gen/mangavalk/tetris/R.java +++ b/gen/mangavalk/tetris/R.java @@ -1,717 +1,717 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package mangavalk.tetris; - -public final class R { - public static final class attr { - /** - The size of the ad. It must be one of BANNER, FULL_BANNER, LEADERBOARD, - MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or - <width>x<height>. - -
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. -
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int adSize=0x7f010000;
- /**
- A comma-separated list of the supported ad sizes. The sizes must be one of
- BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER,
- WIDE_SKYSCRAPER, or <width>x<height>.
-
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. -
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int adSizes=0x7f010001;
- /** The ad unit ID.
-
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. -
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int adUnitId=0x7f010002;
- /**
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int cameraBearing=0x7f010004;
- /**
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int cameraTargetLat=0x7f010005;
- /**
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int cameraTargetLng=0x7f010006;
- /**
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int cameraTilt=0x7f010007;
- /**
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int cameraZoom=0x7f010008;
- /**
Must be one of the following constant values.
-| Constant | Value | Description |
|---|---|---|
none | 0 | |
normal | 1 | |
satellite | 2 | |
terrain | 3 | |
hybrid | 4 |
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int uiCompass=0x7f010009;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int uiRotateGestures=0x7f01000a;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int uiScrollGestures=0x7f01000b;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int uiTiltGestures=0x7f01000c;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int uiZoomControls=0x7f01000d;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int uiZoomGestures=0x7f01000e;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int useViewLifecycle=0x7f01000f;
- /**
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- */
- public static final int zOrderOnTop=0x7f010010;
- }
- public static final class color {
- public static final int common_action_bar_splitter=0x7f040009;
- /** Sign-in Button Colors
- */
- public static final int common_signin_btn_dark_text_default=0x7f040000;
- public static final int common_signin_btn_dark_text_disabled=0x7f040002;
- public static final int common_signin_btn_dark_text_focused=0x7f040003;
- public static final int common_signin_btn_dark_text_pressed=0x7f040001;
- public static final int common_signin_btn_default_background=0x7f040008;
- public static final int common_signin_btn_light_text_default=0x7f040004;
- public static final int common_signin_btn_light_text_disabled=0x7f040006;
- public static final int common_signin_btn_light_text_focused=0x7f040007;
- public static final int common_signin_btn_light_text_pressed=0x7f040005;
- public static final int common_signin_btn_text_dark=0x7f04000a;
- public static final int common_signin_btn_text_light=0x7f04000b;
- }
- public static final class dimen {
- /** Default screen margins, per the Android Design guidelines.
-
- Customize dimensions originally defined in res/values/dimens.xml (such as
- screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-
- */
- public static final int activity_horizontal_margin=0x7f080000;
- public static final int activity_vertical_margin=0x7f080001;
- }
- public static final class drawable {
- public static final int common_signin_btn_icon_dark=0x7f020000;
- public static final int common_signin_btn_icon_disabled_dark=0x7f020001;
- public static final int common_signin_btn_icon_disabled_focus_dark=0x7f020002;
- public static final int common_signin_btn_icon_disabled_focus_light=0x7f020003;
- public static final int common_signin_btn_icon_disabled_light=0x7f020004;
- public static final int common_signin_btn_icon_focus_dark=0x7f020005;
- public static final int common_signin_btn_icon_focus_light=0x7f020006;
- public static final int common_signin_btn_icon_light=0x7f020007;
- public static final int common_signin_btn_icon_normal_dark=0x7f020008;
- public static final int common_signin_btn_icon_normal_light=0x7f020009;
- public static final int common_signin_btn_icon_pressed_dark=0x7f02000a;
- public static final int common_signin_btn_icon_pressed_light=0x7f02000b;
- public static final int common_signin_btn_text_dark=0x7f02000c;
- public static final int common_signin_btn_text_disabled_dark=0x7f02000d;
- public static final int common_signin_btn_text_disabled_focus_dark=0x7f02000e;
- public static final int common_signin_btn_text_disabled_focus_light=0x7f02000f;
- public static final int common_signin_btn_text_disabled_light=0x7f020010;
- public static final int common_signin_btn_text_focus_dark=0x7f020011;
- public static final int common_signin_btn_text_focus_light=0x7f020012;
- public static final int common_signin_btn_text_light=0x7f020013;
- public static final int common_signin_btn_text_normal_dark=0x7f020014;
- public static final int common_signin_btn_text_normal_light=0x7f020015;
- public static final int common_signin_btn_text_pressed_dark=0x7f020016;
- public static final int common_signin_btn_text_pressed_light=0x7f020017;
- public static final int f0=0x7f020018;
- public static final int f1=0x7f020019;
- public static final int f2=0x7f02001a;
- public static final int f3=0x7f02001b;
- public static final int f4=0x7f02001c;
- public static final int f5=0x7f02001d;
- public static final int f6=0x7f02001e;
- public static final int f7=0x7f02001f;
- public static final int f8=0x7f020020;
- public static final int f9=0x7f020021;
- public static final int ic_launcher=0x7f020022;
- public static final int ic_plusone_medium_off_client=0x7f020023;
- public static final int ic_plusone_small_off_client=0x7f020024;
- public static final int ic_plusone_standard_off_client=0x7f020025;
- public static final int ic_plusone_tall_off_client=0x7f020026;
- public static final int sprite_b=0x7f020027;
- public static final int sprite_blockline=0x7f020028;
- public static final int sprite_controler=0x7f020029;
- public static final int sprite_freeversion=0x7f02002a;
- public static final int sprite_gameover=0x7f02002b;
- public static final int sprite_i1=0x7f02002c;
- public static final int sprite_i1r=0x7f02002d;
- public static final int sprite_i2=0x7f02002e;
- public static final int sprite_i2r=0x7f02002f;
- public static final int sprite_i3=0x7f020030;
- public static final int sprite_i3r=0x7f020031;
- public static final int sprite_i4=0x7f020032;
- public static final int sprite_i4r=0x7f020033;
- public static final int sprite_l1=0x7f020034;
- public static final int sprite_l2=0x7f020035;
- public static final int sprite_s=0x7f020036;
- public static final int sprite_score=0x7f020037;
- public static final int sprite_t=0x7f020038;
- public static final int sprite_z=0x7f020039;
- }
- public static final class id {
- public static final int action_settings=0x7f050005;
- public static final int hybrid=0x7f050004;
- public static final int none=0x7f050000;
- public static final int normal=0x7f050001;
- public static final int satellite=0x7f050002;
- public static final int terrain=0x7f050003;
- }
- public static final class integer {
- public static final int google_play_services_version=0x7f070000;
- }
- public static final class menu {
- public static final int main=0x7f0a0000;
- }
- public static final class raw {
- public static final int tetris_a=0x7f030000;
- }
- public static final class string {
- public static final int action_settings=0x7f06001b;
- public static final int app_name=0x7f06001a;
- /** Title for notification shown when GooglePlayServices needs to be
- enabled for a application to work. [CHAR LIMIT=70]
- */
- public static final int auth_client_needs_enabling_title=0x7f060015;
- /** Title for notification shown when GooglePlayServices needs to be
- installed for a application to work. [CHAR LIMIT=70]
- */
- public static final int auth_client_needs_installation_title=0x7f060016;
- /** Title for notification shown when GooglePlayServices needs to be
- udpated for a application to work. [CHAR LIMIT=70]
- */
- public static final int auth_client_needs_update_title=0x7f060017;
- /** Title for notification shown when GooglePlayServices is unavailable [CHAR LIMIT=42]
- */
- public static final int auth_client_play_services_err_notification_msg=0x7f060018;
- /** Requested by string saying which app requested the notification. [CHAR LIMIT=42]
- */
- public static final int auth_client_requested_by_msg=0x7f060019;
- /** Title for notification shown when a bad version of GooglePlayServices
- has been installed and needs correction for an application to work.
- [CHAR LIMIT=70]
- */
- public static final int auth_client_using_bad_version_title=0x7f060014;
- /** Button in confirmation dialog to enable Google Play services. Clicking it
- will direct user to application settings of Google Play services where they
- can enable it [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_enable_button=0x7f060006;
- /** Message in confirmation dialog informing user they need to enable
- Google Play services in application settings [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_enable_text=0x7f060005;
- /** Title of confirmation dialog informing user they need to enable
- Google Play services in application settings [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_enable_title=0x7f060004;
- /** Button in confirmation dialog for installing Google Play services [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_install_button=0x7f060003;
- /** (For phones) Message in confirmation dialog informing user that
- they need to install Google Play services (from Play Store) [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_install_text_phone=0x7f060001;
- /** (For tablets) Message in confirmation dialog informing user that
- they need to install Google Play services (from Play Store) [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_install_text_tablet=0x7f060002;
- /** Title of confirmation dialog informing user that they need to install
- Google Play services (from Play Store) [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_install_title=0x7f060000;
- /** Message in confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_invalid_account_text=0x7f06000c;
- /** Title of confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_invalid_account_title=0x7f06000b;
- /** Message in confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_network_error_text=0x7f06000a;
- /** Title of confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_network_error_title=0x7f060009;
- /** Message in confirmation dialog informing user there is an unknown issue in Google Play
- services [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_unknown_issue=0x7f06000d;
- /** Message in confirmation dialog informing user that date on the device is not correct,
- causing certificate checks to fail. [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_unsupported_date_text=0x7f060010;
- /** Message in confirmation dialog informing user that Google Play services is not supported on their device [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_unsupported_text=0x7f06000f;
- /** Title of confirmation dialog informing user that Google Play services is not supported on their device [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_unsupported_title=0x7f06000e;
- /** Button in confirmation dialog for updating Google Play services [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_update_button=0x7f060011;
- /** Message in confirmation dialog informing user that they need to update
- Google Play services (from Play Store) [CHAR LIMIT=NONE]
- */
- public static final int common_google_play_services_update_text=0x7f060008;
- /** Title of confirmation dialog informing user that they need to update
- Google Play services (from Play Store) [CHAR LIMIT=40]
- */
- public static final int common_google_play_services_update_title=0x7f060007;
- /** Sign-in button text [CHAR LIMIT=15]
- */
- public static final int common_signin_button_text=0x7f060012;
- /** Long form sign-in button text [CHAR LIMIT=30]
- */
- public static final int common_signin_button_text_long=0x7f060013;
- public static final int hello_world=0x7f06001c;
- }
- public static final class style {
- /**
- Base application theme, dependent on API level. This theme is replaced
- by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-
-
- Theme customizations available in newer API levels can go in
- res/values-vXX/styles.xml, while customizations related to
- backward-compatibility can go here.
-
-
- Base application theme for API 11+. This theme completely replaces
- AppBaseTheme from res/values/styles.xml on API 11+ devices.
-
- API 11 theme customizations can go here.
-
- Base application theme for API 14+. This theme completely replaces
- AppBaseTheme from BOTH res/values/styles.xml and
- res/values-v11/styles.xml on API 14+ devices.
-
- API 14 theme customizations can go here.
- */
- public static final int AppBaseTheme=0x7f090000;
- /** Application theme.
- All customizations that are NOT specific to a particular API-level can go here.
- */
- public static final int AppTheme=0x7f090001;
- }
- public static final class styleable {
- /** Attributes that can be used with a AdsAttrs.
-
Includes the following attributes:
-| Attribute | Description |
|---|---|
{@link #AdsAttrs_adSize mangavalk.tetris:adSize} | - The size of the ad. |
{@link #AdsAttrs_adSizes mangavalk.tetris:adSizes} | - A comma-separated list of the supported ad sizes. |
{@link #AdsAttrs_adUnitId mangavalk.tetris:adUnitId} | The ad unit ID. |
- @attr description - - The size of the ad. It must be one of BANNER, FULL_BANNER, LEADERBOARD, - MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or - <width>x<height>. - - - -
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. -
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
-
This is a private symbol. - @attr name mangavalk.tetris:adSize - */ - public static final int AdsAttrs_adSize = 0; - /** -
- @attr description - - A comma-separated list of the supported ad sizes. The sizes must be one of - BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER, - WIDE_SKYSCRAPER, or <width>x<height>. - - - -
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. -
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
-
This is a private symbol. - @attr name mangavalk.tetris:adSizes - */ - public static final int AdsAttrs_adSizes = 1; - /** -
- @attr description - The ad unit ID. - - -
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. -
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
-
This is a private symbol. - @attr name mangavalk.tetris:adUnitId - */ - public static final int AdsAttrs_adUnitId = 2; - /** Attributes that can be used with a MapAttrs. -
Includes the following attributes:
-| Attribute | Description |
|---|---|
{@link #MapAttrs_cameraBearing mangavalk.tetris:cameraBearing} | |
{@link #MapAttrs_cameraTargetLat mangavalk.tetris:cameraTargetLat} | |
{@link #MapAttrs_cameraTargetLng mangavalk.tetris:cameraTargetLng} | |
{@link #MapAttrs_cameraTilt mangavalk.tetris:cameraTilt} | |
{@link #MapAttrs_cameraZoom mangavalk.tetris:cameraZoom} | |
{@link #MapAttrs_mapType mangavalk.tetris:mapType} | |
{@link #MapAttrs_uiCompass mangavalk.tetris:uiCompass} | |
{@link #MapAttrs_uiRotateGestures mangavalk.tetris:uiRotateGestures} | |
{@link #MapAttrs_uiScrollGestures mangavalk.tetris:uiScrollGestures} | |
{@link #MapAttrs_uiTiltGestures mangavalk.tetris:uiTiltGestures} | |
{@link #MapAttrs_uiZoomControls mangavalk.tetris:uiZoomControls} | |
{@link #MapAttrs_uiZoomGestures mangavalk.tetris:uiZoomGestures} | |
{@link #MapAttrs_useViewLifecycle mangavalk.tetris:useViewLifecycle} | |
{@link #MapAttrs_zOrderOnTop mangavalk.tetris:zOrderOnTop} |
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraBearing} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:cameraBearing
- */
- public static final int MapAttrs_cameraBearing = 1;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraTargetLat} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:cameraTargetLat
- */
- public static final int MapAttrs_cameraTargetLat = 2;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraTargetLng} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:cameraTargetLng
- */
- public static final int MapAttrs_cameraTargetLng = 3;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraTilt} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:cameraTilt
- */
- public static final int MapAttrs_cameraTilt = 4;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraZoom} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a floating point value, such as "1.2".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:cameraZoom
- */
- public static final int MapAttrs_cameraZoom = 5;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#mapType} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be one of the following constant values.
-| Constant | Value | Description |
|---|---|---|
none | 0 | |
normal | 1 | |
satellite | 2 | |
terrain | 3 | |
hybrid | 4 |
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiCompass} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:uiCompass
- */
- public static final int MapAttrs_uiCompass = 6;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiRotateGestures} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:uiRotateGestures
- */
- public static final int MapAttrs_uiRotateGestures = 7;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiScrollGestures} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:uiScrollGestures
- */
- public static final int MapAttrs_uiScrollGestures = 8;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiTiltGestures} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:uiTiltGestures
- */
- public static final int MapAttrs_uiTiltGestures = 9;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiZoomControls} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:uiZoomControls
- */
- public static final int MapAttrs_uiZoomControls = 10;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiZoomGestures} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:uiZoomGestures
- */
- public static final int MapAttrs_uiZoomGestures = 11;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#useViewLifecycle} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:useViewLifecycle
- */
- public static final int MapAttrs_useViewLifecycle = 12;
- /**
-
This symbol is the offset where the {@link mangavalk.tetris.R.attr#zOrderOnTop} - attribute's value can be found in the {@link #MapAttrs} array. - - -
Must be a boolean value, either "true" or "false".
-
This may also be a reference to a resource (in the form
-"@[package:]type:name") or
-theme attribute (in the form
-"?[package:][type:]name")
-containing a value of this type.
- @attr name mangavalk.tetris:zOrderOnTop
- */
- public static final int MapAttrs_zOrderOnTop = 13;
- };
-}
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package mangavalk.tetris;
+
+public final class R {
+ public static final class attr {
+ /**
+ The size of the ad. It must be one of BANNER, FULL_BANNER, LEADERBOARD,
+ MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or
+ <width>x<height>.
+
+
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. +
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int adSize=0x7f010000;
+ /**
+ A comma-separated list of the supported ad sizes. The sizes must be one of
+ BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER,
+ WIDE_SKYSCRAPER, or <width>x<height>.
+
+
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. +
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int adSizes=0x7f010001;
+ /** The ad unit ID.
+
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. +
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int adUnitId=0x7f010002;
+ /**
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int cameraBearing=0x7f010004;
+ /**
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int cameraTargetLat=0x7f010005;
+ /**
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int cameraTargetLng=0x7f010006;
+ /**
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int cameraTilt=0x7f010007;
+ /**
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int cameraZoom=0x7f010008;
+ /**
Must be one of the following constant values.
+| Constant | Value | Description |
|---|---|---|
none | 0 | |
normal | 1 | |
satellite | 2 | |
terrain | 3 | |
hybrid | 4 |
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int uiCompass=0x7f010009;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int uiRotateGestures=0x7f01000a;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int uiScrollGestures=0x7f01000b;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int uiTiltGestures=0x7f01000c;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int uiZoomControls=0x7f01000d;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int uiZoomGestures=0x7f01000e;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int useViewLifecycle=0x7f01000f;
+ /**
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ */
+ public static final int zOrderOnTop=0x7f010010;
+ }
+ public static final class color {
+ public static final int common_action_bar_splitter=0x7f040009;
+ /** Sign-in Button Colors
+ */
+ public static final int common_signin_btn_dark_text_default=0x7f040000;
+ public static final int common_signin_btn_dark_text_disabled=0x7f040002;
+ public static final int common_signin_btn_dark_text_focused=0x7f040003;
+ public static final int common_signin_btn_dark_text_pressed=0x7f040001;
+ public static final int common_signin_btn_default_background=0x7f040008;
+ public static final int common_signin_btn_light_text_default=0x7f040004;
+ public static final int common_signin_btn_light_text_disabled=0x7f040006;
+ public static final int common_signin_btn_light_text_focused=0x7f040007;
+ public static final int common_signin_btn_light_text_pressed=0x7f040005;
+ public static final int common_signin_btn_text_dark=0x7f04000a;
+ public static final int common_signin_btn_text_light=0x7f04000b;
+ }
+ public static final class dimen {
+ /** Default screen margins, per the Android Design guidelines.
+
+ Customize dimensions originally defined in res/values/dimens.xml (such as
+ screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
+
+ */
+ public static final int activity_horizontal_margin=0x7f080000;
+ public static final int activity_vertical_margin=0x7f080001;
+ }
+ public static final class drawable {
+ public static final int common_signin_btn_icon_dark=0x7f020000;
+ public static final int common_signin_btn_icon_disabled_dark=0x7f020001;
+ public static final int common_signin_btn_icon_disabled_focus_dark=0x7f020002;
+ public static final int common_signin_btn_icon_disabled_focus_light=0x7f020003;
+ public static final int common_signin_btn_icon_disabled_light=0x7f020004;
+ public static final int common_signin_btn_icon_focus_dark=0x7f020005;
+ public static final int common_signin_btn_icon_focus_light=0x7f020006;
+ public static final int common_signin_btn_icon_light=0x7f020007;
+ public static final int common_signin_btn_icon_normal_dark=0x7f020008;
+ public static final int common_signin_btn_icon_normal_light=0x7f020009;
+ public static final int common_signin_btn_icon_pressed_dark=0x7f02000a;
+ public static final int common_signin_btn_icon_pressed_light=0x7f02000b;
+ public static final int common_signin_btn_text_dark=0x7f02000c;
+ public static final int common_signin_btn_text_disabled_dark=0x7f02000d;
+ public static final int common_signin_btn_text_disabled_focus_dark=0x7f02000e;
+ public static final int common_signin_btn_text_disabled_focus_light=0x7f02000f;
+ public static final int common_signin_btn_text_disabled_light=0x7f020010;
+ public static final int common_signin_btn_text_focus_dark=0x7f020011;
+ public static final int common_signin_btn_text_focus_light=0x7f020012;
+ public static final int common_signin_btn_text_light=0x7f020013;
+ public static final int common_signin_btn_text_normal_dark=0x7f020014;
+ public static final int common_signin_btn_text_normal_light=0x7f020015;
+ public static final int common_signin_btn_text_pressed_dark=0x7f020016;
+ public static final int common_signin_btn_text_pressed_light=0x7f020017;
+ public static final int f0=0x7f020018;
+ public static final int f1=0x7f020019;
+ public static final int f2=0x7f02001a;
+ public static final int f3=0x7f02001b;
+ public static final int f4=0x7f02001c;
+ public static final int f5=0x7f02001d;
+ public static final int f6=0x7f02001e;
+ public static final int f7=0x7f02001f;
+ public static final int f8=0x7f020020;
+ public static final int f9=0x7f020021;
+ public static final int ic_launcher=0x7f020022;
+ public static final int ic_plusone_medium_off_client=0x7f020023;
+ public static final int ic_plusone_small_off_client=0x7f020024;
+ public static final int ic_plusone_standard_off_client=0x7f020025;
+ public static final int ic_plusone_tall_off_client=0x7f020026;
+ public static final int sprite_b=0x7f020027;
+ public static final int sprite_blockline=0x7f020028;
+ public static final int sprite_controler=0x7f020029;
+ public static final int sprite_freeversion=0x7f02002a;
+ public static final int sprite_gameover=0x7f02002b;
+ public static final int sprite_i1=0x7f02002c;
+ public static final int sprite_i1r=0x7f02002d;
+ public static final int sprite_i2=0x7f02002e;
+ public static final int sprite_i2r=0x7f02002f;
+ public static final int sprite_i3=0x7f020030;
+ public static final int sprite_i3r=0x7f020031;
+ public static final int sprite_i4=0x7f020032;
+ public static final int sprite_i4r=0x7f020033;
+ public static final int sprite_l1=0x7f020034;
+ public static final int sprite_l2=0x7f020035;
+ public static final int sprite_s=0x7f020036;
+ public static final int sprite_score=0x7f020037;
+ public static final int sprite_t=0x7f020038;
+ public static final int sprite_z=0x7f020039;
+ }
+ public static final class id {
+ public static final int action_settings=0x7f050005;
+ public static final int hybrid=0x7f050004;
+ public static final int none=0x7f050000;
+ public static final int normal=0x7f050001;
+ public static final int satellite=0x7f050002;
+ public static final int terrain=0x7f050003;
+ }
+ public static final class integer {
+ public static final int google_play_services_version=0x7f070000;
+ }
+ public static final class menu {
+ public static final int main=0x7f0a0000;
+ }
+ public static final class raw {
+ public static final int tetris_a=0x7f030000;
+ }
+ public static final class string {
+ public static final int action_settings=0x7f06001b;
+ public static final int app_name=0x7f06001a;
+ /** Title for notification shown when GooglePlayServices needs to be
+ enabled for a application to work. [CHAR LIMIT=70]
+ */
+ public static final int auth_client_needs_enabling_title=0x7f060015;
+ /** Title for notification shown when GooglePlayServices needs to be
+ installed for a application to work. [CHAR LIMIT=70]
+ */
+ public static final int auth_client_needs_installation_title=0x7f060016;
+ /** Title for notification shown when GooglePlayServices needs to be
+ udpated for a application to work. [CHAR LIMIT=70]
+ */
+ public static final int auth_client_needs_update_title=0x7f060017;
+ /** Title for notification shown when GooglePlayServices is unavailable [CHAR LIMIT=42]
+ */
+ public static final int auth_client_play_services_err_notification_msg=0x7f060018;
+ /** Requested by string saying which app requested the notification. [CHAR LIMIT=42]
+ */
+ public static final int auth_client_requested_by_msg=0x7f060019;
+ /** Title for notification shown when a bad version of GooglePlayServices
+ has been installed and needs correction for an application to work.
+ [CHAR LIMIT=70]
+ */
+ public static final int auth_client_using_bad_version_title=0x7f060014;
+ /** Button in confirmation dialog to enable Google Play services. Clicking it
+ will direct user to application settings of Google Play services where they
+ can enable it [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_enable_button=0x7f060006;
+ /** Message in confirmation dialog informing user they need to enable
+ Google Play services in application settings [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_enable_text=0x7f060005;
+ /** Title of confirmation dialog informing user they need to enable
+ Google Play services in application settings [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_enable_title=0x7f060004;
+ /** Button in confirmation dialog for installing Google Play services [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_install_button=0x7f060003;
+ /** (For phones) Message in confirmation dialog informing user that
+ they need to install Google Play services (from Play Store) [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_install_text_phone=0x7f060001;
+ /** (For tablets) Message in confirmation dialog informing user that
+ they need to install Google Play services (from Play Store) [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_install_text_tablet=0x7f060002;
+ /** Title of confirmation dialog informing user that they need to install
+ Google Play services (from Play Store) [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_install_title=0x7f060000;
+ /** Message in confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_invalid_account_text=0x7f06000c;
+ /** Title of confirmation dialog informing the user that they provided an invalid account. [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_invalid_account_title=0x7f06000b;
+ /** Message in confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_network_error_text=0x7f06000a;
+ /** Title of confirmation dialog informing the user that a network error occurred. [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_network_error_title=0x7f060009;
+ /** Message in confirmation dialog informing user there is an unknown issue in Google Play
+ services [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_unknown_issue=0x7f06000d;
+ /** Message in confirmation dialog informing user that date on the device is not correct,
+ causing certificate checks to fail. [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_unsupported_date_text=0x7f060010;
+ /** Message in confirmation dialog informing user that Google Play services is not supported on their device [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_unsupported_text=0x7f06000f;
+ /** Title of confirmation dialog informing user that Google Play services is not supported on their device [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_unsupported_title=0x7f06000e;
+ /** Button in confirmation dialog for updating Google Play services [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_update_button=0x7f060011;
+ /** Message in confirmation dialog informing user that they need to update
+ Google Play services (from Play Store) [CHAR LIMIT=NONE]
+ */
+ public static final int common_google_play_services_update_text=0x7f060008;
+ /** Title of confirmation dialog informing user that they need to update
+ Google Play services (from Play Store) [CHAR LIMIT=40]
+ */
+ public static final int common_google_play_services_update_title=0x7f060007;
+ /** Sign-in button text [CHAR LIMIT=15]
+ */
+ public static final int common_signin_button_text=0x7f060012;
+ /** Long form sign-in button text [CHAR LIMIT=30]
+ */
+ public static final int common_signin_button_text_long=0x7f060013;
+ public static final int hello_world=0x7f06001c;
+ }
+ public static final class style {
+ /**
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+
+
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+
+
+ Base application theme for API 11+. This theme completely replaces
+ AppBaseTheme from res/values/styles.xml on API 11+ devices.
+
+ API 11 theme customizations can go here.
+
+ Base application theme for API 14+. This theme completely replaces
+ AppBaseTheme from BOTH res/values/styles.xml and
+ res/values-v11/styles.xml on API 14+ devices.
+
+ API 14 theme customizations can go here.
+ */
+ public static final int AppBaseTheme=0x7f090000;
+ /** Application theme.
+ All customizations that are NOT specific to a particular API-level can go here.
+ */
+ public static final int AppTheme=0x7f090001;
+ }
+ public static final class styleable {
+ /** Attributes that can be used with a AdsAttrs.
+
Includes the following attributes:
+| Attribute | Description |
|---|---|
{@link #AdsAttrs_adSize mangavalk.tetris:adSize} | + The size of the ad. |
{@link #AdsAttrs_adSizes mangavalk.tetris:adSizes} | + A comma-separated list of the supported ad sizes. |
{@link #AdsAttrs_adUnitId mangavalk.tetris:adUnitId} | The ad unit ID. |
+ @attr description + + The size of the ad. It must be one of BANNER, FULL_BANNER, LEADERBOARD, + MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or + <width>x<height>. + + + +
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. +
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+
This is a private symbol. + @attr name mangavalk.tetris:adSize + */ + public static final int AdsAttrs_adSize = 0; + /** +
+ @attr description + + A comma-separated list of the supported ad sizes. The sizes must be one of + BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER, + WIDE_SKYSCRAPER, or <width>x<height>. + + + +
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. +
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+
This is a private symbol. + @attr name mangavalk.tetris:adSizes + */ + public static final int AdsAttrs_adSizes = 1; + /** +
+ @attr description + The ad unit ID. + + +
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. +
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+
This is a private symbol. + @attr name mangavalk.tetris:adUnitId + */ + public static final int AdsAttrs_adUnitId = 2; + /** Attributes that can be used with a MapAttrs. +
Includes the following attributes:
+| Attribute | Description |
|---|---|
{@link #MapAttrs_cameraBearing mangavalk.tetris:cameraBearing} | |
{@link #MapAttrs_cameraTargetLat mangavalk.tetris:cameraTargetLat} | |
{@link #MapAttrs_cameraTargetLng mangavalk.tetris:cameraTargetLng} | |
{@link #MapAttrs_cameraTilt mangavalk.tetris:cameraTilt} | |
{@link #MapAttrs_cameraZoom mangavalk.tetris:cameraZoom} | |
{@link #MapAttrs_mapType mangavalk.tetris:mapType} | |
{@link #MapAttrs_uiCompass mangavalk.tetris:uiCompass} | |
{@link #MapAttrs_uiRotateGestures mangavalk.tetris:uiRotateGestures} | |
{@link #MapAttrs_uiScrollGestures mangavalk.tetris:uiScrollGestures} | |
{@link #MapAttrs_uiTiltGestures mangavalk.tetris:uiTiltGestures} | |
{@link #MapAttrs_uiZoomControls mangavalk.tetris:uiZoomControls} | |
{@link #MapAttrs_uiZoomGestures mangavalk.tetris:uiZoomGestures} | |
{@link #MapAttrs_useViewLifecycle mangavalk.tetris:useViewLifecycle} | |
{@link #MapAttrs_zOrderOnTop mangavalk.tetris:zOrderOnTop} |
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraBearing} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:cameraBearing
+ */
+ public static final int MapAttrs_cameraBearing = 1;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraTargetLat} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:cameraTargetLat
+ */
+ public static final int MapAttrs_cameraTargetLat = 2;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraTargetLng} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:cameraTargetLng
+ */
+ public static final int MapAttrs_cameraTargetLng = 3;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraTilt} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:cameraTilt
+ */
+ public static final int MapAttrs_cameraTilt = 4;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#cameraZoom} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a floating point value, such as "1.2".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:cameraZoom
+ */
+ public static final int MapAttrs_cameraZoom = 5;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#mapType} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be one of the following constant values.
+| Constant | Value | Description |
|---|---|---|
none | 0 | |
normal | 1 | |
satellite | 2 | |
terrain | 3 | |
hybrid | 4 |
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiCompass} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:uiCompass
+ */
+ public static final int MapAttrs_uiCompass = 6;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiRotateGestures} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:uiRotateGestures
+ */
+ public static final int MapAttrs_uiRotateGestures = 7;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiScrollGestures} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:uiScrollGestures
+ */
+ public static final int MapAttrs_uiScrollGestures = 8;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiTiltGestures} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:uiTiltGestures
+ */
+ public static final int MapAttrs_uiTiltGestures = 9;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiZoomControls} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:uiZoomControls
+ */
+ public static final int MapAttrs_uiZoomControls = 10;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#uiZoomGestures} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:uiZoomGestures
+ */
+ public static final int MapAttrs_uiZoomGestures = 11;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#useViewLifecycle} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:useViewLifecycle
+ */
+ public static final int MapAttrs_useViewLifecycle = 12;
+ /**
+
This symbol is the offset where the {@link mangavalk.tetris.R.attr#zOrderOnTop} + attribute's value can be found in the {@link #MapAttrs} array. + + +
Must be a boolean value, either "true" or "false".
+
This may also be a reference to a resource (in the form
+"@[package:]type:name") or
+theme attribute (in the form
+"?[package:][type:]name")
+containing a value of this type.
+ @attr name mangavalk.tetris:zOrderOnTop
+ */
+ public static final int MapAttrs_zOrderOnTop = 13;
+ };
+}
diff --git a/src/mangavalk/tetris/CanvasView.java b/src/mangavalk/tetris/CanvasView.java
index e798e51..a98916e 100644
--- a/src/mangavalk/tetris/CanvasView.java
+++ b/src/mangavalk/tetris/CanvasView.java
@@ -1,1812 +1,1834 @@
-package mangavalk.tetris;
-
-import android.app.Activity;
-import android.content.Context;
-import android.content.res.Resources;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.graphics.Canvas;
-import android.graphics.Color;
-import android.graphics.Paint;
-import android.graphics.Paint.Style;
-import android.media.MediaPlayer;
-import android.os.Handler;
-import android.util.DisplayMetrics;
-import android.util.TypedValue;
-import android.view.Display;
-import android.view.View;
-
-import java.util.ArrayList;
-import java.util.TimerTask;
-
-public class CanvasView extends View
-{
- //region variabelen
- Resources r;
-
- // Sizes
- float dpHeight;
- float dpWidth;
-
- float Height;
- float Width;
-
- // Block Array
- int[][] blockArray = new int[][]{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
- };
-
- // Draw Array
- int[][] drawArray = new int[][]{
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
- };
-
- int[][][][] drawBlocks = new int[][][][]{
- {
- {
- {0, 0, 0, 0},
- {8, 9, 10, 11},
- {0, 0, 0, 0},
- {0, 0, 0, 0}
- },
- {
- {0, 0, 12, 0},
- {0, 0, 13, 0},
- {0, 0, 14, 0},
- {0, 0, 15, 0}
- },
- {
- {0, 0, 0, 0},
- {0, 0, 0, 0},
- {8, 9, 10, 11},
- {0, 0, 0, 0}
- },
- {
- {0, 12, 0, 0},
- {0, 13, 0, 0},
- {0, 14, 0, 0},
- {0, 15, 0, 0}
- }
- },
- {
- {
- {7, 0, 0, 0},
- {7, 7, 7, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 7, 7, 0},
- {0, 7, 0, 0},
- {0, 7, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 0, 0, 0},
- {7, 7, 7, 0},
- {0, 0, 7, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 7, 0, 0},
- {0, 7, 0, 0},
- {7, 7, 0, 0},
- {0, 0, 0, -1}
- }
- },
- {
- {
- {0, 0, 6, 0},
- {6, 6, 6, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 6, 0, 0},
- {0, 6, 0, 0},
- {0, 6, 6, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 0, 0, 0},
- {6, 6, 6, 0},
- {6, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {6, 6, 0, 0},
- {0, 6, 0, 0},
- {0, 6, 0, 0},
- {0, 0, 0, -1}
- }
- },
- {
- {
- {0, 1, 1, 0},
- {0, 1, 1, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 1, 1, 0},
- {0, 1, 1, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 1, 1, 0},
- {0, 1, 1, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 1, 1, 0},
- {0, 1, 1, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- }
- },
- {
- {
- {0, 3, 3, 0},
- {3, 3, 0, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 3, 0, 0},
- {0, 3, 3, 0},
- {0, 0, 3, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 0, 0, 0},
- {0, 3, 3, 0},
- {3, 3, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {3, 0, 0, 0},
- {3, 3, 0, 0},
- {0, 3, 0, 0},
- {0, 0, 0, -1}
- }
- },
- {
- {
- {0, 2, 0, 0},
- {2, 2, 2, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 2, 0, 0},
- {0, 2, 2, 0},
- {0, 2, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 0, 0, 0},
- {2, 2, 2, 0},
- {0, 2, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 2, 0, 0},
- {2, 2, 0, 0},
- {0, 2, 0, 0},
- {0, 0, 0, -1}
- }
- },
- {
- {
- {5, 5, 0, 0},
- {0, 5, 5, 0},
- {0, 0, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 0, 5, 0},
- {0, 5, 5, 0},
- {0, 5, 0, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 0, 0, 0},
- {5, 5, 0, 0},
- {0, 5, 5, 0},
- {0, 0, 0, -1}
- },
- {
- {0, 5, 0, 0},
- {5, 5, 0, 0},
- {5, 0, 0, 0},
- {0, 0, 0, -1}
- }
- }
- };
-
- int[] LevelSpeed = { 53, 49, 45, 41, 37, 33, 28, 22, 17, 11, 10, 9, 8, 7, 6, 6, 5, 5, 4, 4, 3};
-
- int GameSpaceLeft = 4;
- int GameSpaceTop = 0;
- int GameSpaceRight = 53;
- int GameSpaceBottom = 115;//125
-
- int CurrentBlock = 0;
- int CurrentBlockPossition = 0;
-
- int NewBlock = 0;
- int NewBlockPossition = 0;
-
- boolean goingDown = false;
- boolean NextWillLock = false;
-
- Bitmap bitmapl1, bitmapl2, bitmapt, bitmapb, bitmaps, bitmapz, bitmapi1, bitmapi2, bitmapi3, bitmapi4,
- bitmapi1r, bitmapi2r, bitmapi3r, bitmapi4r, bitmapblockline, bitmapscore, bitmapcontroller, bitmapgameover;
-
- Bitmap Font0, Font1, Font2, Font3, Font4, Font5, Font6, Font7, Font8, Font9;
-
-
- public int startLevel = 0;
- int level = 0;
-
- int lines = 0;
- int score = 0;
-
- boolean GamePlaying = false;
- boolean GameOver = false;
- public boolean PayedVersion;
-
- TimerTask MoveEvent = new TimerTask() {
- @Override
- public void run() {
- GoDown();
- }
- };
-
- private Handler handler = new Handler();
- private Runnable runnable = new Runnable() {
- @Override
- public void run() {
- level = ( (startLevel + lines)<=200 ? startLevel + (lines / 10) : 20 );
- int newSpeed = (int)((1000 / 59.73) * LevelSpeed[level]);
- handler.postDelayed(this, newSpeed);
- GoDown();
- }
- };
-
- MediaPlayer mp;
-
- //endregion variabelen
-
- /// Init functions
-
- public CanvasView(Context context)
- {
- super(context);
-
- super.setBackgroundColor(Color.BLACK);
-
- SpawnBlock();
-
- this.postInvalidate();
- }
-
- public void SetActivity(Activity activity)
- {
- Display display = activity.getWindowManager().getDefaultDisplay();
- DisplayMetrics outMetrics = new DisplayMetrics ();
- display.getMetrics(outMetrics);
-
- r = getResources();
-
- float density = getResources().getDisplayMetrics().density;
-
- dpHeight = outMetrics.heightPixels / density;
- dpWidth = outMetrics.widthPixels / density;
-
- Height = outMetrics.heightPixels;
- Width = outMetrics.widthPixels;
-
- // Sprites
-
- bitmapl1 = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_l1);
-
- bitmapl1 = Bitmap.createScaledBitmap(bitmapl1,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapl2 = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_l2);
-
- bitmapl2 = Bitmap.createScaledBitmap(bitmapl2,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapt = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_t);
-
- bitmapt = Bitmap.createScaledBitmap(bitmapt,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapb = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_b);
-
- bitmapb = Bitmap.createScaledBitmap(bitmapb,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmaps = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_s);
-
- bitmaps= Bitmap.createScaledBitmap(bitmaps,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapz = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_z);
-
- bitmapz = Bitmap.createScaledBitmap(bitmapz,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi1 = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i1);
-
- bitmapi1 = Bitmap.createScaledBitmap(bitmapi1,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi2 = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i2);
-
- bitmapi2 = Bitmap.createScaledBitmap(bitmapi2,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi3 = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i3);
-
- bitmapi3 = Bitmap.createScaledBitmap(bitmapi3,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi4 = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i4);
-
- bitmapi4 = Bitmap.createScaledBitmap(bitmapi4,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi1r = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i1r);
-
- bitmapi1r = Bitmap.createScaledBitmap(bitmapi1r,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi2r = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i2r);
-
- bitmapi2r = Bitmap.createScaledBitmap(bitmapi2r,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi3r = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i3r);
-
- bitmapi3r = Bitmap.createScaledBitmap(bitmapi3r,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
- bitmapi4r = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_i4r);
-
- bitmapi4r = Bitmap.createScaledBitmap(bitmapi4r,
- (int)GetRealPixelSize(DIP_W, dpWidth, 0.1f + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight))),
- (int)GetRealPixelSize(DIP_H, dpHeight, 0.1f + (map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom))), false);
-
-
- bitmapblockline = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_blockline);
-
- bitmapblockline = Bitmap.createScaledBitmap(bitmapblockline,
- (int)GetRealPixelSize(DIP_W, dpWidth, 4),
- (int)GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom-GameSpaceTop), false);
-
- if (PayedVersion)
- {
- bitmapscore = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_score);
- }
- else
- {
- bitmapscore = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_freeversion);
- }
-
- bitmapscore = Bitmap.createScaledBitmap(bitmapscore,
- (int)GetRealPixelSize(DIP_W, dpWidth, 90-GameSpaceRight-4),
- (int)GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom-GameSpaceTop), false);
-
- bitmapcontroller = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_controler);
-
- bitmapcontroller = Bitmap.createScaledBitmap(bitmapcontroller,
- (int)GetRealPixelSize(DIP_W, dpWidth, 90),
- (int)GetRealPixelSize(DIP_H, dpHeight, (160 - GameSpaceBottom)), false);
-
- bitmapgameover = BitmapFactory.decodeResource(getResources(),
- R.drawable.sprite_gameover);
-
- bitmapgameover = Bitmap.createScaledBitmap(bitmapgameover,
- (int)GetRealPixelSize(DIP_W, dpWidth, (GameSpaceRight - GameSpaceLeft)),
- (int)GetRealPixelSize(DIP_H, dpHeight, (GameSpaceBottom - GameSpaceTop)), false);
-
- Font0 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f0);
-
- Font0 = Bitmap.createScaledBitmap(Font0,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font1 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f1);
-
- Font1 = Bitmap.createScaledBitmap(Font1,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font2 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f2);
-
- Font2 = Bitmap.createScaledBitmap(Font2,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font3 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f3);
-
- Font3 = Bitmap.createScaledBitmap(Font3,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font4 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f4);
-
- Font4 = Bitmap.createScaledBitmap(Font4,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font5 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f5);
-
- Font5 = Bitmap.createScaledBitmap(Font5,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font6 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f6);
-
- Font6 = Bitmap.createScaledBitmap(Font6,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font7 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f7);
-
- Font7 = Bitmap.createScaledBitmap(Font7,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font8 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f8);
-
- Font8 = Bitmap.createScaledBitmap(Font8,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
- Font9 = BitmapFactory.decodeResource(getResources(),
- R.drawable.f9);
-
- Font9 = Bitmap.createScaledBitmap(Font9,
- (int)GetRealPixelSize(DIP_W, dpWidth, 5),
- (int)GetRealPixelSize(DIP_H, dpHeight, 6), false);
-
-
- NewBlock = (int)(Math.random() * (7));
-
- NewBlock = Tetrimino.get(0);
- Tetrimino.remove(0);
- NewBlockPossition = 0;
-
- // Audio
- mp = MediaPlayer.create(activity, R.raw.tetris_a);
- mp.setLooping(true);
- mp.start();
-
- GamePlaying = true;
-
- handler.removeCallbacksAndMessages(null);
- handler.postDelayed(runnable, 100);
- }
-
- /// Draw functions
-
- @Override
- protected void onDraw(Canvas canvas)
- {
- DrawGameSpace(canvas);
- }
-
- public void onPause()
- {
- mp.pause();
- GamePlaying = false;
- }
-
- public void onResume()
- {
-
- }
-
- private void DrawGameSpace(Canvas canvas)
- {
- // Sides
- canvas.drawBitmap(bitmapblockline, GetRealPixelSize(DIP_W, dpWidth, 0), GetRealPixelSize(DIP_H, dpHeight, GameSpaceTop), null);
- canvas.drawBitmap(bitmapblockline, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight), GetRealPixelSize(DIP_H, dpHeight, GameSpaceTop), null);
-
- canvas.drawBitmap(bitmapcontroller, GetRealPixelSize(DIP_W, dpWidth, 0), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom), null);
-
- // Score
- canvas.drawBitmap(bitmapscore, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4), GetRealPixelSize(DIP_H, dpHeight, GameSpaceTop), null);
-
- if (PayedVersion)
- {
- DrawLines(canvas, lines);
- DrawLevel(canvas, startLevel + level);
- DrawScore(canvas, score);
-
- int top = 32;
-
- for (int x=0; x<4; x++)
- {
- for (int y=0; y<4; y++)
- {
- switch(drawBlocks[NewBlock][NewBlockPossition][y][x])
- {
- case 1:
- canvas.drawBitmap(bitmapb, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 2:
- canvas.drawBitmap(bitmapt, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 3:
- canvas.drawBitmap(bitmapz, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 5:
- canvas.drawBitmap(bitmaps, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 6:
- canvas.drawBitmap(bitmapl2, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 7:
- canvas.drawBitmap(bitmapl1, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 8:
- canvas.drawBitmap(bitmapi1, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 9:
- canvas.drawBitmap(bitmapi2, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 10:
- canvas.drawBitmap(bitmapi3, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 11:
- canvas.drawBitmap(bitmapi4, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 12:
- canvas.drawBitmap(bitmapi1r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 13:
- canvas.drawBitmap(bitmapi2r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 14:
- canvas.drawBitmap(bitmapi3r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- case 15:
- canvas.drawBitmap(bitmapi4r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 4, GameSpaceRight + 4 + 9, GameSpaceRight + 4 + 9 + (map(1, 0, 10, GameSpaceLeft, GameSpaceRight) - map(0, 0, 10, GameSpaceLeft, GameSpaceRight)) * 4)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 4, (GameSpaceBottom - top), (GameSpaceBottom - top) + ((map(1, 0, 18, GameSpaceTop, GameSpaceBottom) - map(0, 0, 18, GameSpaceTop, GameSpaceBottom)) * 4))), null);
- break;
- }
- }
- }
- }
-
- for (int x=0; x<10; x++)
- {
- for (int y=0; y<18; y++)
- {
- switch (drawArray[y][x] + (blockArray[y][x] >= 0 ? blockArray[y][x] : 0))
- {
- case 0:
- break;
- case 1:
- {
- canvas.drawBitmap(bitmapb, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 2:
- {
- canvas.drawBitmap(bitmapt, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 3:
- {
- canvas.drawBitmap(bitmapz, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 5:
- {
- canvas.drawBitmap(bitmaps, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 6:
- {
- canvas.drawBitmap(bitmapl2, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 7:
- {
- canvas.drawBitmap(bitmapl1, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 8:
- {
- canvas.drawBitmap(bitmapi1, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 9:
- {
- canvas.drawBitmap(bitmapi2, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 10:
- {
- canvas.drawBitmap(bitmapi3, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 11:
- {
- canvas.drawBitmap(bitmapi4, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 12: // Rotated
- {
- canvas.drawBitmap(bitmapi1r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 13:
- {
- canvas.drawBitmap(bitmapi2r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 14:
- {
- canvas.drawBitmap(bitmapi3r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- case 15:
- {
- canvas.drawBitmap(bitmapi4r, (int)GetRealPixelSize(DIP_W, dpWidth, map(x, 0, 10, GameSpaceLeft, GameSpaceRight)),
- (int)GetRealPixelSize(DIP_H, dpHeight, map(y, 0, 18, GameSpaceTop, GameSpaceBottom)), null);
- break;
- }
- default:
- {
-
- Rect(canvas, map(y, 0, 18, GameSpaceTop, GameSpaceBottom), map(y+1, 0, 18, GameSpaceTop, GameSpaceBottom),
- map(x, 0, 10, GameSpaceLeft, GameSpaceRight), map(x+1, 0, 10, GameSpaceLeft, GameSpaceRight),
- Color.RED);
- break;
- }
- }
- }
- }
-
- if (GameOver)
- {
- canvas.drawBitmap(bitmapgameover, (int)GetRealPixelSize(DIP_W, dpWidth, GameSpaceLeft),
- (int)GetRealPixelSize(DIP_H, dpHeight, GameSpaceTop), null);
- }
- }
-
- private void DrawScore(Canvas canvas, int Score)
- {
- int height = 104-8;
- switch ((Score / 100000) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6-5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch ((Score / 10000) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch ((Score / 1000) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch ((Score / 100) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch ((Score / 10) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch (Score % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- }
-
- private void DrawLines(Canvas canvas, int Lines)
- {
- int height = 55-4;
- switch ((Lines / 1000) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch ((Lines / 100) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch ((Lines / 10) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch (Lines % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- }
-
- private void DrawLevel(Canvas canvas, int Level)
- {
- int height = 76-6;
- switch ((Level / 10) % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- switch (Level % 10)
- {
- case 0:
- canvas.drawBitmap(Font0, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 1:
- canvas.drawBitmap(Font1, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 2:
- canvas.drawBitmap(Font2, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 3:
- canvas.drawBitmap(Font3, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 4:
- canvas.drawBitmap(Font4, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 5:
- canvas.drawBitmap(Font5, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 6:
- canvas.drawBitmap(Font6, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 7:
- canvas.drawBitmap(Font7, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 8:
- canvas.drawBitmap(Font8, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- case 9:
- canvas.drawBitmap(Font9, GetRealPixelSize(DIP_W, dpWidth, GameSpaceRight+4+6+5+5+5), GetRealPixelSize(DIP_H, dpHeight, GameSpaceBottom - height), null);
- break;
- }
- }
-
- int OldInputTime=0;
-
- /// Input
- public void sendMove(float x, float y, boolean Released)
- {
- int moveX = (int)((x / Width) * 90);
- int moveY = (int)((y / Height) * 160);
-
- if (!Released)
- {
- if (!GameOver)
- {
- if (moveX >= 28 && moveX <= 55 && moveY >= 143 && moveY <= 155) // Menu
- {
- if (GamePlaying)
- onPause();
- else
- {
- mp.start();
- GamePlaying = true;
- }
- }
- }
- }
-
- if (!goingDown)
- {
- if (GamePlaying)
- {
- if (!GameOver)
- {
- if (!Released)
- {
- if (moveX >= 1 && moveX <= 11 && moveY >= 122 && moveY <= 133) // Left
- {
- if(CanBlockGoLeft())
- {
- MoveBlockLeft();
- this.postInvalidate();
- }
- }
- else if (moveX >= 55 && moveX <= 70 && moveY >= 122 && moveY <= 137) // Rotate Left
- {
- RotateBlockLeft();
- this.postInvalidate();
- }
- else if (moveX >= 74 && moveX <= 88 && moveY >= 115 && moveY <= 137) // Rotate Right
- {
- RotateBlockRight();
- this.postInvalidate();
- }
- else if (moveX >= 21 && moveX <= 33 && moveY >= 122 && moveY <= 133) // Right
- {
- if(CanBlockGoRight())
- {
- MoveBlockRight();
- this.postInvalidate();
- }
- }
- }
- if (moveX >= 11 && moveX <= 21 && moveY >= 133 && moveY <= 144) // Down
- {
- if (!Released)
- {
- // Soft Drop
- if (CanBlockGoDown())
- {
- MoveBlockDown();
- this.postInvalidate();
- }
- OldInputTime = (int)System.currentTimeMillis();
- }
- else
- {
- int CurrentTime = (int)System.currentTimeMillis();
- if ((CurrentTime - OldInputTime) >= 250)
- {
- // Hard Drop
- while (CanBlockGoDown())
- {
- MoveBlockDown();
- }
- this.postInvalidate();
- }
- }
- }
- }
- }
- }
- }
-
- /// Game Logic
- private void GoDown()
- {
- if (GamePlaying)
- {
- if (!GameOver)
- {
- goingDown = true;
-
- /// Can the Block go down?
- if (CanBlockGoDown())
- {
- MoveBlockDown();
- this.postInvalidate();
- }
- else
- {
- NextWillLock = false;
-
- ParseBlockArrayToDrawArray();
-
- CheckForCompletedRows();
-
- //spawn new block
- if (!SpawnBlock())
- {
- // GameOver
- GameOver = true;
- GamePlaying = false;
- mp.stop();
- this.postInvalidate();
- }
- else
- {
- this.postInvalidate();
- }
- }
-
- goingDown = false;
- }
- }
- }
-
- private boolean CanBlockGoDown()
- {
- //blockArray
- for (int x=0; x<10; x++)
- {
- for (int y=0; y<18; y++)
- {
- if (blockArray[y][x] != 0)
- {
- if (y + 1 == 18)
- return false;
- else if (drawArray[y+1][x] != 0)
- return false;
- }
- }
- }
-
- return true;
- }
-
- private boolean CanBlockGoLeft()
- {
- //blockArray
- for (int y=0; y<18; y++)
- {
- for (int x=1; x<10; x++)
- {
- if (blockArray[y][x] >= 1)
- {
- if (drawArray[y][x-1] != 0)
- return false;
- }
- if (blockArray[y][0] >= 1)
- return false;
- }
- }
-
- return true;
- }
-
- private boolean CanBlockGoRight()
- {
- //blockArray
- for (int y=0; y<18; y++)
- {
- for (int x=0; x<9; x++)
- {
- if (blockArray[y][x] >= 1)
- {
- if (drawArray[y][x+1] != 0)
- return false;
- }
- if (blockArray[y][9] >= 1)
- return false;
- }
- }
-
- return true;
- }
-
- private void MoveBlockDown()
- {
- for (int x=0; x<10; x++)
- {
- for (int y=17; y>0; y--)
- {
- blockArray[y][x] = blockArray[y-1][x];
- blockArray[y-1][x] = 0;
- }
- }
- }
-
- private void MoveBlockLeft()
- {
- for (int y=0; y<18; y++)
- {
- for (int x=1; x<10; x++)
- {
- blockArray[y][x-1] = blockArray[y][x];
- blockArray[y][x] = 0;
- }
- }
- }
-
- private void MoveBlockRight()
- {
- for (int y=0; y<18; y++)
- {
- for (int x=8; x>=0; x--)
- {
- blockArray[y][x+1] = blockArray[y][x];
- blockArray[y][x] = 0;
- }
- }
- }
-
- private void RotateBlockRight()
- {
- if (drawBlocks[CurrentBlock][CurrentBlockPossition][3][3] != -1)
- {
- for (int y=0; y<18-3; y++)
- {
- for (int x=0; x<10-3; x++)
- {
- boolean foundPossition = true;
-
- for (int i=0; i<4; i++)
- {
- for (int i2=0; i2<4; i2++)
- {
- if (!(blockArray[y+i][x+i2] == drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2]))
- {
- foundPossition = false;
- }
- }
- }
-
-
- if (foundPossition)
- {
- if (CurrentBlockPossition < 3)
- CurrentBlockPossition++;
- else
- CurrentBlockPossition = 0;
- }
-
- // Test for collision !!!
- boolean Collision = false;
-
- for (int i=0; i<4; i++)
- {
- for (int i2=0; i2<4; i2++)
- {
- if (drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2] >= 1)
- {
- if (drawArray[y+i][x+i2] != 0)
- {
- Collision = true;
- }
- }
- }
- }
-
- if (!Collision)
- {
- if (foundPossition)
- {
- for (int i=0; i<4; i++)
- {
- for (int i2=0; i2<4; i2++)
- {
- blockArray[y+i][x+i2] = drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2];
- }
- }
- }
- }
- }
- }
- }
- else
- {
- for (int y=0; y<18-2; y++)
- {
- for (int x=0; x<10-2; x++)
- {
- boolean foundPossition = true;
-
- for (int i=0; i<3; i++)
- {
- for (int i2=0; i2<3; i2++)
- {
- if (!(blockArray[y+i][x+i2] == drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2]))
- {
- foundPossition = false;
- }
- }
- }
-
- if (foundPossition)
- {
- if (CurrentBlockPossition < 3)
- CurrentBlockPossition++;
- else
- CurrentBlockPossition = 0;
- }
-
- // Test for collision !!!
- boolean Collision = false;
-
- for (int i=0; i<3; i++)
- {
- for (int i2=0; i2<3; i2++)
- {
- if (drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2] >= 1)
- {
- if (drawArray[y+i][x+i2] != 0)
- {
- Collision = true;
- }
- }
- }
- }
-
- if (!Collision)
- {
- if (foundPossition)
- {
- for (int i=0; i<3; i++)
- {
- for (int i2=0; i2<3; i2++)
- {
- blockArray[y+i][x+i2] = drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2];
- }
- }
- }
- }
- }
- }
- }
- }
-
- private void RotateBlockLeft()
- {
- if (drawBlocks[CurrentBlock][CurrentBlockPossition][3][3] != -1)
- {
- for (int y=0; y<18-3; y++)
- {
- for (int x=0; x<10-3; x++)
- {
- boolean foundPossition = true;
-
- for (int i=0; i<4; i++)
- {
- for (int i2=0; i2<4; i2++)
- {
- if (!(blockArray[y+i][x+i2] == drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2]))
- {
- foundPossition = false;
- }
- }
- }
-
- // Test for collision !!!
- boolean Collision = false;
-
- if (foundPossition)
- {
- if (CurrentBlockPossition > 0)
- CurrentBlockPossition--;
- else
- CurrentBlockPossition = 3;
- }
-
- for (int i=0; i<4; i++)
- {
- for (int i2=0; i2<4; i2++)
- {
- if (drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2] != 0)
- {
- if (drawArray[y+i][x+i2] != 0)
- {
- Collision = true;
- }
- }
- }
- }
-
- if (!Collision)
- {
- if (foundPossition)
- {
- for (int i=0; i<4; i++)
- {
- for (int i2=0; i2<4; i2++)
- {
- blockArray[y+i][x+i2] = drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2];
- }
- }
- }
- }
- }
- }
- }
- else
- {
- for (int y=0; y<18-2; y++)
- {
- for (int x=0; x<10-2; x++)
- {
- boolean foundPossition = true;
-
- for (int i=0; i<3; i++)
- {
- for (int i2=0; i2<3; i2++)
- {
- if (!(blockArray[y+i][x+i2] == drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2]))
- {
- foundPossition = false;
- }
- }
- }
-
- // Test for collision !!!
- boolean Collision = false;
-
- if (foundPossition)
- {
- if (CurrentBlockPossition > 0)
- CurrentBlockPossition--;
- else
- CurrentBlockPossition = 3;
- }
-
- for (int i=0; i<3; i++)
- {
- for (int i2=0; i2<3; i2++)
- {
- if (drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2] != 0)
- {
- if (drawArray[y+i][x+i2] != 0)
- {
- Collision = true;
- }
- }
- }
- }
-
- if (!Collision)
- {
- if (foundPossition)
- {
- for (int i=0; i<3; i++)
- {
- for (int i2=0; i2<3; i2++)
- {
- blockArray[y+i][x+i2] = drawBlocks[CurrentBlock][CurrentBlockPossition][i][i2];
- }
- }
- }
- }
- }
- }
- }
- }
-
- private void ParseBlockArrayToDrawArray()
- {
- for (int x=0; x<10; x++)
- {
- for (int y=0; y<18; y++)
- {
- drawArray[y][x] += blockArray[y][x];
- blockArray[y][x] = 0;
- }
- }
- }
-
- private void CheckForCompletedRows()
- {
- int LinesCleared = 0;
- //drawArray
- for (int y=17; y>1; y--)
- {
- boolean isComplete = true;
-
- for (int x=0; x<10; x++)
- {
- if (drawArray[y][x] == 0)
- isComplete = false;
- }
-
- if (isComplete)
- {
- for (int i=y; i>1; i--)
- for (int x=0; x<10; x++)
- {
- drawArray[i][x] = drawArray[i-1][x];
- }
- LinesCleared++;
- lines++;
- level = ( (startLevel + lines)<=200 ? startLevel + (lines / 10) : 20 );
- y++;
- }
- }
- // Do Score here
- switch (LinesCleared)
- {
- case 1:
- score += 40 * ( level + 1 );
- break;
- case 2:
- score += 100 * ( level + 1 );
- break;
- case 3:
- score += 300 * ( level + 1 );
- break;
- case 4:
- score += 1200 * ( level + 1 );
- break;
- }
- }
-
- ArrayList