<commit_before>package heartattacks.states 
{
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import heartattacks.doodads.Player;
	import net.pixelpracht.tmx.TmxMap;
	import org.flixel.FlxSprite;
	import org.flixel.FlxState;
	import org.flixel.FlxText;
	import org.flixel.FlxTilemap;
	
	/**
	 * ...
	 * @author The Heart Attacks
	 */
	public class PlayState extends FlxState
	{
		[Embed(source = "../../../res/tilesets/Tiles.png")]
		private var MapImage:Class;
		
		[Embed(source = "../../../res/tilemaps/Map.txt", mimeType = "application/octet-stream")]
		private var Map:Class;
		
		override public function create():void
		{
			this.add(new FlxText(100, 100, 100, "Hello World!"));
		    this.add(new Player(300, 400));

			var map:FlxTilemap = new FlxTilemap();
			map.loadMap(new Map(), MapImage, 50, 50);
			this.add(map);
		}
	}
}<commit_msg>Adding collisions between player and tiles<commit_after>package heartattacks.states 
{
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import heartattacks.doodads.Player;
	import net.pixelpracht.tmx.TmxMap;
	import org.flixel.FlxSprite;
	import org.flixel.FlxState;
	import org.flixel.FlxText;
	import org.flixel.FlxTilemap;
	import org.flixel.FlxObject;
	import org.flixel.FlxG;
	
	/**
	 * ...
	 * @author The Heart Attacks
	 */
	public class PlayState extends FlxState
	{
		[Embed(source = "../../../res/tilesets/Tiles.png")]
		private var MapImage:Class;
		
		[Embed(source = "../../../res/tilemaps/Map.txt", mimeType = "application/octet-stream")]
		private var Map:Class;
		
		private var player:Player;
		private var level:FlxTilemap;
		
		override public function create():void
		{
			this.add(new FlxText(100, 100, 100, "Hello World!"));
			this.player = new Player(300, 400);
		    this.add(this.player);

			this.level = new FlxTilemap();
			this.level.loadMap(new Map(), MapImage, 50, 50);
			this.add(this.level);
		}
		
		override public function update():void
		{
			super.update();
			FlxG.collide(this.level, this.player);
		}
	}
}
{'fraction_non_alphanumeric': 0.14186369958275383, 'fraction_numerical': 0.01761706073249884, 'mean_word_length': 3.033644859813084, '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': '5378877', 'n_tokens_mistral': 864, 'n_tokens_neox': 746, 'n_words': 151}