Hi all,
I’m hoping to attract the attention of anyone here that participated in the Java4K contest over the 12 or so years it was running, and also those that were fans but perhaps never participated. I never participated myself, but I was a big fan of the contest, going back to 2006 when I first noticed it. I knew the name Markus Persson through his Java4K entries long before he created Minecraft. I feel a bit embarrassed saying this but I didn’t realise who had created Minecraft until a couple of years ago! I was like “No way!”.
I was sad to see the Java4K contest end last year but understand why it did. I’m a Java dev with nearly 18 years experience now and I know that Java from the browser has been dying for a long time.
There were a few discussions last year about the possibility of a Javascript contest replacing Java4K. It was pointed out that there already exists a js1k contest, but that it differs quite a bit from the Java4K (not just with regards to the JS). If you’re not aware, there also a js13kgames contest that is a lot closer to what Java4K provided, but having watched it for a couple of years, I can see that 13K is a bit too much space to work with. 4K seems like a better limit.
I’ve been thinking about starting a JS4K contest for over a year now. As a trial, I converted three of the more popular Java4K games to Javascript to see how the sizing matches. I started with an HTML template, in to which I pasted the Java code, and then set about converting each line, line by line, in to the equivalent JavaScript. What I discovered is that if you use the js13kgames rules but with a 4K limit, then the ZIP file you end up with is comparable to the Java version. I put it through a process of JS minification using the Google Closure minifier following by KZIP for producing the ZIP file. Even then I had to manually minify things a bit before I could get VVVV below the 4K limit, but in the end I did (although I might have pulled out the winner screen come to think of it). Meg4kman and miners4K were easier to get below the 4K limit and without needing to remove anything.
I said above that I never participated in the Java4K contest, but I did have a go at creating some 4K Java games over the years as practice for potentially participating at some point. What I found is that porting the Java4K games over to JS, then minifying, and then zipping, and the effort to make it fit below 4K, was quite a similar challenge.
I wanted to announce my intention here to start a js4kgames contest next year, in about 6 months, since a lot of my focus in creating it is to appeal to former Java4K contestants. So I waned to start by discussing ideas here before announcing anything in any of the HTML5 gaming forums.
Let me know your thoughts and whether you think you would participate. In about a week I hope to have something online that will list the rules and advertise the contest. I’d then need to build the backend to support the submissions, which I plan to do using a free Google App Engine account.
Also let me know if you’d like me to port one of your Java4K games to JavaScript. I’m keen to convert a few more, particularly if you’re also willing to let me put the converted game on the js4kgames contest website as a demo. It would be great to have a few demo games up there. Not sure if I’ll be able to contact notch regarding the ones I’ve already converted, so don’t know what the likelihood of being able to use those ones will be.