This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Kryszard's Loot Filter ver 1.6 | |
| // | |
| // twitch.tv/kryszard | |
| // | |
| // For Casual and EndGame Players | |
| //Gold | |
| ItemDisplay[GOLD<100 CLVL<20]: | |
| ItemDisplay[GOLD<1000 (CLVL>19 AND CLVL<80)]: | |
| ItemDisplay[GOLD<5000 CLVL>79]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PuzzlePieceTouchListener implements View.OnTouchListener { | |
| private static final int MAX_CLICK_DURATION = 100; | |
| private long startClickTime; | |
| private float offsetX; | |
| private float offsetY; | |
| private float orgX; | |
| private float orgY; | |
| private int imageBorder; | |
| public PuzzlePieceTouchListener(int imageBorder) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.constraint.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".PuzzleActivity" | |
| android:id="@+id/root_layout"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.tutorial.puzzle.mypuzzlegame; | |
| import android.content.Context; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| public class PuzzlePiece extends android.support.v7.widget.AppCompatImageView { | |
| public static final List<Integer> rotationAngle = Arrays.asList(0, 90, 180, 270); | |
| private int originalX; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.constraint.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".MainActivity"> | |
| <ImageView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.tutorial.puzzle.mypuzzlegame.; | |
| import android.content.Intent; | |
| import android.graphics.Bitmap; | |
| import android.graphics.drawable.BitmapDrawable; | |
| import android.provider.MediaStore; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.Button; |