After two days of hard work I have completed the assignment and will continue to work on my 3D framwork (but first I will update the Neheb page) :D...

This game is made in java and I really don´t like making games in java especially not threaded ones since they drain all the power from java, resulting in a laggy feeling of everything. I took a picture of it while test playing with two clients.


Result of some quick photoshop hacking...

I have nothing against java but for god sake!, don´t do games with it...
About don´t do games with java, I know many big games have been made I just think C# is so much better then if you don´t really want to mess with pointers to memory and such.

I am really having second thoughts about this course using java for realtime multithreaded applications, as far as I know java does NOT use real threading but simulated in the java bytecode interpreter and while thread changes can be and often are expensive when done on the os level, when done in java its just insane.

This assignment requirements for the client were like this
* Separate thread for rendering
* Separate thread for checking input
* Separate thread for client > server connection

Now the server had
* Separate thread for each client
* Separate thread for executing logic (did i say the game was to be 100% server side, no cheating..)

Now some of these threads had other threads sending messages to them and both server and client were two threads started from java Main.
All this running a server and a client on the same computer results in like 15 java threads hehe.
I feel sorry for my laptop since its CPU / fans ran like never before.

Well its working :D, and yes the picture of the "racing" game looks nothing like a track but the blob in the middle is solid and you need to pass one yellow square then the other yellow square to gain a lap.

I have just fixed all the bugs and now its actually really smooth, here is a picture.

  • Comments (0)
  • Posted: 2009-09-12

to be implemented..

devmoon.se © 2009
(Solo Game Programming)