Example #1
0
 public Widget(SuperPolarity game, Vector2 position)
 {
     Game = game;
     Position = position;
     Active = false;
     Children = new List<Widget>();
     Listeners = new Dictionary<string, List<Action<float>>>();
 }
Example #2
0
 public Actor(SuperPolarity newGame)
 {
     game = newGame;
     BoxDimensions.X = 20;
     BoxDimensions.Y = 20;
     BoxDimensions.W = 15;
     BoxDimensions.Z = 15;
 }
Example #3
0
 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");
 }
Example #4
0
 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);
        }
Example #6
0
        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);
        }
Example #7
0
        public Ship(SuperPolarity newGame)
            : base(newGame)
        {
            MagneticRadius = 250;
            RepelRadius = 100;

            HP = 2;

            FleeVelocity = 5;
            ActVelocity = 1;
            ChargeVelocity = 2.5f;
            CurrentPolarity = Polarity.Neutral;
            Magnetizing = false;
        }
Example #8
0
 internal static void SetGame(SuperPolarity game)
 {
     Game = game;
 }
Example #9
0
 static void Main()
 {
     using (var superPolarity = new SuperPolarity())
         superPolarity.Run();
 }
Example #10
0
 public StandardShip(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #11
0
 public RingGenerator(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #12
0
 internal static void SetGame(SuperPolarity game)
 {
     ActorFactory.Game = game;
 }
Example #13
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     superPolarity = new SuperPolarity();
     superPolarity.Run ();
 }
Example #14
0
 public Screen(SuperPolarity game)
 {
     Active = false;
     Game = game;
 }
Example #15
0
 static void Main()
 {
     superPolarity = new SuperPolarity ();
     superPolarity.Run ();
 }
Example #16
0
 public MainShip(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #17
0
 public PointGenerator(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #18
0
 public GameActor(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #19
0
 public Generator(SuperPolarity newGame)
     : base(newGame)
 {
     Collides = false;
 }
Example #20
0
 public GameScreen(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #21
0
 public WaveGenerator(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #22
0
 public Bullet(SuperPolarity newGame)
     : base(newGame)
 {
 }
Example #23
0
 public FanGenerator(SuperPolarity newGame)
     : base(newGame)
 {
 }