<commit_before>package;

import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.text.FlxText;
import flixel.ui.FlxButton;
import flixel.math.FlxMath;
import flixel.util.FlxSpriteUtil;
import flixel.util.FlxColor;
import sprites.Map;
import sprites.Player;
import sprites.Enemy;
import sprites.DialogueBox;
import sprites.Object;
import sprites.pickups.Pickup;
import sprites.InteractableSprite;
import flixel.math.FlxRect;
import sprites.CollectableSprite;
import flixel.FlxObject;
import flixel.math.FlxPoint;
import flash.Lib;
import flixel.FlxCamera;

class PlayState extends FlxState
{
  // Demo arena boundaries
  static var LEVEL_MIN_X;
  static var LEVEL_MAX_X;
  static var LEVEL_MIN_Y;
  static var LEVEL_MAX_Y;

  private var map:Map;
  public var dialogue_box:DialogueBox;
  public var player:Player;
  public var pickups:List<Pickup>;
  public var enemies:List<Enemy>;
  public var objects:List<Object>;
  public var interactableSprites:List<InteractableSprite>;
  public var collectables:List<CollectableSprite>;

  public var paused:Bool;
  public var survival_type:Bool; // true? only one life
  public var interacted:InteractableSprite;
  public var collected:CollectableSprite;
  public var collected_asset:String;

  public function new(){
    Spawn.state = this;
    super();
  }
	override public function create():Void
	{
    LEVEL_MIN_X = -Lib.current.stage.stageWidth / 2;
    LEVEL_MAX_X = Lib.current.stage.stageWidth * 1.5;
    LEVEL_MIN_Y = -Lib.current.stage.stageHeight / 2;
    LEVEL_MAX_Y = Lib.current.stage.stageHeight * 1.5;

    FlxG.camera.setScale(2, 2);
    FlxG.camera.setPosition(0,0);
    pickups = new List<Pickup>();
    enemies = new List<Enemy>();
    objects = new List<Object>();
    interactableSprites = new List<InteractableSprite>();
    collectables = new List<CollectableSprite>();
    survival_type = true;
    interacted = null;
    collected = null;
    paused = false;
		super.create();
    map = new Map(this);
    map.makeGraphic( Main.STAGE_WIDTH, Main.STAGE_HEIGHT, Main.BACKGROUND_GREY );
    Map.drawGridLines( this, map );
    Map.drawTopBar( this, map );

    bgColor = Main.BACKGROUND_GREY;
    add(map);
    add(flixel.util.FlxCollision.createCameraWall(FlxG.camera, true, 1));

#if neko
    Spawn.dev();
#else<commit_msg>mouse hidden from PlayState. closes #39<commit_after>package;

import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.text.FlxText;
import flixel.ui.FlxButton;
import flixel.math.FlxMath;
import flixel.util.FlxSpriteUtil;
import flixel.util.FlxColor;
import sprites.Map;
import sprites.Player;
import sprites.Enemy;
import sprites.DialogueBox;
import sprites.Object;
import sprites.pickups.Pickup;
import sprites.InteractableSprite;
import flixel.math.FlxRect;
import sprites.CollectableSprite;
import flixel.FlxObject;
import flixel.math.FlxPoint;
import flash.Lib;
import flixel.FlxCamera;

class PlayState extends FlxState
{
  // Demo arena boundaries
  static var LEVEL_MIN_X;
  static var LEVEL_MAX_X;
  static var LEVEL_MIN_Y;
  static var LEVEL_MAX_Y;

  private var map:Map;
  public var dialogue_box:DialogueBox;
  public var player:Player;
  public var pickups:List<Pickup>;
  public var enemies:List<Enemy>;
  public var objects:List<Object>;
  public var interactableSprites:List<InteractableSprite>;
  public var collectables:List<CollectableSprite>;

  public var paused:Bool;
  public var survival_type:Bool; // true? only one life
  public var interacted:InteractableSprite;
  public var collected:CollectableSprite;
  public var collected_asset:String;

  public function new(){
    Spawn.state = this;
    super();
  }
	override public function create():Void
	{
    FlxG.mouse.visible = false;
    FlxG.camera.setScale(2, 2);
    FlxG.camera.setPosition(0,0);
    pickups = new List<Pickup>();
    enemies = new List<Enemy>();
    objects = new List<Object>();
    interactableSprites = new List<InteractableSprite>();
    collectables = new List<CollectableSprite>();
    survival_type = true;
    interacted = null;
    collected = null;
    paused = false;
		super.create();
    map = new Map(this);
    map.makeGraphic( Main.STAGE_WIDTH, Main.STAGE_HEIGHT, Main.BACKGROUND_GREY );
    Map.drawGridLines( this, map );
    Map.drawTopBar( this, map );

    bgColor = Main.BACKGROUND_GREY;
    add(map);
    add(flixel.util.FlxCollision.createCameraWall(FlxG.camera, true, 1));

#if neko
    Spawn.dev();
#else
{'fraction_non_alphanumeric': 0.10328638497652583, 'fraction_numerical': 0.004024144869215292, 'mean_word_length': 4.516646115906289, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7206461', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1538, 'n_words': 348}