0
\$\begingroup\$

I have a small working game prototype. I want to do something like

LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.resizable = false;

But I get "LwjglApplicationConfiguration cannot be resolved to a type"

What can I do? Or is there a different method? Thanks.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ where are you trying to use this code? Generally, the different sub projects (desktop, android, ios) have a launcher file that already has a cfg object defined. (Look at DesktopLauncher.java in the desktop project) \$\endgroup\$ Commented Nov 16, 2015 at 19:04
  • \$\begingroup\$ That was it. Thanks. This config code needs to be in -desktop/DesktopLauncher.java not the -´-core/MyGame ! \$\endgroup\$ Commented Nov 16, 2015 at 23:03

1 Answer 1

1
\$\begingroup\$

This code should work:

LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.resizable = false;
new LwjglApplication(new YourGame(), config);

Are you using the newest source from svn?
If it still doesn't work, there must be another problem..

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.