public Projectile(Game game, Model model, Vector3 pos, Vector3 vel, GameObjectType targetType) : base(game) { this.model = model; this.pos = pos; this.vel = vel; this.targetType = targetType; squareHitRadius = hitRadius * hitRadius; }
public Player(Game game) : base(game) { type = GameObjectType.Player; model = game.assets.GetModel("player", CreatePlayerModel); pos = new SharpDX.Vector3(0, game.boundaryBottom, 0); vel = Vector3.Zero; }
public Enemy(Game game, Vector3 pos) : base(game) { type = GameObjectType.Enemy; model = game.assets.GetModel("ship", CreateEnemyModel); this.pos = pos; setFireTimer(); }
public GameObject(Game game) { this.game = game; }
public EnemyController(Game game) : base(game) { nextWave(); }
//Width and height for aspect in PerspectiveLH public Camera(Game game, int width, int height) { this.game = game; this.width = width; this.height = height; }
public virtual void init(Game game, int width, int height) { this.game = game; this.width = width; this.height = height; }
public VisibleGameObject(Game game) : base(game) { this.game = game; transformation = Matrix.Identity; }