public Bird(int x, int y){
position = new Vector3(x, y, 0);
velosity = new Vector3(0, 0, 0);
texture = new Texture("Sheep-Animated-Gif4.png");
birdAnimation = new Animation(new TextureRegion(texture), FRAME_COUNT, 0.9f);
bounds = new Rectangle(x, y, texture.getWidth() / FRAME_COUNT, texture.getHeight());
flap = Gdx.audio.newSound(Gdx.files.internal("sfx_wing.ogg"));
}
Bird.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:Flappy-Baranus
作者:
评论列表
文章目录