public static void update(GameContainer container, int delta) throws SlickException {
                if (isInputPressed(Controls.DEBUG)) {
                        setDebug(!isDebug());
                }

                if (transition != null) {
                        transition.update(game, container, delta);
                        if (transition.isComplete()) {
                                if (transition instanceof TiledMapTransition) {
                                        ((TiledMapTransition) transition).executeAfterCompletion();
                                }
                                transition = null;
                        }
                }

                camera.update(delta);

                container.setShowFPS(isDebug());

                for (int i = 0; i < entities.size(); i++) {
                        AbstractEntity entity = (AbstractEntity) entities.get(i);
                        entity.update(delta);
                }
        }