示例#1
0
文件: Level.java 项目: stango12/Mario
  public void render(SpriteBatch batch) {
    batch.begin();
    for (Platform p : platforms) p.render(batch);
    for (QBlock q : qBlocks) q.render(batch);
    for (Goomba g : goombas) g.render(batch);
    for (Pipe p : pipes) p.render(batch);

    mario.render(batch);
    batch.end();
  }
示例#2
0
文件: Level.java 项目: stango12/Mario
 public void dispose() {
   mario.dispose();
   for (QBlock q : qBlocks) q.dispose();
   for (Goomba g : goombas) g.dispose();
   for (Pipe p : pipes) p.dispose();
 }