Introduction
This short tutorial will guide you to create and run your first Greenfoot project right out of IntelliJ IDEA. There are plenty of advantages in doing so:- You get to use all the features of IntelliJ, especially code highlighting, auto completion and access to documentation of Greenfoot and the Java libraries
- You can take a look into the sources of Greenfoot and see how it is coded itself
- Be more flexible with your programming style, use packages, Java internal classes, and similar
- Make use of advanced programming features, like debugging or using build tools like Maven to use and create 3rd party libraries
- Many more...
Step 0 - Installing the neccecary programs
You will need to install both Greenfoot and IntelliJ IDEA. For IntelliJ, both the Community and the Ultimate version will work, but Community is free. Note though that as a student you can also get access to the Ultimate version for free. For Greenfoot, you also need to download the source code. The Greenfoot sources are available on the Greenfoot website, but it's quite complicated to order the files in the folder you get, and also some files are missing. I've created a sorted collection of all the files you need. The sources in that are for Greenfoot versions 3.6.X and 3.7.X, if you use a different version you will *also* have to get the corresponding sources from the Greenfoot website (you still also need my files).- Greenfoot Application
- Combined Greenfoot sources
- Greenfoot source code (only non 3.6.X and 3.7.X versions)
- IntelliJ IDEA