text: #pragma once
  #include "Module.h"
  #include "Animation.h"
  #include "p2DynArray.h"
  #include "Globals.h"
  
  #define BOUNCER_TIME 200
  
  
  
  enum lightTypes
  {
  	tiny,
  	medium,
  	big
  };
  
  
  struct obj
  {
  
  	double x;
  	double y;
  
  	double vx;
  	double vy;
  
  	double ax;
  	double ay;
  
  	double mass;
  
  
  };
  
  class ModuleSceneIntro;
  
  struct Light
  {
  	/*Light() : body(NULL), texture(NULL), on(false), fx(0)
  	{}*/
  
  	//Light(ModuleSceneIntro* physics, int x, int y, lightTypes type);
  
  	//lightTypes type;
  	//PhysBody* body;
  	SDL_Texture* texture;
  	bool on;
  	uint fx;
  	int x, y;
  };
  
  class ModuleSceneIntro : public Module
  {
  public:
  	ModuleSceneIntro(Application* app, bool start_enabled = true);
  	~ModuleSceneIntro();
  
  	bool Start();
  	bool PreUpdate();
  	bool Update();
  	bool PostUpdate();
  	bool CleanUp();
  
  public:
  
  	SDL_Texture* graphics;
  	PhysBody* background;
  
  	/*Bouncer bouncer1;
  	Bouncer bouncer2;
  
  	Bouncer side_bouncer1;
  	Bouncer side_bouncer2;*/
  
  	//SDL_Texture* tex_light_tiny;
  	//SDL_Texture* tex_light_medium;
  	//SDL_Texture* tex_light_big;
  	////
  	//uint fx_light_tiny;
  	//uint fx_light_medium;
  	//uint fx_light_big;
  
  	/*p2DynArray<Light> lights;*/
  	bool p1Win = false;
  	bool p2Win = false;
  	SDL_Texture* P1WIN = nullptr;
  	SDL_Texture* P2WIN = nullptr;
  	PhysBody* player_lose;
  	uint player_lose_fx;
  
  	int sx = PIXEL_TO_METERS(0);
  	int sy = PIXEL_TO_METERS(650);
  	int sw = PIXEL_TO_METERS(1024);
  	int sh = PIXEL_TO_METERS(280);
  
  	int sx2 = PIXEL_TO_METERS(0);
  	int sy2 = PIXEL_TO_METERS(0);
  	int sw2 = PIXEL_TO_METERS(1024);
  	int sh2 = PIXEL_TO_METERS(100);
  
  	//Boxes
  	int b1x = PIXEL_TO_METERS(100);
  	int b1y = PIXEL_TO_METERS(170);
  	int b1w = PIXEL_TO_METERS(90);
  	int b1h = PIXEL_TO_METERS(30);
  
  	int b2x = PIXEL_TO_METERS(100);
  	int b2y = PIXEL_TO_METERS(555);
  	int b2w = PIXEL_TO_METERS(90);
  	int b2h = PIXEL_TO_METERS(30);
  
  	int b3x = PIXEL_TO_METERS(824);
  	int b3y = PIXEL_TO_METERS(170);
  	int b3w = PIXEL_TO_METERS(90);
  	int b3h = PIXEL_TO_METERS(30);
  
  	int b4x = PIXEL_TO_METERS(824);
  	int b4y = PIXEL_TO_METERS(555);
  	int b4w = PIXEL_TO_METERS(90);
  	int b4h = PIXEL_TO_METERS(30);
  
  	//COLLIDERS
  	Collider* Box1Coll = nullptr;
  	Collider* Box2Coll = nullptr;
  	Collider* Box3Coll = nullptr;
  	Collider* Box4Coll = nullptr;
  
  };
  