I coded a large proportion of my "7 day Roguelike" Alchemy ( 
https://github.com/mikera/alchemy ) while the game was running.

Tools I used were Eclipse, Clojure and the Counterclockwise plugin. No 
special JVM settings required: Clojure is quite happy to reload and 
recompile code on demand on any JVM.

The basic strategy was:

 - Launch a REPL
 - Run the game (I set up a convenience function(launch) that would run a 
fresh instance of the game in a new window whenever needed)
 - Test / play the game
 - Whenever necessary, write code to modify or query the running game at 
the REPL and run this live
 - If I needed to reload any code from the editor into the running game, 
press CTRL-ALT-L (useful whenever I coded a new feature in the regular 
editor and wanted to test it out)


On Saturday, 23 March 2013 22:22:14 UTC+8, Oskar Kvist wrote:
>
> Hi!
>
> I saw this video http://www.youtube.com/watch?v=BES9EKK4Aw4 of Notch 
> coding on Minecraft while the game was running, and of course seeing the 
> changes in the running program. He used some kind of debug mode in his IDE 
> (I don't really know which IDE). I want to make a game, and I want to to 
> also be able to code while the program is running. I know this sort of 
> thing is common in Lisps, so even without that IDE's debug mode it should 
> be possible. Is there anything in particular that I need to do or look out 
> for in order to make it work? Are there some JVM settings I should use? 
> Does anyone know how that debug mode works? I kind of understand how it can 
> be done with a plain repl, but I don't wanna miss out on anything that 
> would make it easier. Any kind of insight is very appreciated.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to