예제 #1
0
        public BulletSpawner(ContentManager content, World world)
        {
            _bulletTexture = content.Load <Texture2D>("ship/bullet");
            _laserTexture  = content.Load <Texture2D>("ship/bullet_long");

            _polygonLoader = new PolygonLoader(new JsonLoader(content));
            _world         = world;
        }
예제 #2
0
        public GameManagementSystem(ContentManager content, PolygonLoader polygonLoader, World world) : base(world)
        {
            _polygonLoader = polygonLoader;

            World.Register <KeyPressed>(Handle);

            Start();
        }
예제 #3
0
 public EnemiesSpawnerHandler(GraphicsDevice graphicsDevice, ContentManager content, World world)
 {
     _graphicsDevice = graphicsDevice;
     _content        = content;
     _jsonLoader     = new JsonLoader(content);
     _polygonLoader  = new PolygonLoader(_jsonLoader);
     _world          = world;
 }
예제 #4
0
    /// <summary>
    /// Awake Function, basic initialization.
    /// </summary>
    void Awake()
    {
        instance = this;

        isRunning = false;

        CreditField.text = "";
        StatusField.text = "";
    }
예제 #5
0
        public AsteroidsGame()
        {
            Content.RootDirectory = "Content";
            IsMouseVisible        = true;

            _graphics      = new GraphicsDeviceManager(this);
            _jsonLoader    = new JsonLoader(Content);
            _polygonLoader = new PolygonLoader(_jsonLoader);
            _world         = new World(480, 360);
        }
 public IndexGenerator(
     ILogger <IndexGenerator> logger,
     IndexerConfig config,
     PolygonLoader sourceLoader,
     PointLoader pointLoader,
     PatchLoader patchLoader,
     CrossReferenceLoader crossReferenceLoader)
 {
     _logger               = logger;
     _polygonLoader        = sourceLoader;
     _crossReferenceLoader = crossReferenceLoader;
     _pointLoader          = pointLoader;
     _patchLoader          = patchLoader;
     _config               = config;
 }
예제 #7
0
 /// <summary>
 /// Load Function from specified Input field.
 /// </summary>
 public void LoadFromInput()
 {
     PolygonLoader.Load(input.text);
 }