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; }
public GameManagementSystem(ContentManager content, PolygonLoader polygonLoader, World world) : base(world) { _polygonLoader = polygonLoader; World.Register <KeyPressed>(Handle); Start(); }
public EnemiesSpawnerHandler(GraphicsDevice graphicsDevice, ContentManager content, World world) { _graphicsDevice = graphicsDevice; _content = content; _jsonLoader = new JsonLoader(content); _polygonLoader = new PolygonLoader(_jsonLoader); _world = world; }
/// <summary> /// Awake Function, basic initialization. /// </summary> void Awake() { instance = this; isRunning = false; CreditField.text = ""; StatusField.text = ""; }
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; }
/// <summary> /// Load Function from specified Input field. /// </summary> public void LoadFromInput() { PolygonLoader.Load(input.text); }