Notch making Prelude of the Chambered - IDE question

From about 15 seconds into the video (link below) Notch starts apparently coding while the game is running - and having it magically reflect his changes. I tried to stop/start the video in a sort of frame by frame manner. I notice just before he starts doing it, a properties window of some sort pops up but I’m too slow to catch it. I can see that he’s using Eclipse and I understand that he uses LWJGL for his games, right? The make-up of the game seems to be an applet (I have limited experience with applets).

Does anyone know how he does that? Is the application actually updating to reflect code changes without having to go through the close/build/run sequence?

You’re not the first to ask the question :slight_smile:

http://www.java-gaming.org/topics/markus-quot-notch-quot-live-streaming-from-ludum-dare/24657/view.html

Reply 17 onward.

Mike

You can do that when you are running in debug mode (see that little button next to the run button, the one with the “bug” icon?). Eclipse hot-swaps the new bytecode in while your app is running.

Good read. :slight_smile:

Thanks - now I get to spend a while seeing if I can make netbeans do it. :wink:

if you get used to it’s very comfortable
change everything while the game is running and stuff

You can change almost everything…you guessed it…except:
-add/remove/modify global variables
-add/remove/modify methods
-change method signature
-add/remove/rename classes

Basically, you can only change code that is inside methods. It’s still really useful when doing graphical stuff and you want to position/color an object the perfect position/shade.

Any IDE should be able to do hotswap – it’s a java feature, not an IDE feature. The built in hotswap is nice, but for real pro work, JRebel is where its at. Notch I’m sure can afford a JRebel license.

O_O I want that.