public Scene LoadScene(Context context) { // TODO entities List <Entity> entities = new List <Entity>(); Scene scene = new Scene("nemocnice", entities, TileMapLoader.LoadIndexer(context.Assets.Textures.NemocniceScene, context.Assets), context); Entity doctor = new Entity(context) { Position = new Vector3(15.7f, 16.8f, 0), }; doctor.Behavior = new Doctor(doctor); scene.AddEntity(doctor); scene.AddEntity(TileMapLoader.CreateTeleporter(context, new Vector3(18.6f, 17.7f, 0), new Vector3(23.8f, 6.5f, 0), "main")); Entity bed = new Entity(context) { Position = new Vector3(14.8f, 16.6f, 0), }; bed.Behavior = new HospitalBed(bed); bed.Collider = new RectangleCollider(bed, false, 1, 0.01f); scene.AddEntity(bed); TileMapLoader.AddTileColliders(scene, context); return(scene); }
public Scene LoadScene(Context context, Vector3 mainSceneTomovo) { // TODO entities List <Entity> entities = new List <Entity>(); Scene scene = new Scene("dum", entities, TileMapLoader.LoadIndexer(context.Assets.Textures.DumScene, context.Assets), context); Entity babiiii = new Entity(context) { Position = new Vector3(15.8f, 26.4f, 0), Animation = new Animation(context.Assets.Sprites.Grandma), }; babiiii.Behavior = new Grandma(babiiii); scene.AddEntity(babiiii); scene.AddEntity(TileMapLoader.CreateTeleporter(context, new Vector3(19.5f, 26.5f, 0), mainSceneTomovo, "main")); TileMapLoader.AddTileColliders(scene, context); return(scene); }
public Scene LoadScene(Context context) { // TODO entities List <Entity> entities = new List <Entity>(); Scene scene = new Scene("obchod", entities, TileMapLoader.LoadIndexer(context.Assets.Textures.ObchodScene, context.Assets), context); Entity isle1 = new Entity(context) { Position = new Vector3(12f, 18.58f, 0), }; isle1.Behavior = new GroceryStand(isle1); isle1.Collider = new RectangleCollider(isle1, false, 2, 0.01f); scene.AddEntity(isle1); Entity isle2 = new Entity(context) { Position = new Vector3(12f, 19.45f, 0), Animation = new Animation(context.Assets.Sprites.MarketIsleEntity), }; isle2.Collider = new RectangleCollider(isle2, false, 2, 0.01f); isle2.Behavior = new GroceryStand(isle1); scene.AddEntity(isle2); Entity isle3 = new Entity(context) { Position = new Vector3(14.5f, 19.45f, 0), Animation = new Animation(context.Assets.Sprites.MarketIsleEntity), }; isle3.Collider = new RectangleCollider(isle3, false, 2, 0.01f); isle3.Behavior = new GroceryStand(isle1); scene.AddEntity(isle3); Entity isle4 = new Entity(context) { Position = new Vector3(14.5f, 18.58f, 0), Animation = new Animation(context.Assets.Sprites.MarketIsleEntity), }; isle4.Collider = new RectangleCollider(isle4, false, 2, 0.01f); isle4.Behavior = new GroceryStand(isle1); scene.AddEntity(isle4); Entity isle5 = new Entity(context) { Position = new Vector3(17f, 19.45f, 0), Animation = new Animation(context.Assets.Sprites.MarketIsleEntity), }; isle5.Collider = new RectangleCollider(isle5, false, 2, 0.01f); isle5.Behavior = new GroceryStand(isle1); scene.AddEntity(isle5); Entity fjeiofeajiofea = new Entity(context) { Position = new Vector3(19.2f, 18.48f, 0), Animation = new Animation(context.Assets.Sprites.MarketCheckoutEntity), }; fjeiofeajiofea.Behavior = new CashRegister(fjeiofeajiofea); fjeiofeajiofea.Collider = new RectangleCollider(fjeiofeajiofea, false, 1, 0.01f); scene.AddEntity(fjeiofeajiofea); scene.AddEntity(TileMapLoader.CreateTeleporter(context, new Vector3(10.5f, 18.5f, 0), new Vector3(34.7f, 8.5f, 0), "main")); TileMapLoader.AddTileColliders(scene, context); return(scene); }