{"size": 749, "ext": "js", "max_stars_repo_path": "moving-grid/src/bullet.js", "max_stars_repo_name": "megasblobby/chris-de-leon-tutorial", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "moving-grid/src/bullet.js", "max_issues_repo_name": "megasblobby/chris-de-leon-tutorial", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "moving-grid/src/bullet.js", "max_forks_repo_name": "megasblobby/chris-de-leon-tutorial", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.8076923077, "max_line_length": 110, "alphanum_fraction": 0.6902536716}
"use strict"

class Bullet extends Entity {
  constructor(components, renderer) {
    super();

    /*this.position = new Vector2();
    this.velocity = new Vector2();
    this.sizes = new Vector2();
    this.speed = 0;*/
    /*this.sizes
    let color = "yellow";*/
    this.components = components;
    this.renderer = renderer;
    this.movementManager = components.get("movement-manager");
    this.canvasContext = renderer.canvasContext;
    //this.addComponent("movement-manager", this.movementManager);*/
  }

  update(deltaTime) {
    //super.update(deltaTime);
    this.movementManager.position.increment(this.movementManager.velocity.scaled(this.movementManager.speed));
    this.renderer.position =   this.movementManager.position;
  }
}
