Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Notch making Prelude of the Chambered - IDE question  (Read 2369 times)
0 Members and 1 Guest are viewing this topic.
Offline Suds

Senior Newbie




Lead Developer, DefeatThePurpose Entertainment


« Posted 2011-11-16 00:33:48 »

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?

http://www.youtube.com/watch?v=KcfFJ6pNEZk

Offline Mickelukas

JGO Ninja


Medals: 39
Projects: 2


Java guru wanabee


« Reply #1 - Posted 2011-11-16 00:57:14 »

You're not the first to ask the question Smiley

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

Reply 17 onward.

Mike

Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #2 - Posted 2011-11-16 00:57:32 »

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.

Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline Suds

Senior Newbie




Lead Developer, DefeatThePurpose Entertainment


« Reply #3 - Posted 2011-11-16 01:09:18 »


Good read. :-)

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.

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

Offline Cero
« Reply #4 - Posted 2011-11-16 01:26:10 »

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

Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #5 - Posted 2011-11-16 02:55:26 »

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.

Offline sproingie
« Reply #6 - Posted 2011-11-16 03:34:04 »

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.
Offline Suds

Senior Newbie




Lead Developer, DefeatThePurpose Entertainment


« Reply #7 - Posted 2011-11-16 03:53:11 »

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.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (87 views)
2013-05-16 21:24:48

gouessej (117 views)
2013-05-16 00:53:38

gouessej (112 views)
2013-05-16 00:17:58

theagentd (122 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (177 views)
2013-05-12 15:36:09

UnluckyDevil (185 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.104 seconds with 21 queries.