@@ -0,0 +1,1426 @@
+package com.cy.framework;%0A%0Aimport com.badlogic.gdx.Gdx;%0Aimport com.badlogic.gdx.graphics.Texture;%0Aimport com.badlogic.gdx.graphics.g2d.Animation;%0Aimport com.badlogic.gdx.graphics.g2d.Batch;%0Aimport com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;%0Aimport com.badlogic.gdx.graphics.g2d.TextureRegion;%0Aimport com.badlogic.gdx.scenes.scene2d.Actor;%0A%0Apublic class ActorAnimation extends Actor %7B%0A%0A%09private static final int FRAME_COLS = 10;%0A%09private static final int FRAME_ROWS = 4;%0A%0A%09private Animation animation; // %E5%8A%A8%E7%94%BB%0A%09private Texture Sheet; // %E5%8A%A8%E7%94%BB%E5%9B%BE%E7%89%87%0A%09private TextureRegion%5B%5D Frames; // %E5%8A%A8%E7%94%BB%E5%B8%A7%E6%95%B0%E7%BB%84%0A%09private TextureRegion currentFrame; // %E5%BD%93%E5%89%8D%E5%B8%A7%0A%09float stateTime; //%0A %0A%09public ActorAnimation() %7B%0A%09%09super();%0A        this.setWidth(70); // %E8%AE%BE%E7%BD%AE%E9%AB%98%E5%BA%A6%0A        this.setHeight(70); // %E8%AE%BE%E7%BD%AE%E5%AE%BD%E5%BA%A6%0A%09%09Sheet = new Texture(Gdx.files.internal(%22data/Animation.jpg%22));%0A%09%09TextureRegion%5B%5D%5B%5D tmp = TextureRegion.split(Sheet, Sheet.getWidth()%0A%09%09%09%09/ FRAME_COLS, Sheet.getHeight() / FRAME_ROWS);%0A%09%09Frames = new TextureRegion%5BFRAME_COLS%5D;// %E8%8E%B7%E5%8F%96%E7%AC%AC1%E8%A1%8C%E7%9A%844%E5%B8%A7%0A%0A%09%09for (int j = 0; j %3C FRAME_COLS; j++) %7B%0A%09%09%09Frames%5Bj%5D = tmp%5B0%5D%5Bj%5D;%0A%09%09%7D%0A%0A%09%09animation = new Animation(0.01f, Frames);%0A%09%09stateTime = 0f;%0A%09%7D%0A%0A%09@Override%0A%09public void draw(Batch batch, float parentAlpha) %7B%0A%09%09stateTime += Gdx.graphics.getDeltaTime(); %0A%09%09currentFrame = animation.getKeyFrame(stateTime, true); // %E8%8E%B7%E5%8F%96%E5%BD%93%E5%89%8D%E5%85%B3%E9%94%AE%E5%B8%A7%0A%09%09batch.draw(currentFrame, this.getX(), this.getY(), this.getWidth(),%0A%09%09%09%09this.getHeight());// %E7%BB%98%E5%88%B6%0A%09%7D%0A%7D%0A

add ActorAnimation