<commit_before>package layers;

import com.haxepunk.Entity;
import com.haxepunk.HXP;
import com.haxepunk.Scene;
import com.haxepunk.graphics.Image;
import com.haxepunk.graphics.Text;
import com.haxepunk.graphics.atlas.Atlas;

class LayerScene extends DemoScene
{

	public function new()
	{
		super();
	}

	public override function begin()
	{

		var e = new Entity();
		e.layer = 50;

		var img2 = Image.createCircle(100, 0x00ff00);
		img2.x = 100;
		img2.y = 100;

		var img1 = Image.createCircle(100, 0xff0000);

		// add to graphic list
		e.addGraphic(img1);
		e.addGraphic(img2);
		add(e);

		var text = new Text("Hello World!");
		text.size = 24;
		addGraphic(text, 30, 150, 250);

		var img3 = Image.createCircle(100, 0x0000ff);
		addGraphic(img3, HXP.BASELAYER, 200, 200); // add graphic at base layer 10

		var background = Image.createRect(HXP.width, HXP.height, 0xffffff);
		addGraphic(background, 100); // add graphic at back
	}
}<commit_msg>removing BASELAYER instance<commit_after>package layers;

import com.haxepunk.Entity;
import com.haxepunk.HXP;
import com.haxepunk.Scene;
import com.haxepunk.graphics.Image;
import com.haxepunk.graphics.Text;
import com.haxepunk.graphics.atlas.Atlas;

class LayerScene extends DemoScene
{

	public function new()
	{
		super();
	}

	public override function begin()
	{

		var e = new Entity();
		e.layer = 50;

		var img2 = Image.createCircle(100, 0x00ff00);
		img2.x = 100;
		img2.y = 100;

		var img1 = Image.createCircle(100, 0xff0000);

		// add to graphic list
		e.addGraphic(img1);
		e.addGraphic(img2);
		add(e);

		var text = new Text("Hello World!");
		text.size = 24;
		addGraphic(text, 30, 150, 250);

		var img3 = Image.createCircle(100, 0x0000ff);
		addGraphic(img3, 0, 200, 200); // add graphic at base layer 10

		var background = Image.createRect(HXP.width, HXP.height, 0xffffff);
		addGraphic(background, 100); // add graphic at back
	}
}
{'fraction_non_alphanumeric': 0.1285414480587618, 'fraction_numerical': 0.06558237145855195, 'mean_word_length': 3.9149484536082473, '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': '7128982', 'n_tokens_mistral': 872, 'n_tokens_neox': 713, 'n_words': 176}