Thank you now it works.
But I have another problem now:
My Game-loop runs on one thread which blocks the repl in/out so in
order to use the repl while the game is running I started the game-
loop in another thread.
like this
(.start (Thread. #(.start container)))
Always worked on my standalone command-line-repl - startup looked like
this:
Clojure 1.1.0
Mon May 31 11:20:26 CEST 2010 INFO:Slick Build #237
Mon May 31 11:20:26 CEST 2010 INFO:LWJGL Version: 2.1.0
Mon May 31 11:20:26 CEST 2010 INFO:OriginalDisplayMode: 1280 x 1024 x
32 @60Hz
Mon May 31 11:20:26 CEST 2010 INFO:TargetDisplayMode: 800 x 600 x 0
@0Hz
Mon May 31 11:20:27 CEST 2010 INFO:Starting display 800x600
Mon May 31 11:20:27 CEST 2010 INFO:Use Java PNG Loader = true
Mon May 31 11:20:27 CEST 2010 INFO:Controllers not available
Initialising animation data/player/stand/ stand
Mon May 31 11:20:28 CEST 2010 INFO:Initialising sounds..
Mon May 31 11:20:28 CEST 2010 INFO:- Sound works
Mon May 31 11:20:28 CEST 2010 INFO:- 64 OpenAL source available
Mon May 31 11:20:28 CEST 2010 INFO:- Sounds source generated
Initialising animation data/player/running/ mov
Initialising animation data/player/casting/ cast
Initialising animation data/player/die/ l
succeeded spawns: 542
ibxm alpha 45 (c)2006
mum...@gmail.com
user=>
But in counterclockwise it the new thread is not updated anymore it
seems. The game does load only partially and then when I type in some
things in the repl the new thread is updating and loading the game.
This happends at 2-3 evaluations.
So it starts like this, the new thread loading only partially - not
doing anything on the new thread it seems
Clojure 1.1.0
Mon May 31 11:22:15 CEST 2010 INFO:Slick Build #237
Mon May 31 11:22:15 CEST 2010 INFO:LWJGL Version: 2.1.0
Mon May 31 11:22:15 CEST 2010 INFO:OriginalDisplayMode: 1280 x 1024 x
32 @60Hz
Mon May 31 11:22:15 CEST 2010 INFO:TargetDisplayMode: 800 x 600 x 0
@0Hz
1:1 user=> #<Namespace game.game>
1:2 game.game=>
Then I evaluate some numbers and the game loads (stopping completely
in between)
Clojure 1.1.0
Mon May 31 11:22:15 CEST 2010 INFO:Slick Build #237
Mon May 31 11:22:15 CEST 2010 INFO:LWJGL Version: 2.1.0
Mon May 31 11:22:15 CEST 2010 INFO:OriginalDisplayMode: 1280 x 1024 x
32 @60Hz
Mon May 31 11:22:15 CEST 2010 INFO:TargetDisplayMode: 800 x 600 x 0
@0Hz
1:1 user=> #<Namespace game.game>
1:2 game.game=> 1
1
1:3 game.game=> 2
2
1:4 game.game=> Mon May 31 11:22:50 CEST 2010 INFO:Starting display
800x600
Mon May 31 11:22:50 CEST 2010 INFO:Use Java PNG Loader = true
Mon May 31 11:22:50 CEST 2010 INFO:Controllers not available
Initialising animation data/player/stand/ stand
Mon May 31 11:22:51 CEST 2010 INFO:Initialising sounds..
3
3
1:5 game.game=> 4
4
1:6 game.game=> Mon May 31 11:23:36 CEST 2010 INFO:- Sound works
Mon May 31 11:23:36 CEST 2010 INFO:- 64 OpenAL source available
Mon May 31 11:23:36 CEST 2010 INFO:- Sounds source generated
Initialising animation data/player/running/ mov
Initialising animation data/player/casting/ cast
Initialising animation data/player/die/ l
5
5
1:7 game.game=> succeeded spawns: 595
ibxm alpha 45 (c)2006
mum...@gmail.com
Then the game is fully loaded and running - but it takes 5 times
refreshing? the repl with some manual input.