Exemplo n.º 1
0
 public Spikes(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
     mSubType = definition.SubType;
     mFlipX   = definition.FlipX;
     mFlipY   = definition.FlipY;
 }
Exemplo n.º 2
0
 public LevelObject(SonicGame game, Level level, LevelObjectDefinition definition)
     : this(game, level)
 {
     mDefinition    = definition;
     mDisplacementX = definition.DisplacementX;
     mDisplacementY = definition.DisplacementY;
 }
Exemplo n.º 3
0
        public Masher(SonicGame game, Level level, LevelObjectDefinition definition)
            : base(game, level, definition)
        {
            mAnimation = new Animation(AnimationData);

            RadiusX = 12;
            RadiusY = 16;
        }
Exemplo n.º 4
0
 public PlayerView(SonicGame game, Player player)
 {
     mGame      = game;
     mPlayer    = player;
     mCamera    = mPlayer.MainCharacter.Camera;
     mLevel     = mGame.Level;
     mTitleCard = new TitleCard(mGame, mLevel);
 }
Exemplo n.º 5
0
        public Coconuts(SonicGame game, Level level, LevelObjectDefinition definition)
            : base(game, level, definition)
        {
            mAnimation = new Animation(AnimationData);

            RadiusX = 6;
            RadiusY = 8;
        }
Exemplo n.º 6
0
 public BuzzerProjectile(SonicGame game, Level level)
     : base(game, level)
 {
     mAnimation       = new Animation(AnimationData);
     mAnimation.Index = 3;
     RadiusX          = 4;
     RadiusY          = 4;
     mAnimation.Update();
 }
Exemplo n.º 7
0
        public Monitor(SonicGame game, Level level, LevelObjectDefinition definition)
            : base(game, level, definition)
        {
            RadiusX = 16;
            RadiusY = 16;

            mRoutine = 2;
            mSubType = definition.SubType;
        }
Exemplo n.º 8
0
        public EHZPlatform(SonicGame game, Level level, LevelObjectDefinition definition)
            : base(game, level, definition)
        {
            OscillateNumInit();

            RadiusX = 32;
            RadiusY = 8;

            mSubType = definition.SubType;
        }
Exemplo n.º 9
0
        public Ring(SonicGame game, Level level, LevelObjectDefinition definition)
            : base(game, level, definition)
        {
            mAnimation = new Animation(AnimationData);

            mTimeLeft = 256;

            // DrawPriority = 50;
            RadiusX = 6;
            RadiusY = 6;
        }
Exemplo n.º 10
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            for (int i = -128; i < 127; i++)
            {
                int d0 = i + 32;
                d0 &= 192;
                Debug.WriteLine("{0} -> {1}", i, d0);
            }

            // MakeSonicSS();
            // MakeTransparent("data\\graphics\\starpost.png", Color.FromArgb(255, 0, 255));
            // return;

            // LevelConverter conv = new LevelConverter();
            // conv.Convert();
            // return;

            using (SonicGame game = new SonicGame())
                game.Run();
        }
Exemplo n.º 11
0
 public LogBridge(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
     mSubType = definition.SubType;
 }
Exemplo n.º 12
0
 public Explosion(SonicGame game, Level level)
     : base(game, level)
 {
 }
Exemplo n.º 13
0
 public Platform(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
 }
Exemplo n.º 14
0
 public LoadingScreen(SonicGame game)
     : base(game)
 {
 }
Exemplo n.º 15
0
 public Animal(SonicGame game, Level level)
     : base(game, level)
 {
 }
Exemplo n.º 16
0
 public LevelObject(SonicGame game, Level level)
 {
     mGame  = game;
     mLevel = level;
 }
Exemplo n.º 17
0
 public Sparkle(SonicGame game, Level level)
     : base(game, level)
 {
 }
Exemplo n.º 18
0
 public Level(SonicGame game)
 {
     mGame = game;
 }
Exemplo n.º 19
0
 public EHZSpiralPathway(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
 }
Exemplo n.º 20
0
 public CoconutProjectile(SonicGame game, Level level)
     : base(game, level)
 {
     RadiusX = 4;
     RadiusY = 4;
 }
Exemplo n.º 21
0
 public LevelManager(SonicGame game)
 {
     mGame = game;
 }
Exemplo n.º 22
0
 public TitleCard(SonicGame game, Level level)
 {
     mGame  = game;
     mLevel = level;
 }
Exemplo n.º 23
0
 public Starpost(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
     mIndex = definition.SubType;
 }
Exemplo n.º 24
0
 public Badnik(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
 }
Exemplo n.º 25
0
 public CollisionPlaneSwitcher(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
     mSubType = definition.SubType;
     mFlipX   = definition.FlipX;
 }
Exemplo n.º 26
0
 public LevelScreen(SonicGame game)
     : base(game)
 {
     mPlayerView        = new PlayerView(game, game.Players[0]);
     mPlayerView.Bounds = new Rectangle(0, 0, game.DisplayWidth, game.DisplayHeight);
 }
Exemplo n.º 27
0
        public static LevelObject Create(SonicGame game, Level level, LevelObjectDefinition definition)
        {
            LevelObject obj;

            switch (definition.Id)
            {
            case 3:
                obj = new CollisionPlaneSwitcher(game, level, definition);
                break;

            case 6:
                obj = new EHZSpiralPathway(game, level, definition);
                break;

            case 13:
                obj = new Signpost(game, level, definition);
                break;

            case 17:
                obj = new LogBridge(game, level, definition);
                break;

            case 24:
                obj = new EHZPlatform(game, level, definition);
                break;

            case 37:
                obj = new Ring(game, level, definition);
                break;

            case 38:
                obj = new Monitor(game, level, definition);
                break;

            case 54:
                obj = new Spikes(game, level, definition);
                break;

            case 65:
                obj = new Spring(game, level, definition);
                break;

            case 75:
                obj = new Buzzer(game, level, definition);
                break;

            case 92:
                obj = new Masher(game, level, definition);
                break;

            case 121:
                obj = new Starpost(game, level, definition);
                break;

            case 157:
                obj = new Coconuts(game, level, definition);
                break;

            default:
                return(null);
            }

            return(obj);
        }
Exemplo n.º 28
0
 public MonitorContents(SonicGame game, Level level)
     : base(game, level)
 {
 }
Exemplo n.º 29
0
 public Sonic(SonicGame game, Level level)
     : base(game, level)
 {
 }
Exemplo n.º 30
0
 public SolidObject(SonicGame game, Level level, LevelObjectDefinition definition)
     : base(game, level, definition)
 {
 }