Game.java 文件源码

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

项目:marshmallow 作者:
private void render(){
    BufferStrategy bs = this.getBufferStrategy();
    if(bs == null){
        this.createBufferStrategy(3);
        return;
    }
    Graphics g = bs.getDrawGraphics();
    drawBackground(g); //TODO: fix it up? Background Images
    handler.render(g);
    if(gameState == STATE.Game){
        hud.render(g);  
        gun.render(g);
    }else if (gameState != STATE.Game){
        handler.clear();
        menu.render(g);
    }
    g.dispose();
    bs.show();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号