예제 #1
0
파일: Level.cs 프로젝트: kallotec/Bonsai
        public Level(BonsaiGame game, EventBus eventBus) : base(game)
        {
            keyListeners = new List <KeyPressListener>();

            this.eventBus = eventBus;
            this.eventBusSubscriptionIds = new List <string>();

            chunkMap     = new ChunkMap(10, 10, 10, 10);
            physSettings = new PhysicsSettings
            {
                Gravity          = 5f,
                PhysicsType      = PhysicsType.Platformer,
                Friction         = 0.1f,
                TerminalVelocity = 200f,
            };
        }
예제 #2
0
 public StartScreen(BonsaiGame game) : base(game)
 {
 }