News for hackers. Stuff that matters.
Re:The man who made 'the worst video game in history' by kintamanimatt on Sunday February 21, 2016 @10:49PM (#11148317)
> "It's awesome to be credited with single-handedly bringing down a billion-dollar industry with eight kilobytes of code. But the truth is a little more complex."

Eight kilobytes?! How do you build anything meaningful, especially a game, with just eight kilobytes?

Re:The man who made 'the worst video game in history' by gauthr on Sunday February 21, 2016 @10:59PM (#11148352)
Get a copy of Racing the Beam to get some insight into how programmers were able to wring out every bit[1] of potential from the Atari 2600: https://mitpress.mit.edu/books/racing-beam

[1] Yes, I see what I did there.

Re:The man who made 'the worst video game in history' by theandrewbailey on Sunday February 21, 2016 @10:56PM (#11148344)
Quite a lot, turns out. The demoscene does miracles in 4k. http://www.pouet.net/prod.php?which=52938
Re:The man who made 'the worst video game in history' by userbinator on Monday February 22, 2016 @12:30AM (#11148721)
Might be better to show some actual Atari 2600 demos:

http://www.pouet.net/prodlist.php?platform%5B0%5D=Atari+VCS

Here's one of the higher-ranked 8k demos:

http://www.pouet.net/prod.php?which=32203 (YouTube: https://www.youtube.com/watch?v=WogMZn87hkk )

Re:The man who made 'the worst video game in history' by a_bonobo on Sunday February 21, 2016 @11:37PM (#11148474)
Have a look at .kkrieger - a beautiful 3D ego shooter from 2004 in 96 kilobytes

https://en.wikipedia.org/wiki/.kkrieger

Screenshot: https://en.wikipedia.org/wiki/.kkrieger#/media/File:Kkrieger...

Re:The man who made 'the worst video game in history' by softawre on Monday February 22, 2016 @11:12AM (#11151804)
WOW... Uh..is 96k the whole thing? Is this using some framework which provides something else, outside of standard OS stuff?
Re:The man who made 'the worst video game in history' by Sharlin on Monday February 22, 2016 @03:19PM (#11153949)
DirectX, probably, but arguably that counts as "standard OS stuff".
Re:The man who made 'the worst video game in history' by a_bonobo on Monday February 22, 2016 @09:16PM (#11155983)
I tried running it back then - the textures, the music, the models, all of the content is generated "from scratch", which is why it takes forever to start, it has to create all content first
Re:The man who made 'the worst video game in history' by corysama on Sunday February 21, 2016 @11:15PM (#11148398)
Re:The man who made 'the worst video game in history' by quicklyfrozen on Sunday February 21, 2016 @11:00PM (#11148355)
Well you also have 128 bytes of RAM to work with...
Re:The man who made 'the worst video game in history' by kabdib on Sunday February 21, 2016 @11:59PM (#11148553)
You have a little more than this:

- In 2600 coding you often don't need a stack, so you can use 'S' as a temp register. Very useful in the display kernel.

- The 2600 has a standard parallel port chip. There are configuration registers (e.g., port direction) that can be temporarily hijacked as RAM, when you don't care about input or output (which you generally only sample once a frame). That's a whole 8 more bits of RAM, not to be sneezed at.

One of my cow-orkers at Atari decided that he'd try to learn 2600 programming (he was mostly doing Atari Home Computer stuff). Over three or four months I saw him go through what I can only describe as deterioration and utter discouragement. The people who could get even an awful game out of the 2600 were pretty damned good hackers.

Re:The man who made 'the worst video game in history' by nice_byte on Sunday February 21, 2016 @11:07PM (#11148382)
8K is 8192 bytes. Atari runs on MOS 6502, for which each instruction takes up between 1 and 3 bytes. This gives you about 2K instructions, give or take (you probably want to make space for some data). Given how simple most atari games are, I think you could reasonably get away with 1-1.5K instructions for code if you hand-write the assembly and optimize for size.
Re:The man who made 'the worst video game in history' by protomyth on Monday February 22, 2016 @12:07AM (#11148603)
Actually, the Atari 2600 runs a 6507 which is a cheaper version of a 6502. Unlike the 64kbytes a 6502 can address, the 6507 is limited to 8kbytes. Worse, the cartridge design limited you to 4kbytes unless you bank switched.

But that was storages, which was huge compared to the 128 bytes of RAM. Further complications happen because you need to time things with the scan lines of the display.

Re:The man who made 'the worst video game in history' by kruczek on Monday February 22, 2016 @02:56AM (#11149259)
Eight kilobytes is plenty of space. How about doing something meaningful in 128 bytes (yes, bytes!): https://www.youtube.com/watch?v=cD49RXnEGNE - it's a mouse-controlled 3d Wolfenstein-like maze. All with the code about half the size of this comment.
Re:The man who made 'the worst video game in history' by spatulan on Monday February 22, 2016 @12:26AM (#11148702)
8KB of ROM, 128 bytes of RAM.

It doesn't even have a screen buffer, just a half a line buffer. You have to count scan lines and keep track of what's being drawn on a cycle by cycle basis, then update the line buffer live to get what you want on screen.

Re:The man who made 'the worst video game in history' by bluedino on Monday February 22, 2016 @08:52AM (#11150749)
>> How do you build anything meaningful, especially a game, with just eight kilobytes?

Often times you don't.

Think of how many computer programmers there were back then. How many notable 2600 programmers were there? 20? 25?

Re:The man who made 'the worst video game in history' by krapp on Sunday February 21, 2016 @10:56PM (#11148343)
Assembly?