话费捕鱼达人2016无法创建窗口

3d.捕鱼达人怎么不能全屏_百度知道
3d.捕鱼达人怎么不能全屏
您的回答被采纳后将获得:
系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
我有更好的答案
式感,那些复制品无论多么笔走龙蛇卜0促
为您推荐:
其他类似问题
您可能关注的内容
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。苹果iPhone7Plus怎么添加widget控件?
苹果iPhone7Plus怎么添加widget控件?
来源:手机世界
怎么添加widget控件?widget控件是显示在主屏幕上面的小插件,通过widget控件可以更加快捷的进行一些操作,省去了启动应用的麻烦,除了默认的系统控件,我们还可以自定义添加第三方控件,下面,就让小编来给大家讲解一下如何添加widget控件吧~
相关教程:
1)首先在主屏幕任意位置按住往下滑,这时就会进入widget控件编辑界面,继续往下滑动到底部,点击【编辑】按钮。(如下图)
2)接着就会自动跳转到添加界面,选择需要添加的应用,这里以为例,点击【】左侧的【+】号,然后点击右上角的【完成】,这样就添加完成了,回到刚才的界面,控件已经添加上去了,可以实现快速扫码,付款,转账等操作。(如下图)
PS:如大家在使用过程中遇到难题了,可以直接到(zhidao.3533.com)进行提问或关注本站微信公众帐号(微信号:www3533com)后给小编留言,小编收到留言后会第一时间给大家解决相关疑问。
GSM & WCDMA
iPhone10.0
5.5寸1600万色
主屏分辨率
Copyright & .com, All Rights Reserved我在家下的亲朋,只能玩捕鱼达人,其它的一进房间它就弹个提示框《create game window failed》怎么会是这样 我反复下了好几次 还是怎么 求解
来源:互联网
责任编辑:张小俊字体:
为您准备的好内容:
最新添加资讯
24小时热门资讯
Copyright ©
haoxyx.com All Rights Reserved. 好心游戏网 版权所有
京ICP备号-1 京公网安备02号3595人阅读
技术浅谈(80)
今天我们来看看Java如何实现捕鱼达人游戏的设计与开发,源码文件非产多,没办法全部贴出来,只贴部分源码,项目下载地址在最下方,先来看看运行结果:
接下来我们来看看代码:
package com.mypro.
import java.awt.D
import java.awt.T
import java.awt.event.MouseE
import java.awt.event.MouseL
import javax.swing.JF
import com.mypro.mainsurface.MainS
import com.mypro.manager.CannonM
import com.mypro.manager.GameInitM
import com.mypro.manager.LayoutM
import com.mypro.model.GamingI
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);//采用指定的窗口装饰风格
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
MainSurface pane = new MainSurface();
GamingInfo.getGamingInfo().setSurface(pane);
frame.setContentPane(pane);
frame.setAlwaysOnTop(true);
frame.setVisible(true);
frame.addMouseListener(new MouseListener() {
public void mouseReleased(MouseEvent e) {
// TODO Auto-generated method stub
public void mousePressed(MouseEvent e) {
if(GameInitManager.getGameInitManager().isIniting()){
//屏幕被触摸
//先看布局管理器是否有相应
if(!LayoutManager.getLayoutManager().onClick(e.getX(), e.getY())){
//发射子弹
CannonManager.getCannonManager().shot(e.getX(),
e.getY());
public void mouseExited(MouseEvent e) {
// TODO Auto-generated method stub
public void mouseEntered(MouseEvent e) {
// TODO Auto-generated method stub
public void mouseClicked(MouseEvent e) {
// TODO Auto-generated method stub
frame.pack();
pane.action();
* 创建一个线程来异步初始化游戏内容
new Thread(new Runnable(){
public void run() {
//使用游戏初始化管理器初始化游戏
GameInitManager.getGameInitManager().init();
}).start();
package com.mypro.
import com.mypro.constant.C
import com.mypro.manager.HeadF
import com.mypro.manager.PathM
import com.mypro.model.GamingI
import com.mypro.model.fish.F
import com.mypro.tools.LogT
public class FishRunThread extends Thread {
private boolean isR
// 鱼是否可以游动
private HeadF
// 当前线程需要控制的领头鱼
private boolean fishIsO
// 鱼是否处于屏幕外
private int fish_speed = 1000/Constant.ON_DRAW_SLEEP;
// 鱼绘制速度,这个与屏幕刷新速度一样
private float fishrunS
// 鱼旋转长度
public FishRunThread(HeadFish fish) {
this.fish =
fishrunSpeed = (fish.getFish().getFishInfo().getFishRunSpeed() / Constant.ON_DRAW_SLEEP);//这里只是根据速度做了一个比例,让旋转速度看起来比较正常
public void run() {
int[][] path = PathManager.getDefaultPath(fish);
while (GamingInfo.getGamingInfo().isGaming()) {
while(isRun &&!GamingInfo.getGamingInfo().isPause()){
for (int[] pathMode : path) {
if(fishIsOut||!isRun){
// 如果路径为旋转模式
if (pathMode[0] == PathManager.PATH_MODE_ROTATE) {
* 这里做了一个处理,就是分析鱼头朝向和所在位置让鱼进行不同的旋转路线
// 如果鱼处于第1或第2象限
if (fish.getFish_X() &= GamingInfo.getGamingInfo().getScreenWidth() / 2
&& fish.getFish_Y() &= GamingInfo.getGamingInfo().getScreenHeight() / 2
|| fish.getFish_X() & GamingInfo.getGamingInfo().getScreenWidth() / 2
&& fish.getFish_Y() &= GamingInfo.getGamingInfo().getScreenHeight() / 2) {
// 如果鱼头是朝向x的负坐标方向
if (fish.getCurrentRotate() &= 90
&& fish.getCurrentRotate() &= 270
|| fish.getCurrentRotate() &= -90
&& fish.getCurrentRotate() &= -270) {
rotateLeftFish(pathMode[1]);
rotateRightFish(pathMode[1]);
// 如果鱼处于第3或第4象限
// 如果鱼头是朝向x的负坐标方向
if (fish.getCurrentRotate() &= 90
&& fish.getCurrentRotate() &= 270
|| fish.getCurrentRotate() &= -90
&& fish.getCurrentRotate() &= -270) {
rotateRightFish(pathMode[1]);
rotateLeftFish(pathMode[1]);
// 如果路径为直行模式
goStraight(pathMode[1]);
if(!fishIsOut){
// 消费了所有的路径后,重新获取新路径
path = PathManager.getDefaultPath(fish);
while(isRun && GamingInfo.getGamingInfo().isGaming()){
//如果超出屏幕,走一个直线
goStraight(100);
* 移动鱼群
private void moveShoal(){
if(fish.getShoal()==null){
for(Fish fishFlag:fish.getShoal()){
if(!fishFlag.isCanRun()||!fishFlag.isAlive()){
fishFlag.getFishOutlinePoint()[0] = (int)(fish.getFishOutlinePoint()[0]-fishFlag.getDistanceHeadFishX());
fishFlag.getFishOutlinePoint()[1] = (int)(fish.getFishOutlinePoint()[1]-fishFlag.getDistanceHeadFishX());
fishFlag.getFishOutlinePoint()[2] = (int)(fish.getFishOutlinePoint()[2]-fishFlag.getDistanceHeadFishY());
fishFlag.getFishOutlinePoint()[3] = (int)(fish.getFishOutlinePoint()[3]-fishFlag.getDistanceHeadFishY());
fishFlag.getPicMatrix().setTranslate(fish.getFish_X()-fishFlag.getDistanceHeadFishX(), fish.getFish_Y()-fishFlag.getDistanceHeadFishY());
fishFlag.getPicMatrix().preRotate(-fish.getCurrentRotate(),fishFlag.getFishRotatePoint_X(),fishFlag.getFishRotatePoint_Y());
}catch(Exception e){
* 根据给定长度走直线
* @param len
* @return true:超出屏幕
private void goStraight(int len) {
// 如果是新出来的鱼,走直线,忽略旋转角度
if (fish.isNew()) {
fish.setNew(false);
while (GamingInfo.getGamingInfo().isGaming()) {
while(isRun &&!GamingInfo.getGamingInfo().isPause()){
setFishOutlintPoint(0);
if (fish.getCurrentFromPoint() &= 1) {
fish.setFish_X(fish.getFish_X() + fishrunSpeed);
fish.setFish_X(fish.getFish_X() - fishrunSpeed);
moveShoal();
// 是否走出了屏幕
if (isAtOut()&&!fishIsOut) {
setFishAtOut();
// 走够了长度,就停止循环
if ((len-=fishrunSpeed) &= 0) {
Thread.sleep(fish_speed);
} catch (Exception e) {
fishRun(0,len);
* 将鱼向左旋转angle角度,并移动鱼
* @param angle
private void rotateLeftFish(int angle) {
fishRun(1,angle);
* 将鱼向右旋转angle角度,并移动鱼
* @param angle
private void rotateRightFish(int angle) {
fishRun(-1,angle);
* 鱼的行动方法
* @param mode 1:左转
* @param len
private void fishRun(int mode,int len){
int sumLen = 0;
while (GamingInfo.getGamingInfo().isGaming()) {
while(isRun &&!GamingInfo.getGamingInfo().isPause()){
// 设置鱼的外接矩形
setFishOutlintPoint(fish.getCurrentRotate());
// 设置当前旋转角度
fish.setCurrentRotate(fish.getCurrentRotate() + mode);
// 根据增量变换坐标
fish.setFish_X(fish.getFish_X()
+ (float) (fishrunSpeed*Math.cos(Math.toRadians(fish.getCurrentRotate()))));
fish.setFish_Y(fish.getFish_Y()
+ (float) (fishrunSpeed*Math.sin((Math.toRadians(fish.getCurrentRotate())))*-1));
moveShoal();
// 是否走出了屏幕
if (isAtOut()&&!fishIsOut) {
setFishAtOut();
// 如果移动了总长度,停止循环
if (++sumLen == len) {
Thread.sleep(fish_speed);
} catch (Exception e) {
* 设置鱼的外接矩形X,Y的最大值和最小值
* @param rotateAngle
计算是根据这个参数所旋转的角度来得到对应的X,Y值的
private void setFishOutlintPoint(int rotateAngle) {
fish.clearFishOutlinePoint();// 清空上一次的范围值
int flagX = 0, flagY = 0;
// 计算左上角坐标
fish.getFishOutlinePoint()[0] = (int) getRotateX(0, 0,
fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle)
+ (int) fish.getFish_X();
fish.getFishOutlinePoint()[1] = fish.getFishOutlinePoint()[0];
fish.getFishOutlinePoint()[2] = (int) getRotateY(0, 0,
fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle)
+ (int) fish.getFish_Y();
fish.getFishOutlinePoint()[3] = fish.getFishOutlinePoint()[2];
// 计算左下角坐标
flagX = (int) getRotateX(0, fish.getFish().getPicHeight(),
fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle);
flagY = (int) getRotateY(0, fish.getFish().getPicHeight(),
fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle);
putFishOutline((int) (flagX + fish.getFish_X()),
(int) (flagY + fish.getFish_Y()));
// 计算右上角坐标
flagX = (int) getRotateX(fish.getFish().getPicWidth(), 0, fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle);
flagY = (int) getRotateY(fish.getFish().getPicWidth(), 0, fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle);
putFishOutline((int) (flagX + fish.getFish_X()),
(int) (flagY + fish.getFish_Y()));
// 计算右下角坐标
flagX = (int) getRotateX(fish.getFish().getPicWidth(), fish.getFish().getPicHeight(),
fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle);
flagY = (int) getRotateY(fish.getFish().getPicWidth(), fish.getFish().getPicHeight(),
fish.getFish().getFishRotatePoint_X(), fish.getFish().getFishRotatePoint_Y(), rotateAngle);
putFishOutline((int) (flagX + fish.getFish_X()),
(int) (flagY + fish.getFish_Y()));
// 只将四个范围内的最大值或最小值赋进去
private void putFishOutline(int x, int y) {
if (fish.getFishOutlinePoint()[1] & x) {
fish.getFishOutlinePoint()[1] =
} else if (fish.getFishOutlinePoint()[0] & x) {
fish.getFishOutlinePoint()[0] =
if (fish.getFishOutlinePoint()[3] & y) {
fish.getFishOutlinePoint()[3] =
} else if (fish.getFishOutlinePoint()[2] & y) {
fish.getFishOutlinePoint()[2] =
* 返回给定旋转角度以及旋转点和需要求旋转后点的旋转前X坐标
* @param x
* @param y
* @param rotatePoint_x
* @param rotatePoint_y
* @param angle
private float getRotateX(float x, float y, float rotatePoint_x,
float rotatePoint_y, float angle) {
return (float) ((x - rotatePoint_x) * Math.cos(angle)
+ (y - rotatePoint_y) * Math.sin(angle) + rotatePoint_x);
* 返回给定旋转角度以及旋转点和需要求旋转后点的旋转前Y坐标
* @param x
* @param y
* @param rotatePoint_x
* @param rotatePoint_y
* @param angle
private float getRotateY(float x, float y, float rotatePoint_x,
float rotatePoint_y, float angle) {
return (float) ((y - rotatePoint_y) * Math.cos(angle)
- (x - rotatePoint_x) * Math.sin(angle) + rotatePoint_y);
* 检查鱼是否已经处于屏幕外
* @return true:处于屏幕外
private boolean isAtOut() {
// 如果鱼的外接矩形的上边缘大于屏幕高度或者下边缘小于0则认定鱼处于屏幕下或上边缘外
if (fish.getFishOutlinePoint()[2] & GamingInfo.getGamingInfo().getScreenHeight()
|| fish.getFishOutlinePoint()[3] & 0) {
// 如果鱼头是朝向x的负坐标方向
} else if (fish.getCurrentRotate() &= 90
&& fish.getCurrentRotate() &= 270
|| fish.getCurrentRotate() &= -90
&& fish.getCurrentRotate() &= -270) {
// 如果鱼处于屏幕左边外
if (fish.getFishOutlinePoint()[1] & 0) {
// 如果鱼处于屏幕右边外
if (fish.getFishOutlinePoint()[0] & GamingInfo.getGamingInfo().getScreenWidth()) {
* 处理鱼出了边界后的操作
private void setFishAtOut() {
fishIsOut =
new Thread(new Runnable(){
public void run() {
// TODO Auto-generated method stub
//如果领头鱼有鱼群
for(Fish fishFlag:fish.getShoal()){
while(GamingInfo.getGamingInfo().isGaming()){
if(checkFishAtOut(fish,fishFlag)){
GamingInfo.getGamingInfo().getFish().remove(fishFlag);
GamingInfo.getGamingInfo().getSurface().removeDrawablePic(fishFlag.getFishInfo().getFishInLayer(), fishFlag);
fishFlag.getPicActThread().stopPlay();//停止动作
Thread.sleep(10);
}catch(Exception e){
e.printStackTrace();
//让鱼群移动线程停掉
setRun(false);
//通知鱼群管理器,这条鱼已经离开屏幕
if(GamingInfo.getGamingInfo().isGaming()){
GamingInfo.getGamingInfo().getShoalManager().notifyFishIsOutOfScreen();
}catch(Exception e){
LogTools.doLogForException(e);
}).start();
* 检查当前鱼是否已经超出屏幕
* @param fish
true:已经超出屏幕
private boolean checkFishAtOut(HeadFish headFish,Fish fish){
if(headFish.getFish_X()-fish.getDistanceHeadFishX()+fish.getPicWidth()&0||headFish.getFish_X()-fish.getDistanceHeadFishX()&GamingInfo.getGamingInfo().getScreenWidth()
||headFish.getFish_Y()-fish.getDistanceHeadFishY()+fish.getPicHeight()&0||headFish.getFish_Y()-fish.getDistanceHeadFishY()&GamingInfo.getGamingInfo().getScreenHeight()){
public boolean isRun() {
return isR
public void setRun(boolean isRun) {
this.isRun = isR
//如果设置的是false,表示即将停止该线程
if(!isRun){
//设置动作线程停止
this.fish.getPicActThread().stopPlay();
代码就贴这么多,详细代码请下载下来后查看,感兴趣的找我拿项目!
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:349607次
积分:3188
积分:3188
排名:第12252名
原创:90篇
评论:63条
(26)(2)(6)(4)(4)(1)(2)(10)(7)(26)(3)
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'本地高速下载器地址
常用软件推荐
原创软件推荐
捕鱼达人3D全屏窗口辅助能够增加游戏的趣味性和体验性,软件使用简单方便,喜欢的朋友欢迎下载使用。捕鱼达人3D全屏窗口辅助功能说明增加自动添加全屏窗口
猎鱼达人是一款休闲娱乐类捕鱼手游,游戏操作简单易上手,游戏中可定制独特炮台,捕获百种鱼儿,下面是小凡整理制作的猎鱼达人辅助大全专题,需要的可以来看下哦。
捕鱼达人3D全屏窗口辅助能够增加游戏的趣味性和体...
玄冥QQ3D捕鱼达人刷金币辅助捕鱼达人是一款强大的...
v1.0 活动版
木星游戏捕鱼达人2在捕鱼达人的基础上做的每日活...
高速下载器地址
适合机型:三星G9200,三星G9200刷机包
Android版本:7.0
ROM大小:1790 MB
本站提供的软件会测试再上传,但无法保证所有软件都没有问题,如果您发现链接错误或其它问题,请在评论里告诉我们!
下载点支持点击下载(IE图标)或(迅雷图标),若直接点击下载速度太慢,请尝试点击其他的下载点,若文件太大请使用高速下载器。为确保下载的文件能正常使用,请使用最新版本解压本站软件。
建议大家谨慎对待所下载的文件,大家在安装的时候务必留意每一步!关于或的有关提示,请自行注意选择操作。
本站所有资源均是软件作者、开发商投稿、网上搜集,任何涉及商业盈利目的均不得使用,否则产生的一切后果将由您自己承担!将不对任何资源负法律责任。所有资源请在下载后24小时内删除。
本站下载资源全部由软件作者或软件厂商提供,游戏相关下载转自各大游戏论坛及游戏下载站,并全部为免费分享。如侵犯了您的版权,请立刻联系我们并附带版权证明,本站将尽快处理删除(举报联系QQ:3909136),或。
若您下载的资源有问题或无法下载,请与本站客服人员联系(QQ:9190104)。

我要回帖

更多关于 捕鱼达人单机电脑版 的文章

 

随机推荐