public ParedFondo(GameLogic logica, Play play) { #region configurarEfecto efecto = TgcShaders.loadEffect(GameModel.shadersDir + "shaderPlanta.fx"); #endregion #region configurarObjeto tag = new TgcSceneLoader().loadSceneFromFile(GameModel.mediaDir + "modelos\\Tag-TgcScene.xml").Meshes[0]; tag.Scale = new TGCVector3(500, 500, 500); tag.Effect = efecto; tag.Technique = "RenderScene"; tag.Position = new TGCVector3(100f, 340f, -3300f); tag.RotateZ(90.1f); objetos.Add(tag); body = FactoryBody.crearBodyPared(new TGCVector3(4000, 5, 1), new TGCVector3(0f, 215f, -3300f)); callback = new CollisionCallbackFinal(logica, play); logica.addBulletObject(this); #endregion PostProcess.agregarPostProcessObject(this); }
public Pared(GameLogic logica, float x) { #region configurarEfecto efecto = TgcShaders.loadEffect(GameModel.shadersDir + "shaderPlanta.fx"); #endregion #region configurarObjeto tag = new TgcSceneLoader().loadSceneFromFile(GameModel.mediaDir + "modelos\\Tag-TgcScene.xml").Meshes[0]; tag.Scale = new TGCVector3(100, 100, 100); tag.Effect = efecto; tag.Technique = "RenderScene"; tag.Position = new TGCVector3(x, 440f, -3300f); tag.RotateZ(90.1f); objetos.Add(tag); //x = -850, -150, 550, 1250 body = FactoryBody.crearBodyPared(new TGCVector3(150, 50, 50), new TGCVector3(x, 215f, -3300));//new TGCVector3(320, 5, 3300), new TGCVector3(x, 215f, 0)); callback = new CollisionCallbackWall(logica); logica.addBulletObject(this); #endregion PostProcess.agregarPostProcessObject(this); }