public Widget(SuperPolarity game, Vector2 position) { Game = game; Position = position; Active = false; Children = new List<Widget>(); Listeners = new Dictionary<string, List<Action<float>>>(); }
public Actor(SuperPolarity newGame) { game = newGame; BoxDimensions.X = 20; BoxDimensions.Y = 20; BoxDimensions.W = 15; BoxDimensions.Z = 15; }
public Player(SuperPolarity game) { Score = 0; Multiplier = 1; Lives = 3; Game = game; DebugFont = Game.Content.Load<SpriteFont>("Fonts\\bigfont"); LifeSprite = Game.Content.Load<Texture2D>("Graphics\\neutral-ship"); }
public void Initialize(SuperPolarity game, Vector2 position, Ships shipType, int rate, int scoreThreshold) { Game = game; ShipType = shipType; ScoreThreshold = scoreThreshold; Rate = rate; Randomizer = new Random(); Position = position; CurrentTime = rate; }
public LetterChooseWidget(SuperPolarity game, Vector2 position) : base(game, position) { Active = false; CurrentChar = 65; Font = game.Content.Load<SpriteFont>("Fonts\\bigfont"); LockRate = 300; CurrentTime = 0; InputController.Bind("moveY", HandleMovement); }
public NameChooserWidget(SuperPolarity game, Vector2 position) : base(game, position) { AppendChild(new LetterChooseWidget(game, new Vector2(position.X, position.Y))); AppendChild(new LetterChooseWidget(game, new Vector2(position.X + 32, position.Y))); AppendChild(new LetterChooseWidget(game, new Vector2(position.X + 64, position.Y))); CurrentIndex = 0; Children[CurrentIndex].Activate(); LockRate = 300; CurrentTime = 0; InputController.Bind("moveX", HandleMovement); }
public Ship(SuperPolarity newGame) : base(newGame) { MagneticRadius = 250; RepelRadius = 100; HP = 2; FleeVelocity = 5; ActVelocity = 1; ChargeVelocity = 2.5f; CurrentPolarity = Polarity.Neutral; Magnetizing = false; }
internal static void SetGame(SuperPolarity game) { Game = game; }
static void Main() { using (var superPolarity = new SuperPolarity()) superPolarity.Run(); }
public StandardShip(SuperPolarity newGame) : base(newGame) { }
public RingGenerator(SuperPolarity newGame) : base(newGame) { }
internal static void SetGame(SuperPolarity game) { ActorFactory.Game = game; }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { superPolarity = new SuperPolarity(); superPolarity.Run (); }
public Screen(SuperPolarity game) { Active = false; Game = game; }
static void Main() { superPolarity = new SuperPolarity (); superPolarity.Run (); }
public MainShip(SuperPolarity newGame) : base(newGame) { }
public PointGenerator(SuperPolarity newGame) : base(newGame) { }
public GameActor(SuperPolarity newGame) : base(newGame) { }
public Generator(SuperPolarity newGame) : base(newGame) { Collides = false; }
public GameScreen(SuperPolarity newGame) : base(newGame) { }
public WaveGenerator(SuperPolarity newGame) : base(newGame) { }
public Bullet(SuperPolarity newGame) : base(newGame) { }
public FanGenerator(SuperPolarity newGame) : base(newGame) { }