package com.aide.trainer.mylibgdxgame;
import com.badlogic.gdx.;
import com.badlogic.gdx.audio.;
import com.badlogic.gdx.graphics.;
import com.badlogic.gdx.graphics.g2d.;
import com.badlogic.gdx.math.;
import java.util.;
public class MyGdxGame implements ApplicationListener
{
int ROCK_DISTANCE = 0;
OrthographicCamera camera;
Animation walkAnimation;
TextureRegion backgroundTexture;
TextureRegion rockTexture;
Sound collisionSound;
BitmapFont font;
SpriteBatch batch;
float time;
Rectangle manPosition;
Vector2 manVelocity;
List<Rectangle> rockPositions;
@Override
public void create()
{
Texture texture = new Texture(Gdx.files.internal("skyBackground.jpg"));
backgroundTexture = new TextureRegion(texture, 0, 0, 2048, 563);
Texture texture2 = new Texture(Gdx.files.internal("rock.png"));
rockTexture = new TextureRegion(texture2, 2