Skip to content

Commit 3c27814

Browse files
authored
Updated import and running to latest intellij theme and fixed a couple inconsistencies (#224)
* Updated import and running to latest IntelliJ Theme and fixed a couple inconsistencies * Fix typo
1 parent 70061ea commit 3c27814

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

assets/images/dev/idea/0.png

26.1 KB
Loading

assets/images/dev/idea/1.png

58.9 KB
Loading

assets/images/dev/idea/3.png

19.7 KB
Loading

assets/images/dev/idea/4.png

87.1 KB
Loading

assets/images/dev/idea/5.png

134 KB
Loading

wiki/start/import-and-running.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ If you have just generated the project in gdx-liftoff, you may click the option
3232
If you want to execute your freshly imported project, you have to follow different steps, depending on your IDE and the platform you are targeting.
3333
## Desktop
3434
### In IDEA/Android Studio:
35-
1. Extend the Gradle tab on the right sight of your window: <br/>
35+
1. Extend the Gradle tab on the right side of your window.<br/>
36+
2. Expand the tasks of your project and then select: `lwjgl3 -> Tasks -> application -> run`:<br/>
3637
![](/assets/images/dev/idea/3.png)
37-
2. Expand the tasks of your project and then select: lwjgl3 -> other -> run.
3838

39-
**In Android Studio 4.2**, tasks are no longer shown by default. Go to `Settings -> Experimental` and uncheck `Do not build Gradle task list during Gradle sync`. Then sync the project via `File -> Sync Project with Gradle Files`
39+
**In Android Studio 4.2**, tasks are no longer shown by default. Go to `Settings -> Experimental` and check `Configure all Gradle tasks during Gradle Sync`. Then sync the project via `File -> Sync Project with Gradle Files`:<br/>
40+
![](/assets/images/dev/idea/4.png)
4041
{: .notice--primary}
4142

4243
<b>Alternatively</b>, you can create a run configuration:
4344
1. Right-click your Lwjgl3Launcher class
44-
2. Select 'Run Lwjgl3Launcher.main()'. This should fail with missing assets, because we need to hook up the assets folder first.
45-
3. Open up Run Configurations <br/>
45+
2. Select 'Run Lwjgl3Launcher.main()'. This should fail with missing assets, because we need to hook up the assets folder first:<br/>
46+
![](/assets/images/dev/idea/5.png)
47+
3. Open up Run Configurations:<br/>
4648
![](/assets/images/dev/idea/0.png)
47-
4. Edit the Run Configuration that was just created by running the lwjgl3 project and set the working directory to point to your `assets` folder <br/>
49+
4. Edit the Run Configuration that was just created by running the lwjgl3 project and set the working directory to point to your `assets` folder:<br/>
4850
![](/assets/images/dev/idea/1.png)
4951

5052
On **macOS**, LWJGL3 projects require one extra step: Either add the ([experimental](https://github.com/libgdx/libgdx/issues?q=is%3Aissue+is%3Aopen+label%3Aglfw-awt-macos)) `com.badlogicgames.gdx:gdx-lwjgl3-glfw-awt-macos` dependency to your lwjgl3 project, or, in your Run Configuration, set the VM Options to `-XstartOnFirstThread`. Additional information can be found [here](/news/2021/07/devlog-7-lwjgl3#do-i-need-to-do-anything-else).

0 commit comments

Comments
 (0)