this.getCharacterfixdef().filter.groupIndex=-1;
this.charactershape=new CircleShape();
Body bird=mom.createBody(characterdef);
switch(birdtype) {
case 1:
this.charactershape.m_radius=0.5f;
this.getCharacterfixdef().shape= this.charactershape;
this.getCharacterinfo().setName(“Lil Bird”);
this.getCharacterinfo().setHafheight(0.5f);
this.getCharacterinfo().setHafwidth(0.5f);
this.getCharacterinfo().setAppearance(birds1.getImage());
bird.m_userData=this.getCharacterinfo();
bird.createFixture(characterfixdef);
break;
case 2:
this.charactershape.m_radius=0.7f;
this.getCharacterfixdef().shape= this.charactershape;
this.getCharacterinfo().setName(“Strong Bird”);
this.getCharacterinfo().setHafheight(0.7f);
this.getCharacterinfo().setHafwidth(0.7f);
this.getCharacterinfo().setAppearance(birds2.getImage());
bird.m_userData=this.getCharacterinfo();
bird.createFixture(characterfixdef);
break;
case 3:
this.charactershape.m_radius=1f;
this.getCharacterfixdef().shape= this.charactershape;
this.getCharacterinfo().setName(“Angry Bird”);
this.getCharacterinfo().setHafheight(1f);
this.getCharacterinfo().setHafwidth(1f);
this.getCharacterinfo().setAppearance(birds3.getImage());
bird.m_userData=this.getCharacterinfo();
bird.createFixture(characterfixdef);
break;
}
return bird;
}
}
启动类 AngryBirdsMain
import AngryBirdsLevel.BirdsLevel;
/**
-
@author tarzan
*/
public class AngryBirdsMain {
/**
- Entrance of This Game.
*/
public static void main(String[] args){
BirdsLevel ts=new BirdsLevel();
AngryBirdsMenu menu=new AngryBirdsMenu();
AngryBirdsPanel game=new AngryBirdsPanel();
AngryBirdsViewFrame mainframe=new AngryBirdsViewFrame(menu,game);
//MusicController music=new MusicController();
AngryBirdsController tc=new AngryBirdsController(ts,game);
AngryBirdsMenuController mc=new AngryBirdsMenuController(menu);
AngryBirdsPanelController pc=new AngryBirdsPanelController(mainframe.getLayoutpanel(),mc,tc);
ts.getWorld().setContactListener(tc);
//music.start();
Thread switcher=new Thread(pc);
switcher.start();
mainframe.setVisible(true);
}
}
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Java工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Java开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Java开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
如果你觉得这些内容对你有帮助,可以扫码获取!!(备注Java获取)
最后
面试前一定少不了刷题,为了方便大家复习,我分享一波个人整理的面试大全宝典
- Java核心知识整理
Java核心知识
- Spring全家桶(实战系列)
- 其他电子书资料
Step3:刷题
既然是要面试,那么就少不了刷题,实际上春节回家后,哪儿也去不了,我自己是刷了不少面试题的,所以在面试过程中才能够做到心中有数,基本上会清楚面试过程中会问到哪些知识点,高频题又有哪些,所以刷题是面试前期准备过程中非常重要的一点。
以下是我私藏的面试题库:
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!
,高频题又有哪些,所以刷题是面试前期准备过程中非常重要的一点。
以下是我私藏的面试题库:
[外链图片转存中…(img-VDkt9GtW-1713385639494)]
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!