<commit_before>package com.mygdx.mount.game.manager;

import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.mygdx.mount.game.actors.Hero;
import com.mygdx.mount.game.manager.game.services.DrawService;

/**
 * Created by wannabe on 24.04.15.
 */
public class GameManager extends Stage {
    DrawService drawService;
    Hero hero;

    public GameManager(Viewport viewport, Batch batch) {
        super(viewport, batch);
        drawService = new DrawService();
        hero = new Hero();
    }

    @Override
    public void draw() {
        getBatch().begin();
        drawService.drawHero(hero, getBatch());
        getBatch().end();
    }
}<commit_msg>Добавлен background<commit_after>package com.mygdx.mount.game.manager;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.mygdx.mount.game.actors.Hero;
import com.mygdx.mount.game.manager.game.services.DrawService;

/**
 * Created by wannabe on 24.04.15.
 */
public class GameManager extends Stage {
    private static final String BACKGROUND_URL = "sprites/background.jpg";
    private static final int SCREEN_WIDTH = Gdx.graphics.getWidth();
    private static final int SCREEN_HEIGHT = Gdx.graphics.getHeight();
    DrawService drawService;
    Hero hero;
    Texture backgroundTexture;
    Batch batch;

    public GameManager(Viewport viewport, Batch batch) {
        super(viewport, batch);
        drawService = new DrawService();
        hero = new Hero();
        backgroundTexture = new Texture(BACKGROUND_URL);
        this.batch = batch;
    }

    @Override
    public void draw() {
        batch.begin();
        batch.draw(backgroundTexture, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
        drawService.drawHero(hero, getBatch());
        batch.end();
    }
}
{'fraction_non_alphanumeric': 0.11451531893520844, 'fraction_numerical': 0.009040683073832245, 'mean_word_length': 3.349344978165939, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3430964', 'n_tokens_mistral': 663, 'n_tokens_neox': 632, 'n_words': 131}