<commit_before>package org.crumbleworks.forge.karmen.screen;

import org.crumbleworks.forge.karmen.Karmen;
import org.crumbleworks.forge.karmen.character.Floyd;
import org.crumbleworks.forge.karmen.character.FloydInputAdapter;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;

public class PlayScreen implements Screen {

    private final Karmen game;
    
    private Floyd floyd;
    
    private InputMultiplexer inputMultiplexer;
    
//    private PlayScreenDebugRenderer renderer;
    
    public PlayScreen(final Karmen game) {
        this.game = game;
        this.floyd = new Floyd(Karmen.SCREEN_WIDTH / 2, 50, 64, 128, game);
        
        inputMultiplexer = new InputMultiplexer(new FloydInputAdapter(floyd));
        Gdx.input.setInputProcessor(inputMultiplexer);
        
//        renderer = new PlayScreenDebugRenderer();
    }

    @Override
    public void show() {
        // TODO Auto-generated method stub

    }

    @Override
    public void render(float delta) {
        
        Gdx.gl.glClearColor(1, 0.9f, 0.9f, 1);
        Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
        game.getBatch().begin();
        
        floyd.update(delta);
//        renderer.drawGrid(game.getCamera());
        
        
        game.getBatch().end();
        
        checkInput();
    }
    
    private void checkInput() {
        //chk for input
        if(Gdx.input.isKeyJustPressed(Keys.Q)) {
            game.setScreen(game.menuScreen);
        }
    }

    @Override
    public void resize(int width, int height) {
        // TODO Auto-generated method stub

    }

    @Override
    public void pause() {
        // TODO Auto-generated method stub

    }

    @Override
    public void resume() {
        // TODO Auto-generated method stub

    }

    @Override
    public void hide() {
        // TODO Auto-generated method stub
<commit_msg>inputprocessor now only active when playscreen active<commit_after>package org.crumbleworks.forge.karmen.screen;

import org.crumbleworks.forge.karmen.Karmen;
import org.crumbleworks.forge.karmen.character.Floyd;
import org.crumbleworks.forge.karmen.character.FloydInputAdapter;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;

public class PlayScreen implements Screen {

    private final Karmen game;
    
    private Floyd floyd;
    
    private InputMultiplexer inputMultiplexer;
    
//    private PlayScreenDebugRenderer renderer;
    
    public PlayScreen(final Karmen game) {
        this.game = game;
        this.floyd = new Floyd(Karmen.SCREEN_WIDTH / 2, 50, 64, 128, game);
        
        inputMultiplexer = new InputMultiplexer(new FloydInputAdapter(floyd));
//        renderer = new PlayScreenDebugRenderer();
    }

    @Override
    public void show() {
        Gdx.input.setInputProcessor(inputMultiplexer);
    }

    @Override
    public void render(float delta) {
        
        Gdx.gl.glClearColor(1, 0.9f, 0.9f, 1);
        Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
        game.getBatch().begin();
        
        floyd.update(delta);
//        renderer.drawGrid(game.getCamera());
        
        
        game.getBatch().end();
        
        checkInput();
    }
    
    private void checkInput() {
        //chk for input
        if(Gdx.input.isKeyJustPressed(Keys.Q)) {
            game.setScreen(game.menuScreen);
        }
    }

    @Override
    public void resize(int width, int height) {
        // TODO Auto-generated method stub

    }

    @Override
    public void pause() {
        // TODO Auto-generated method stub

    }

    @Override
    public void resume() {
        // TODO Auto-generated method stub

    }

    @Override
    public void hide() {
        Gdx.input.setInputProcessor(null);
{'fraction_non_alphanumeric': 0.10045317220543806, 'fraction_numerical': 0.00906344410876133, 'mean_word_length': 2.330259849119866, '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': '6988877', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1224, 'n_words': 247}