What is the difference between “Game”, “Screen” and “ApplicationAdapter” in libgdx?
问题 In tutorials sometimes people use "extends Game", sometimes "implements Screen" and i have auto-generated "extends ApplicationAdapter". What is the difference between them? 回答1: ApplicationAdapter allows you to create a listener, but not being forced to implement every method. If you're familiar with Swing, check out KeyAdapter , it's the same idea. An ApplicationListener allows you to handle application events. This allows you to execute code during certain events within the application life