Chapa.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:FlappyChapa 作者:
public Chapa(int x, int y) {
    position = new Vector3(x, y, 0);
    velocity = new Vector3(0, 0, 0);

    texture = new Texture("chapaanimation.png");
    birdAnimation = new Animation(new TextureRegion(texture), 3, 0.5f);
    bounds = new Rectangle(x, y, texture.getWidth() / 3, texture.getHeight());
    initSounds();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号