<commit_before>/**
 * 
 */
package com.lostcodestudios.gnoPortal.gameplay;

import java.io.IOException;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.lostcode.javalib.entities.Entity;
import com.lostcode.javalib.entities.EntityWorld;
import com.lostcode.javalib.utils.Convert;
import com.lostcode.javalib.utils.SpriteSheet;
import com.lostcodestudios.gnoPortal.gameplay.entities.systems.InputSystem;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.BallTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.CrosshairTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.DesktopTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.PaddleTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.PortalTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.WallTemplate;

/**
 * @author william
 *
 */
public class PongWorld extends EntityWorld {

	public static final float PADDLE_SPEED = 25f;
	public Entity Ball;
	
	public PongWorld(InputMultiplexer input, Camera camera, Vector2 gravity) {
		super(input, camera, gravity);
		// TODO Auto-generated constructor stub
		
		debugView.enabled = true;
	}

	/* (non-Javadoc)
	 * @see com.lostcode.javalib.entities.EntityWorld#buildSpriteSheet()
	 */
	@Override
	protected void buildSpriteSheet() {
		try {
			this.spriteSheet = SpriteSheet.fromXML(Gdx.files.internal("spritesheet.xml"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	@Override
	protected void buildTemplates() {
		this.addTemplate("paddle", new PaddleTemplate());
		this.addTemplate("ball", new BallTemplate());
		this.addTemplate("wall",new WallTemplate());
		this.addTemplate("crosshair", new CrosshairTemplate());
		this.addTemplate("portal", new PortalTemplate());
		this.addTemplate("desktop", new DesktopTemplate());
	}
	
	private InputSystem inputSystem;
	@Override
	protected void buildSystems() {
		super.buildSystems();
		
		systems.addSystem(inputSystem = new InputSystem(input, Ball));
	}

	@Override
	protected void buildEntities() {
		this.createEntity("desktop");
		this.createEntity("paddle", "left");
		this.createEntity("paddle", "right");
		Ball = inputSystem.Ball = this.createEntity("ball", "left");
		this.createEntity("wall", "testWall", new Rectangle(0,0,100,100));
		this.createEntity("wall", "bottomWall", new Rectangle(0,-462/2f-4,722f,24));
		this.createEntity("wall", "top", new Rectangle(0,462/2f+4,722f,24));
		this.createEntity("wall", "leftWall", new Rectangle(-722f/2-4,0,24,462f));
		this.createEntity("wall", "rightWall", new Rectangle(722f/2+4,0,24,462f));
		this.createEntity("crosshair");
	}
	
	/* (non-Javadoc)
	 * @see com.lostcode.javalib.entities.EntityWorld#getBounds()
	 */
	@Override
	public Rectangle getBounds() {
		return Convert.pixelsToMeters(new Rectangle(-722f/2, -462f/2, 722f, 462f));
	}

	public void enableDebug(){
		debugView.enabled = true;
	}
}<commit_msg>increased world bounds for twist expansion moment<commit_after>/**
 * 
 */
package com.lostcodestudios.gnoPortal.gameplay;

import java.io.IOException;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.lostcode.javalib.entities.Entity;
import com.lostcode.javalib.entities.EntityWorld;
import com.lostcode.javalib.utils.Convert;
import com.lostcode.javalib.utils.SpriteSheet;
import com.lostcodestudios.gnoPortal.gameplay.entities.systems.InputSystem;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.BallTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.CrosshairTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.DesktopTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.PaddleTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.PortalTemplate;
import com.lostcodestudios.gnoPortal.gameplay.entities.templates.WallTemplate;

/**
 * @author william
 *
 */
public class PongWorld extends EntityWorld {

	public static final float PADDLE_SPEED = 25f;
	public Entity Ball;
	
	public PongWorld(InputMultiplexer input, Camera camera, Vector2 gravity) {
		super(input, camera, gravity);
		// TODO Auto-generated constructor stub
		
		debugView.enabled = true;
	}

	/* (non-Javadoc)
	 * @see com.lostcode.javalib.entities.EntityWorld#buildSpriteSheet()
	 */
	@Override
	protected void buildSpriteSheet() {
		try {
			this.spriteSheet = SpriteSheet.fromXML(Gdx.files.internal("spritesheet.xml"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	@Override
	protected void buildTemplates() {
		this.addTemplate("paddle", new PaddleTemplate());
		this.addTemplate("ball", new BallTemplate());
		this.addTemplate("wall",new WallTemplate());
		this.addTemplate("crosshair", new CrosshairTemplate());
		this.addTemplate("portal", new PortalTemplate());
		this.addTemplate("desktop", new DesktopTemplate());
	}
	
	private InputSystem inputSystem;
	@Override
	protected void buildSystems() {
		super.buildSystems();
		
		systems.addSystem(inputSystem = new InputSystem(input, Ball));
	}

	@Override
	protected void buildEntities() {
		this.createEntity("desktop");
		this.createEntity("paddle", "left");
		this.createEntity("paddle", "right");
		Ball = inputSystem.Ball = this.createEntity("ball", "left");
		this.createEntity("wall", "testWall", new Rectangle(0,0,100,100));
		this.createEntity("wall", "bottomWall", new Rectangle(0,-462/2f-4,722f,24));
		this.createEntity("wall", "top", new Rectangle(0,462/2f+4,722f,24));
		this.createEntity("wall", "leftWall", new Rectangle(-722f/2-4,0,24,462f));
		this.createEntity("wall", "rightWall", new Rectangle(722f/2+4,0,24,462f));
		this.createEntity("crosshair");
	}
	
	/* (non-Javadoc)
	 * @see com.lostcode.javalib.entities.EntityWorld#getBounds()
	 */
	@Override
	public Rectangle getBounds() {
		return Convert.pixelsToMeters(new Rectangle(-722f/2 * 2.33f, -462f/2 * 2.33f, 722f * 2.33f, 462f * 2.33f));
	}

	public void enableDebug(){
		debugView.enabled = true;
	}
}
{'fraction_non_alphanumeric': 0.1384126984126984, 'fraction_numerical': 0.02412698412698413, 'mean_word_length': 5.653643083421331, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5526155', 'n_tokens_mistral': 2347, 'n_tokens_neox': 2114, 'n_words': 346}