<commit_before>package com.ammonf.game.states;

import com.ammonf.game.sprites.Bird;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

/**
 * Created by Fritz on 5/12/2016.
 */
public class PlayState extends State {
    private Bird bird;

    protected PlayState(GameStateManager gsm) {
        super(gsm);
        bird = new Bird(50, 300); //Texture("bird-good1.png");
    }

    @Override
    protected void handleInput() {

    }

    @Override
    public void update(float dt) {
        handleInput();
        bird.update(dt);
    }

    @Override
    public void render(SpriteBatch sb) {
        sb.begin(); // open box up
        sb.draw(bird.getTexture(), bird.getPosition().x, bird.getPosition().y);
        sb.end();
    }
<commit_msg>Added missing cam orthographic viewport to PlayState<commit_after>package com.ammonf.game.states;

import com.ammonf.game.FAAB;
import com.ammonf.game.sprites.Bird;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

/**
 * Created by Fritz on 5/12/2016.
 */
public class PlayState extends State {
    private Bird bird;

    protected PlayState(GameStateManager gsm) {
        super(gsm);
        bird = new Bird(50, 300); //Texture("bird-good1.png");
        // yDown set to false means our bottom-left part is 0,0
        cam.setToOrtho(false, FAAB.WIDTH >> 1, FAAB.HEIGHT >> 1);
    }

    @Override
    protected void handleInput() {

    }

    @Override
    public void update(float dt) {
        handleInput();
        bird.update(dt);
    }

    @Override
    public void render(SpriteBatch sb) {
        // We're limiting the view of the screen
        // Bird will appear bigger and this will allow moving left to right
        sb.setProjectionMatrix(cam.combined);
        sb.begin(); // open box up
        sb.draw(bird.getTexture(), bird.getPosition().x, bird.getPosition().y);
        sb.end();
    }

{'fraction_non_alphanumeric': 0.12236503856041131, 'fraction_numerical': 0.016452442159383032, 'mean_word_length': 2.617100371747212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4731218', 'n_tokens_mistral': 644, 'n_tokens_neox': 610, 'n_words': 151}