News for hackers. Stuff that matters.
Re:Notch's 48-hour game: Prelude of the Chambered by pygy_ on Monday August 22, 2011 @03:31AM (#2911696)
For those who didn't watch the stream:

The game is a Zelda-inspired, first person, 2.5D dungeon crawler written in Java.

__Modus operandi:__

1) He first built a robust engine, very powerful from a game developing standpoint. Building the various types of blocks (walls/grounds/objects) and entities (player/ennemies/bullets/boulders) needed remarkably little code afterwards.

2) He used Paint.NET as a level editor, and color-coded the blocks and entities. He used the alpha channel to identify the switches, the doors, the ladders and the ennemies (from 255 downwards). Doors and switches are automatically linked by id. This allows to put all the level design logic on the map.

3) The most important: short iterations. He spent more time play testing the game than writing it, systematically retesting the old stuff when he introduced a new feature, or even after changing a detail.

4) He's sharp, knows his tools, edits the code very fast and makes few mistakes. He also has a lot of experience, which allowed him to make good initial decisions that facilitated the development process.

__The platform:__

Java+Eclipse turns out to be an excellent platform for writing games.

While it doesn't have a REPL, its debugger allows to patch the code while it is running, offering a very dynamic environment, especially to tweak the gameplay. It felt very lightweight. I wonder if the other JVM languages have similar debugging facilities.

The simplicity of the language makes the code easy to read and modify (provided you have a sound initial code base). Once you get used to it, the boilerplate becomes transparent (like the parentheses in Lisp).

The refactoring abilities of Eclipse are excellent.

The speed of the JVM allows to write fast low level code, and its object system make it straightforward to organise the high level logic.

__Some tricks/hacks:__

All textures are drawn in 4 shades of gray, then colored when they are loaded. It allows to reuse the wall textures for all levels, and to differentiate the bosses from the normal ennemies, at no cost, etc.

His playsound function creates a new thread every time it is run.

If I counted properly, there is at most one level of inheritance, even where more would have made sense from an orthodox OO design standpoint. There's some code duplication, but he only duplicated robust, well tested code.

The low resolution and limited palette allows the rudimentary graphics to look good (old school). The animations have only two frames.

.

.

On a side note: Did someone save fist few hours of the stream, when he wrote the 3D engine? I couldn't watch the process, and his Livestream account has been deleted.

Re:Notch's 48-hour game: Prelude of the Chambered by DamagedProperty on Monday August 22, 2011 @06:45AM (#2912039)
I saw it from the beginning and watched the whole weekend.

He started out with some basic swing component/boiler plate code.

This is the third time I have watched him make a game like this. The last time he made a dungeon crawler but did it in a really novel way.

Just like last time he had the pov moving back and forth while he tweaked the walls and floors while in debug mode. This allowed him to tweak each part and get them looking correct. He spoke a lot more about what he was doing in the beginning and spoke less as the weekend went on.

The resolution on livestream was not as good for me as it was on justintv so I could not see what he was writing to get that affect. I assume it was nothing more than sin times some fraction over the x axis.

The time before that was metagun. A fantastic 2d platform game.

The thing that impresses me is that he doesn't stop to think too much. He just goes for it. I think I need to employ more courage to writing code like that when it comes to competitions.

I always get inspired watching these. I learned a ton.

Re:Notch's 48-hour game: Prelude of the Chambered by DamagedProperty on Monday August 22, 2011 @06:58AM (#2912056)
The cool thing also was in the beginning before he started he was writing down ideas of what game to make. He spoke about Link's awakening being an inspiration for this game.

He also had another great idea about being on a sinking ship. I kinda wish he would have chosen that one. But what he did was cool.

Re:Notch's 48-hour game: Prelude of the Chambered by mrspeaker on Monday August 22, 2011 @06:32AM (#2912020)
It was fascinating to watch: I watched at least 20 hours of it in fullscreen! I love the trick of adding colour on the fly - the "look and feel" changed so much just by modifying the colours.

The thing I couldn't believe was the guy's intensity. He NEVER stopped. He was relentless. Very very inspirational.

Re:Notch's 48-hour game: Prelude of the Chambered by clistctrl on Monday August 22, 2011 @07:50AM (#2912148)
You are exactly right about the intensity. He completed a weeks worth of work in less than 2 days. He worked for nearly 40 of the 48 hours he had.
Re:Notch's 48-hour game: Prelude of the Chambered by tydok on Monday August 22, 2011 @06:14AM (#2911988)
(I can't access YouTube at the moment to verify the link)

Notch coding "Escape" - 20.8.2011 livestream

www.youtube.com/watch?v=QYBUCYUNn3Q

Re:Notch's 48-hour game: Prelude of the Chambered by jannes on Monday August 22, 2011 @09:23AM (#2912351)

  Unfortunately, this video is not available in Germany
  because it may contain music for which GEMA has
  not granted the respective music rights.
I hate these music industry pricks. Why did they block this? Because he's listening to some web radio in the background? That's ridiculous.
Re:Notch's 48-hour game: Prelude of the Chambered by pygy_ on Monday August 22, 2011 @12:37PM (#2913017)
What about this?

http://v4.cache2.c.youtube.com/videoplayback?sparams=id%2Cex...

It works in Firefox here (HTML5 video)

Edit: you may have to be signed in and enable the HTML5 beta. I'm saving it and will upload it later.

Edit2: It's uploading right now. It is a 720P screen capture of the live coding being played fullscreen at a higher resolution. The text is blurry but readable.

Edit3: Here you are!

http://www.megaupload.com/?d=X9H8XYZB

Re:Notch's 48-hour game: Prelude of the Chambered by tydok on Monday August 22, 2011 @03:54PM (#2913846)
Worth its bytes in gold :) Thanks.
Re:Notch's 48-hour game: Prelude of the Chambered by jmcejuela on Tuesday August 23, 2011 @09:51AM (#2916523)
thanks!
Re:Notch's 48-hour game: Prelude of the Chambered by jmcejuela on Monday August 22, 2011 @09:57AM (#2912443)
Same problem :(, in Germany too.

Do you know any other source? Could somebody post it on another page?

Re:Notch's 48-hour game: Prelude of the Chambered by weaksauce on Monday August 22, 2011 @10:46AM (#2912607)
American VPN to tunnel all your traffic would work in this instance.
Re:Notch's 48-hour game: Prelude of the Chambered by DamagedProperty on Monday August 22, 2011 @07:04AM (#2912069)
Awesome! Glad someone was thinking and recorded it.
Re:Notch's 48-hour game: Prelude of the Chambered by pygy_ on Monday August 22, 2011 @06:18AM (#2911999)
Awesome :-)

Thanks a bunch!

Re:Notch's 48-hour game: Prelude of the Chambered by mbrzuzy on Monday August 22, 2011 @08:34AM (#2912230)
Thanks for the link!
Re:Notch's 48-hour game: Prelude of the Chambered by ordinary on Monday August 22, 2011 @03:59AM (#2911760)
He wrote that while on Livestream, so it's not on Justin.tv or Twitch.tv. Unless he also wrote to a local file, there's a good chance that part is gone for good.
Re:Notch's 48-hour game: Prelude of the Chambered by Zolomon on Monday August 22, 2011 @05:17AM (#2911890)
His livestream account seems to have been deleted, did anyone download the streams? I didn't get a chance to watch the first few hours of making his engine.