diff --git a/FishGame/.idea/encodings.xml b/FishGame/.idea/encodings.xml
new file mode 100644
index 0000000..6e8e052
--- /dev/null
+++ b/FishGame/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FishGame/.idea/misc.xml b/FishGame/.idea/misc.xml
new file mode 100644
index 0000000..84da703
--- /dev/null
+++ b/FishGame/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FishGame/.idea/modules.xml b/FishGame/.idea/modules.xml
new file mode 100644
index 0000000..8682e5e
--- /dev/null
+++ b/FishGame/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FishGame/.idea/vcs.xml b/FishGame/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/FishGame/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FishGame/.idea/workspace.xml b/FishGame/.idea/workspace.xml
new file mode 100644
index 0000000..97a03bc
--- /dev/null
+++ b/FishGame/.idea/workspace.xml
@@ -0,0 +1,524 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1563781961368
+
+
+ 1563781961368
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No facets are configured
+
+
+
+
+
+
+
+
+
+
+
+ Python 3.5 (pyweb) interpreter library
+
+
+
+
+
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
+
+
+
+ FishGame
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FishGame/FishGame.iml b/FishGame/FishGame.iml
new file mode 100644
index 0000000..99c0194
--- /dev/null
+++ b/FishGame/FishGame.iml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/FishGame/bin/com/mypro/base/graphics/Bitmap.class b/FishGame/bin/com/mypro/base/graphics/Bitmap.class
index 93488c9..23234d5 100644
Binary files a/FishGame/bin/com/mypro/base/graphics/Bitmap.class and b/FishGame/bin/com/mypro/base/graphics/Bitmap.class differ
diff --git a/FishGame/bin/com/mypro/base/graphics/Canvas.class b/FishGame/bin/com/mypro/base/graphics/Canvas.class
index 49a1758..8b00bce 100644
Binary files a/FishGame/bin/com/mypro/base/graphics/Canvas.class and b/FishGame/bin/com/mypro/base/graphics/Canvas.class differ
diff --git a/FishGame/bin/com/mypro/base/graphics/Matrix.class b/FishGame/bin/com/mypro/base/graphics/Matrix.class
index dc2fd27..475da93 100644
Binary files a/FishGame/bin/com/mypro/base/graphics/Matrix.class and b/FishGame/bin/com/mypro/base/graphics/Matrix.class differ
diff --git a/FishGame/bin/com/mypro/base/graphics/Paint.class b/FishGame/bin/com/mypro/base/graphics/Paint.class
index 58edecf..d81c264 100644
Binary files a/FishGame/bin/com/mypro/base/graphics/Paint.class and b/FishGame/bin/com/mypro/base/graphics/Paint.class differ
diff --git a/FishGame/bin/com/mypro/base/tools/Log.class b/FishGame/bin/com/mypro/base/tools/Log.class
index 3230347..f828b49 100644
Binary files a/FishGame/bin/com/mypro/base/tools/Log.class and b/FishGame/bin/com/mypro/base/tools/Log.class differ
diff --git a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$1.class b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$1.class
index e905583..66caf60 100644
Binary files a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$1.class and b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$1.class differ
diff --git a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$2.class b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$2.class
index 837aff6..5d82af7 100644
Binary files a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$2.class and b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$2.class differ
diff --git a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$3.class b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$3.class
new file mode 100644
index 0000000..a99ab0e
Binary files /dev/null and b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet$3.class differ
diff --git a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet.class b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet.class
index 88a9e67..b2b52b1 100644
Binary files a/FishGame/bin/com/mypro/basecomponet/AwtMainComponet.class and b/FishGame/bin/com/mypro/basecomponet/AwtMainComponet.class differ
diff --git a/FishGame/bin/com/mypro/basecomponet/JMatrix.class b/FishGame/bin/com/mypro/basecomponet/JMatrix.class
index 81c1ac1..52f1a9f 100644
Binary files a/FishGame/bin/com/mypro/basecomponet/JMatrix.class and b/FishGame/bin/com/mypro/basecomponet/JMatrix.class differ
diff --git a/FishGame/bin/com/mypro/constant/Constant.class b/FishGame/bin/com/mypro/constant/Constant.class
index 25bbcd8..b5c65b2 100644
Binary files a/FishGame/bin/com/mypro/constant/Constant.class and b/FishGame/bin/com/mypro/constant/Constant.class differ
diff --git a/FishGame/bin/com/mypro/mainsurface/MainSurface$1.class b/FishGame/bin/com/mypro/mainsurface/MainSurface$1.class
new file mode 100644
index 0000000..ec885d2
Binary files /dev/null and b/FishGame/bin/com/mypro/mainsurface/MainSurface$1.class differ
diff --git a/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas$JPaint.class b/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas$JPaint.class
index f663116..d1001bc 100644
Binary files a/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas$JPaint.class and b/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas$JPaint.class differ
diff --git a/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas.class b/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas.class
index 3268fe3..97ab68d 100644
Binary files a/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas.class and b/FishGame/bin/com/mypro/mainsurface/MainSurface$JCanvas.class differ
diff --git a/FishGame/bin/com/mypro/mainsurface/MainSurface$OnDrawThread.class b/FishGame/bin/com/mypro/mainsurface/MainSurface$OnDrawThread.class
index 835ffea..d09a231 100644
Binary files a/FishGame/bin/com/mypro/mainsurface/MainSurface$OnDrawThread.class and b/FishGame/bin/com/mypro/mainsurface/MainSurface$OnDrawThread.class differ
diff --git a/FishGame/bin/com/mypro/mainsurface/MainSurface.class b/FishGame/bin/com/mypro/mainsurface/MainSurface.class
index 98bf355..664b3bb 100644
Binary files a/FishGame/bin/com/mypro/mainsurface/MainSurface.class and b/FishGame/bin/com/mypro/mainsurface/MainSurface.class differ
diff --git a/FishGame/bin/com/mypro/manager/CannonManager$1.class b/FishGame/bin/com/mypro/manager/CannonManager$1.class
index 92d6ac6..409e12f 100644
Binary files a/FishGame/bin/com/mypro/manager/CannonManager$1.class and b/FishGame/bin/com/mypro/manager/CannonManager$1.class differ
diff --git a/FishGame/bin/com/mypro/manager/CannonManager.class b/FishGame/bin/com/mypro/manager/CannonManager.class
index 76a6e69..e27dde5 100644
Binary files a/FishGame/bin/com/mypro/manager/CannonManager.class and b/FishGame/bin/com/mypro/manager/CannonManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/CatchFishManager$1.class b/FishGame/bin/com/mypro/manager/CatchFishManager$1.class
index 2f4f010..2f3769e 100644
Binary files a/FishGame/bin/com/mypro/manager/CatchFishManager$1.class and b/FishGame/bin/com/mypro/manager/CatchFishManager$1.class differ
diff --git a/FishGame/bin/com/mypro/manager/CatchFishManager$2.class b/FishGame/bin/com/mypro/manager/CatchFishManager$2.class
index a44c539..ccf9052 100644
Binary files a/FishGame/bin/com/mypro/manager/CatchFishManager$2.class and b/FishGame/bin/com/mypro/manager/CatchFishManager$2.class differ
diff --git a/FishGame/bin/com/mypro/manager/CatchFishManager.class b/FishGame/bin/com/mypro/manager/CatchFishManager.class
index 6673f45..3a74774 100644
Binary files a/FishGame/bin/com/mypro/manager/CatchFishManager.class and b/FishGame/bin/com/mypro/manager/CatchFishManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/FishManager.class b/FishGame/bin/com/mypro/manager/FishManager.class
index d23eb1e..5fbb838 100644
Binary files a/FishGame/bin/com/mypro/manager/FishManager.class and b/FishGame/bin/com/mypro/manager/FishManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/GameInitManager.class b/FishGame/bin/com/mypro/manager/GameInitManager.class
index 35b3832..41ef1de 100644
Binary files a/FishGame/bin/com/mypro/manager/GameInitManager.class and b/FishGame/bin/com/mypro/manager/GameInitManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/GamePartInfo.class b/FishGame/bin/com/mypro/manager/GamePartInfo.class
index c5c082a..99996a2 100644
Binary files a/FishGame/bin/com/mypro/manager/GamePartInfo.class and b/FishGame/bin/com/mypro/manager/GamePartInfo.class differ
diff --git a/FishGame/bin/com/mypro/manager/GamePartManager$1.class b/FishGame/bin/com/mypro/manager/GamePartManager$1.class
index 3853456..fa56f40 100644
Binary files a/FishGame/bin/com/mypro/manager/GamePartManager$1.class and b/FishGame/bin/com/mypro/manager/GamePartManager$1.class differ
diff --git a/FishGame/bin/com/mypro/manager/GamePartManager.class b/FishGame/bin/com/mypro/manager/GamePartManager.class
index 035e72f..5aabd94 100644
Binary files a/FishGame/bin/com/mypro/manager/GamePartManager.class and b/FishGame/bin/com/mypro/manager/GamePartManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/HeadFish.class b/FishGame/bin/com/mypro/manager/HeadFish.class
index 6cdb160..d8d5534 100644
Binary files a/FishGame/bin/com/mypro/manager/HeadFish.class and b/FishGame/bin/com/mypro/manager/HeadFish.class differ
diff --git a/FishGame/bin/com/mypro/manager/ImageConfig$ActConfig.class b/FishGame/bin/com/mypro/manager/ImageConfig$ActConfig.class
index 95e1e64..50557cb 100644
Binary files a/FishGame/bin/com/mypro/manager/ImageConfig$ActConfig.class and b/FishGame/bin/com/mypro/manager/ImageConfig$ActConfig.class differ
diff --git a/FishGame/bin/com/mypro/manager/ImageConfig.class b/FishGame/bin/com/mypro/manager/ImageConfig.class
index a325291..b4e0303 100644
Binary files a/FishGame/bin/com/mypro/manager/ImageConfig.class and b/FishGame/bin/com/mypro/manager/ImageConfig.class differ
diff --git a/FishGame/bin/com/mypro/manager/ImageManager.class b/FishGame/bin/com/mypro/manager/ImageManager.class
index 29fef39..072676b 100644
Binary files a/FishGame/bin/com/mypro/manager/ImageManager.class and b/FishGame/bin/com/mypro/manager/ImageManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/LayoutInfo.class b/FishGame/bin/com/mypro/manager/LayoutInfo.class
index ff759f1..9c9056f 100644
Binary files a/FishGame/bin/com/mypro/manager/LayoutInfo.class and b/FishGame/bin/com/mypro/manager/LayoutInfo.class differ
diff --git a/FishGame/bin/com/mypro/manager/LayoutManager$1.class b/FishGame/bin/com/mypro/manager/LayoutManager$1.class
index 5190980..6675420 100644
Binary files a/FishGame/bin/com/mypro/manager/LayoutManager$1.class and b/FishGame/bin/com/mypro/manager/LayoutManager$1.class differ
diff --git a/FishGame/bin/com/mypro/manager/LayoutManager.class b/FishGame/bin/com/mypro/manager/LayoutManager.class
index 7bedda7..22c4a25 100644
Binary files a/FishGame/bin/com/mypro/manager/LayoutManager.class and b/FishGame/bin/com/mypro/manager/LayoutManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/PathManager.class b/FishGame/bin/com/mypro/manager/PathManager.class
index 90c0de1..b9bfaa0 100644
Binary files a/FishGame/bin/com/mypro/manager/PathManager.class and b/FishGame/bin/com/mypro/manager/PathManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/ScoreManager$1.class b/FishGame/bin/com/mypro/manager/ScoreManager$1.class
index 35070f7..dbdef21 100644
Binary files a/FishGame/bin/com/mypro/manager/ScoreManager$1.class and b/FishGame/bin/com/mypro/manager/ScoreManager$1.class differ
diff --git a/FishGame/bin/com/mypro/manager/ScoreManager$2.class b/FishGame/bin/com/mypro/manager/ScoreManager$2.class
index d52b3d0..bcdd30c 100644
Binary files a/FishGame/bin/com/mypro/manager/ScoreManager$2.class and b/FishGame/bin/com/mypro/manager/ScoreManager$2.class differ
diff --git a/FishGame/bin/com/mypro/manager/ScoreManager$3.class b/FishGame/bin/com/mypro/manager/ScoreManager$3.class
index 03ebbcf..e7938ae 100644
Binary files a/FishGame/bin/com/mypro/manager/ScoreManager$3.class and b/FishGame/bin/com/mypro/manager/ScoreManager$3.class differ
diff --git a/FishGame/bin/com/mypro/manager/ScoreManager.class b/FishGame/bin/com/mypro/manager/ScoreManager.class
index b77c0f7..21e2d4c 100644
Binary files a/FishGame/bin/com/mypro/manager/ScoreManager.class and b/FishGame/bin/com/mypro/manager/ScoreManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/ShoalManager$1.class b/FishGame/bin/com/mypro/manager/ShoalManager$1.class
index f37564d..ce2f601 100644
Binary files a/FishGame/bin/com/mypro/manager/ShoalManager$1.class and b/FishGame/bin/com/mypro/manager/ShoalManager$1.class differ
diff --git a/FishGame/bin/com/mypro/manager/ShoalManager$2.class b/FishGame/bin/com/mypro/manager/ShoalManager$2.class
index 77292cc..bea4e60 100644
Binary files a/FishGame/bin/com/mypro/manager/ShoalManager$2.class and b/FishGame/bin/com/mypro/manager/ShoalManager$2.class differ
diff --git a/FishGame/bin/com/mypro/manager/ShoalManager.class b/FishGame/bin/com/mypro/manager/ShoalManager.class
index a3e1ee5..961eeea 100644
Binary files a/FishGame/bin/com/mypro/manager/ShoalManager.class and b/FishGame/bin/com/mypro/manager/ShoalManager.class differ
diff --git a/FishGame/bin/com/mypro/manager/XmlManager.class b/FishGame/bin/com/mypro/manager/XmlManager.class
index dca91e0..00e6b33 100644
Binary files a/FishGame/bin/com/mypro/manager/XmlManager.class and b/FishGame/bin/com/mypro/manager/XmlManager.class differ
diff --git a/FishGame/bin/com/mypro/model/Ammo.class b/FishGame/bin/com/mypro/model/Ammo.class
index c6882d3..f90b6a3 100644
Binary files a/FishGame/bin/com/mypro/model/Ammo.class and b/FishGame/bin/com/mypro/model/Ammo.class differ
diff --git a/FishGame/bin/com/mypro/model/BackGround.class b/FishGame/bin/com/mypro/model/BackGround.class
index 9966891..8f42816 100644
Binary files a/FishGame/bin/com/mypro/model/BackGround.class and b/FishGame/bin/com/mypro/model/BackGround.class differ
diff --git a/FishGame/bin/com/mypro/model/DrawableAdapter.class b/FishGame/bin/com/mypro/model/DrawableAdapter.class
index e34e5ba..656fc50 100644
Binary files a/FishGame/bin/com/mypro/model/DrawableAdapter.class and b/FishGame/bin/com/mypro/model/DrawableAdapter.class differ
diff --git a/FishGame/bin/com/mypro/model/FishGold.class b/FishGame/bin/com/mypro/model/FishGold.class
index 32d4adf..e8a53b2 100644
Binary files a/FishGame/bin/com/mypro/model/FishGold.class and b/FishGame/bin/com/mypro/model/FishGold.class differ
diff --git a/FishGame/bin/com/mypro/model/FishInfo.class b/FishGame/bin/com/mypro/model/FishInfo.class
index 96bbf25..d2b432e 100644
Binary files a/FishGame/bin/com/mypro/model/FishInfo.class and b/FishGame/bin/com/mypro/model/FishInfo.class differ
diff --git a/FishGame/bin/com/mypro/model/FishingNet.class b/FishGame/bin/com/mypro/model/FishingNet.class
index 98777a5..b23ecec 100644
Binary files a/FishGame/bin/com/mypro/model/FishingNet.class and b/FishGame/bin/com/mypro/model/FishingNet.class differ
diff --git a/FishGame/bin/com/mypro/model/GamingInfo.class b/FishGame/bin/com/mypro/model/GamingInfo.class
index 5472baf..4afc765 100644
Binary files a/FishGame/bin/com/mypro/model/GamingInfo.class and b/FishGame/bin/com/mypro/model/GamingInfo.class differ
diff --git a/FishGame/bin/com/mypro/model/HighPoint.class b/FishGame/bin/com/mypro/model/HighPoint.class
index 79be576..7da778c 100644
Binary files a/FishGame/bin/com/mypro/model/HighPoint.class and b/FishGame/bin/com/mypro/model/HighPoint.class differ
diff --git a/FishGame/bin/com/mypro/model/HundredPoint.class b/FishGame/bin/com/mypro/model/HundredPoint.class
index af24a73..ef1a897 100644
Binary files a/FishGame/bin/com/mypro/model/HundredPoint.class and b/FishGame/bin/com/mypro/model/HundredPoint.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/Bottom.class b/FishGame/bin/com/mypro/model/componets/Bottom.class
index 248d1d7..5f9d8e1 100644
Binary files a/FishGame/bin/com/mypro/model/componets/Bottom.class and b/FishGame/bin/com/mypro/model/componets/Bottom.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/BottomGold.class b/FishGame/bin/com/mypro/model/componets/BottomGold.class
index 819c2cc..be9573b 100644
Binary files a/FishGame/bin/com/mypro/model/componets/BottomGold.class and b/FishGame/bin/com/mypro/model/componets/BottomGold.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/BottomTime.class b/FishGame/bin/com/mypro/model/componets/BottomTime.class
index fb809c7..17fb77f 100644
Binary files a/FishGame/bin/com/mypro/model/componets/BottomTime.class and b/FishGame/bin/com/mypro/model/componets/BottomTime.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/ButtonAdapter.class b/FishGame/bin/com/mypro/model/componets/ButtonAdapter.class
index 22cb5a4..465580c 100644
Binary files a/FishGame/bin/com/mypro/model/componets/ButtonAdapter.class and b/FishGame/bin/com/mypro/model/componets/ButtonAdapter.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/Cannon$1.class b/FishGame/bin/com/mypro/model/componets/Cannon$1.class
index 965e3ec..440b189 100644
Binary files a/FishGame/bin/com/mypro/model/componets/Cannon$1.class and b/FishGame/bin/com/mypro/model/componets/Cannon$1.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/Cannon.class b/FishGame/bin/com/mypro/model/componets/Cannon.class
index 0d6e73f..676c316 100644
Binary files a/FishGame/bin/com/mypro/model/componets/Cannon.class and b/FishGame/bin/com/mypro/model/componets/Cannon.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/Componet.class b/FishGame/bin/com/mypro/model/componets/Componet.class
index 30b7a2e..8e75b62 100644
Binary files a/FishGame/bin/com/mypro/model/componets/Componet.class and b/FishGame/bin/com/mypro/model/componets/Componet.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/DownCannonButtonListener.class b/FishGame/bin/com/mypro/model/componets/DownCannonButtonListener.class
index b234f38..67b6b4d 100644
Binary files a/FishGame/bin/com/mypro/model/componets/DownCannonButtonListener.class and b/FishGame/bin/com/mypro/model/componets/DownCannonButtonListener.class differ
diff --git a/FishGame/bin/com/mypro/model/componets/UpCannonButtonListener.class b/FishGame/bin/com/mypro/model/componets/UpCannonButtonListener.class
index 9ca3705..4fe015d 100644
Binary files a/FishGame/bin/com/mypro/model/componets/UpCannonButtonListener.class and b/FishGame/bin/com/mypro/model/componets/UpCannonButtonListener.class differ
diff --git a/FishGame/bin/com/mypro/model/fish/Fish$1.class b/FishGame/bin/com/mypro/model/fish/Fish$1.class
index 739c5d0..dd5db9d 100644
Binary files a/FishGame/bin/com/mypro/model/fish/Fish$1.class and b/FishGame/bin/com/mypro/model/fish/Fish$1.class differ
diff --git a/FishGame/bin/com/mypro/model/fish/Fish.class b/FishGame/bin/com/mypro/model/fish/Fish.class
index 678d4fe..409f79c 100644
Binary files a/FishGame/bin/com/mypro/model/fish/Fish.class and b/FishGame/bin/com/mypro/model/fish/Fish.class differ
diff --git a/FishGame/bin/com/mypro/model/interfaces/Button.class b/FishGame/bin/com/mypro/model/interfaces/Button.class
index 01c72ae..6df54ce 100644
Binary files a/FishGame/bin/com/mypro/model/interfaces/Button.class and b/FishGame/bin/com/mypro/model/interfaces/Button.class differ
diff --git a/FishGame/bin/com/mypro/model/interfaces/Drawable.class b/FishGame/bin/com/mypro/model/interfaces/Drawable.class
index 3fe1688..d300873 100644
Binary files a/FishGame/bin/com/mypro/model/interfaces/Drawable.class and b/FishGame/bin/com/mypro/model/interfaces/Drawable.class differ
diff --git a/FishGame/bin/com/mypro/model/interfaces/OnClickListener.class b/FishGame/bin/com/mypro/model/interfaces/OnClickListener.class
index 9ad9ea1..e6cdb6d 100644
Binary files a/FishGame/bin/com/mypro/model/interfaces/OnClickListener.class and b/FishGame/bin/com/mypro/model/interfaces/OnClickListener.class differ
diff --git a/FishGame/bin/com/mypro/threads/FishRunThread$1.class b/FishGame/bin/com/mypro/threads/FishRunThread$1.class
index def7e4a..ec0312a 100644
Binary files a/FishGame/bin/com/mypro/threads/FishRunThread$1.class and b/FishGame/bin/com/mypro/threads/FishRunThread$1.class differ
diff --git a/FishGame/bin/com/mypro/threads/FishRunThread.class b/FishGame/bin/com/mypro/threads/FishRunThread.class
index 2d74d6c..e64f347 100644
Binary files a/FishGame/bin/com/mypro/threads/FishRunThread.class and b/FishGame/bin/com/mypro/threads/FishRunThread.class differ
diff --git a/FishGame/bin/com/mypro/threads/PicActThread.class b/FishGame/bin/com/mypro/threads/PicActThread.class
index f3b6a43..91472c3 100644
Binary files a/FishGame/bin/com/mypro/threads/PicActThread.class and b/FishGame/bin/com/mypro/threads/PicActThread.class differ
diff --git a/FishGame/bin/com/mypro/threads/ShotThread$1.class b/FishGame/bin/com/mypro/threads/ShotThread$1.class
index 3ac8324..b5ce66e 100644
Binary files a/FishGame/bin/com/mypro/threads/ShotThread$1.class and b/FishGame/bin/com/mypro/threads/ShotThread$1.class differ
diff --git a/FishGame/bin/com/mypro/threads/ShotThread.class b/FishGame/bin/com/mypro/threads/ShotThread.class
index 6d94063..2d91c8e 100644
Binary files a/FishGame/bin/com/mypro/threads/ShotThread.class and b/FishGame/bin/com/mypro/threads/ShotThread.class differ
diff --git a/FishGame/bin/com/mypro/tools/CircleRectangleIntersect.class b/FishGame/bin/com/mypro/tools/CircleRectangleIntersect.class
index d90aa0b..e91a1d2 100644
Binary files a/FishGame/bin/com/mypro/tools/CircleRectangleIntersect.class and b/FishGame/bin/com/mypro/tools/CircleRectangleIntersect.class differ
diff --git a/FishGame/bin/com/mypro/tools/LogTools.class b/FishGame/bin/com/mypro/tools/LogTools.class
index 0c890ac..b14eec7 100644
Binary files a/FishGame/bin/com/mypro/tools/LogTools.class and b/FishGame/bin/com/mypro/tools/LogTools.class differ
diff --git a/FishGame/bin/com/mypro/tools/Tool.class b/FishGame/bin/com/mypro/tools/Tool.class
index 2e04e0c..9a11ab6 100644
Binary files a/FishGame/bin/com/mypro/tools/Tool.class and b/FishGame/bin/com/mypro/tools/Tool.class differ
diff --git a/FishGame/score/highest.txt b/FishGame/score/highest.txt
new file mode 100644
index 0000000..70e1a64
--- /dev/null
+++ b/FishGame/score/highest.txt
@@ -0,0 +1 @@
+144
\ No newline at end of file
diff --git a/FishGame/src/com/mypro/basecomponet/AwtMainComponet.java b/FishGame/src/com/mypro/basecomponet/AwtMainComponet.java
index 3329389..4403269 100644
--- a/FishGame/src/com/mypro/basecomponet/AwtMainComponet.java
+++ b/FishGame/src/com/mypro/basecomponet/AwtMainComponet.java
@@ -1,11 +1,12 @@
package com.mypro.basecomponet;
-import java.awt.Dimension;
-import java.awt.Toolkit;
+import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
-import javax.swing.JFrame;
+import javax.swing.*;
import com.mypro.mainsurface.MainSurface;
import com.mypro.manager.CannonManager;
@@ -13,33 +14,61 @@
import com.mypro.manager.LayoutManager;
import com.mypro.model.GamingInfo;
+import static javax.swing.JOptionPane.showConfirmDialog;
+
public class AwtMainComponet{
public static void main(String[] args) throws Exception {
Toolkit tool = Toolkit.getDefaultToolkit();
Dimension d = tool.getScreenSize();
JFrame frame = new JFrame();
- GamingInfo.getGamingInfo().setGaming(true);
- GamingInfo.getGamingInfo().setScreenWidth(900);
- GamingInfo.getGamingInfo().setScreenHeight(600);
- frame.setSize(GamingInfo.getGamingInfo().getScreenWidth(), GamingInfo.getGamingInfo().getScreenHeight());
- frame.setUndecorated(true); // 去掉窗口的装饰
-// frame.getRootPane().setWindowDecorationStyle(JRootPane.NONE);//采用指定的窗口装饰风格
+ GamingInfo.getGamingInfo().setGaming(true);
+ GamingInfo.getGamingInfo().setScreenWidth(900);
+ GamingInfo.getGamingInfo().setScreenHeight(600);
+ frame.setSize(GamingInfo.getGamingInfo().getScreenWidth(), GamingInfo.getGamingInfo().getScreenHeight());
+// frame.setUndecorated(true); // 去掉窗口的装饰
+// frame.getRootPane().setWindowDecorationStyle(JRootPane.NONE);//采用指定的窗口装饰风格
// frame.setResizable(false);
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frame.setLocationRelativeTo(null);
MainSurface pane = new MainSurface();
GamingInfo.getGamingInfo().setSurface(pane);
+// Label scoreLabel=new JLabel("最高分:200");
+// scoreLabel.setForeground(Color.blue);
+// scoreLabel.setVisible(true);
+// scoreLabel.setOpaque(true);
+// scoreLabel.setSize(600,200);
+// scoreLabel.setDisplayedMnemonic(-1);
+
+ Label scoreLabel=new Label("最高分:"+GamingInfo.getGamingInfo().getHighestScore());
+ scoreLabel.setBackground(new Color(0,80,0,0));
+ scoreLabel.setForeground(new Color(255,0,0));
+ pane.add(scoreLabel);
frame.setContentPane(pane);
// frame.setAlwaysOnTop(true);
frame.setVisible(true);
+ frame.addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent e) {
+ super.windowClosing(e);
+ int flag=JOptionPane.showConfirmDialog(pane,"是否退出?","提示",JOptionPane.OK_CANCEL_OPTION);
+ if(flag==0) {
+ int score = GamingInfo.getGamingInfo().getScore();
+ if (score > GamingInfo.getGamingInfo().getHighestScore()) {
+ GamingInfo.getGamingInfo().setHighestScore(score);
+ JOptionPane.showConfirmDialog(pane,"新记录:"+score,"恭喜",JOptionPane.OK_CANCEL_OPTION);
+ }
+ System.exit(0);
+ }
+ }
+ });
frame.addMouseListener(new MouseListener() {
-
+
@Override
public void mouseReleased(MouseEvent e) {
// TODO Auto-generated method stub
-
+
}
-
+
@Override
public void mousePressed(MouseEvent e) {
if(GameInitManager.getGameInitManager().isIniting()){
@@ -51,38 +80,38 @@ public void mousePressed(MouseEvent e) {
CannonManager.getCannonManager().shot(e.getX(), e.getY());
}
}
-
+
@Override
public void mouseExited(MouseEvent e) {
// TODO Auto-generated method stub
-
+
}
-
+
@Override
public void mouseEntered(MouseEvent e) {
// TODO Auto-generated method stub
-
+
}
-
+
@Override
public void mouseClicked(MouseEvent e) {
// TODO Auto-generated method stub
-
+
}
});
// frame.pack();
pane.action();
/**
- * 创建一个线程来异步初始化游戏内容
- */
- new Thread(new Runnable(){
+ * 创建一个线程来异步初始化游戏内容
+ */
+ new Thread(new Runnable(){
public void run() {
//使用游戏初始化管理器初始化游戏
GameInitManager.getGameInitManager().init();
}
-
- }).start();
+
+ }).start();
}
-}
+}
\ No newline at end of file
diff --git a/FishGame/src/com/mypro/constant/Constant.java b/FishGame/src/com/mypro/constant/Constant.java
index ba7abe3..a376f03 100644
--- a/FishGame/src/com/mypro/constant/Constant.java
+++ b/FishGame/src/com/mypro/constant/Constant.java
@@ -72,6 +72,8 @@ public class Constant {
public static int GOLD_LAYER = COMPONENTS_LAYER-1;
//背景图层
public static int BACK_GROUND_LAYER = 0;
-
-
+ //最高分保存地址
+ public static String HIGHEST_SCORE_PATH = "score/highest.txt";
+
+
}
diff --git a/FishGame/src/com/mypro/model/GamingInfo.java b/FishGame/src/com/mypro/model/GamingInfo.java
index 03b6a57..bd67b64 100644
--- a/FishGame/src/com/mypro/model/GamingInfo.java
+++ b/FishGame/src/com/mypro/model/GamingInfo.java
@@ -1,7 +1,11 @@
package com.mypro.model;
+import java.io.*;
+import java.nio.Buffer;
import java.util.ArrayList;
+import java.util.Scanner;
+import com.mypro.constant.Constant;
import com.mypro.mainsurface.MainSurface;
import com.mypro.manager.ShoalManager;
//import com.mypro.manager.SoundManager;
@@ -19,8 +23,55 @@ public class GamingInfo {
private ShoalManager shoalManager; // 鱼群管理器
private float cannonLayoutX; //大炮旋转X坐标
private float cannonLayoutY; //大炮旋转Y坐标
- private int score = 100; //当前的分
-
+ private int score = 100;//当前的分
+ private int highestScore;//最高分
+
+ /**
+ *
+ * @return 从文件读入最高分,覆盖当前的的最高分
+ */
+ public int getHighestScoreFromeFile(){
+ File file=new File(Constant.HIGHEST_SCORE_PATH);
+ try {
+ if(file.exists()){
+ Scanner scanner=new Scanner(file);
+ highestScore=scanner.nextInt();
+ scanner.close();
+ return highestScore;
+
+ }else{
+ file.createNewFile();
+ highestScore=0;
+ return 0;
+ }
+ }catch (Exception e){
+ e.printStackTrace();
+ }
+ return 0;
+
+ }
+ public int getHighestScore() {
+ return highestScore;
+ }
+
+ /**
+ * 设置最高分,并写入到文件中
+ * @param highestScore
+ */
+ public void setHighestScore(int highestScore) {
+ File file=new File(Constant.HIGHEST_SCORE_PATH);
+ try {
+ file.createNewFile();
+ FileWriter fileWriter=new FileWriter(file);
+ fileWriter.write(highestScore+"");
+ fileWriter.flush();
+ fileWriter.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ this.highestScore = highestScore;
+ }
+
public int getScore() {
return score;
}
@@ -37,6 +88,7 @@ public static void clearGameInfo() {
}
private GamingInfo() {
+ getHighestScoreFromeFile();
}
public static GamingInfo getGamingInfo() {
@@ -117,5 +169,5 @@ public boolean isPause() {
public void setPause(boolean isPause) {
this.isPause = isPause;
}
-
-}
+
+}
\ No newline at end of file