Esempio n. 1
0
 public void Initialize()
 {
     if (RyseAgent.WithWalls)
     {
         PlanesManagerEngine = new PlanesManager();
     }
     StaticData.CurrentPausePlayGameMode = PlayPauseMode.PlayOnMode;
     RigidsManagerEngine    = new RigidsManager();
     CollisionManagerEngine = new CollisionManager();
     MouseRigidsAdderEngine = new MouseAdder();
     ResizeManagerEngine    = new MouseResizeManager();
     SpringsManagerEngine   = new SpringsManager();
     MouseManagerEngine     = new MouseManager();
     BubbleManagerEngine    = new BubbleManager();
     BasicBackGroundEngine  = new BasicBackGround();
     RocketsManagerEngine   = new RocketsManager();
     BlowerManagerEngine    = new BlowerManager();
     LiquidServiceEngine    = new LiquidService();
     //CatchableRopeManagerEngine = new CatchableRopeManager();
     RodsManagerEngine              = new RodsManager();
     RopeOfRodsManagerEngine        = new RopeOfRodsManager();
     RocketsCarrierManagerEngine    = new RocketsCarrierManager();
     TileSpringServiceManagerEngine = new TileSpringServiceManager();
     NotificationManagerEngine      = new NotificationManager();
     PrefCompsManager = new PreferredCompsManager();
     EntraManager     = new EntraManager();
     EntraPathManager = new EntraPathManager();
     //TestMe();
 }
 public void Draw(GameTime gameTime)
 {
     if (_bitmapPath != null)
     {
         _texToDraw = EntraManager.GetTexture2DFromBitmap(StaticData.EngineManager.Game1.GraphicsDevice,
                                                          _bitmapPath);
         Visual2D vis =
             new Visual2D(new Rectangle(0, 0, StaticData.LevelFarWidth, StaticData.LevelFarHeight),
                          _texToDraw);
         vis.Draw(gameTime);
     }
 }