示例#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)
 {
 }