News for hackers. Stuff that matters.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by habosa on Monday June 29, 2015 @06:58PM (#9801725)
I don't even know what to say ... 9800 lines of assembly is so few. I am very impressed. I think I might use more lines writing this in a "modern" language.

Game developers always impress me.

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by Narishma on Monday June 29, 2015 @07:49PM (#9801963)
Well, it's only 9800 lines because it's incomplete. It's barely a tech demo.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by delecti on Monday June 29, 2015 @05:26PM (#9801227)
Raspberry Pi seems to be the new target of Atwood's Law in place of Javascript.

Any application that can be ported to Raspberry Pi will eventually be ported to Raspberry Pi.

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by hamburglar on Monday June 29, 2015 @05:43PM (#9801346)
Considering the point of the Raspberry Pi foundation is to provide a readily available low cost general computing platform for learning and experimentation, it seems entirely appropriate that people would port stuff to it for the sake of porting stuff to it.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by xahrepap on Monday June 29, 2015 @08:59PM (#9802186)
Porting Doom to everything has always been a thing. Way before Atwood's Law was ever a thing. It was the original Atwood's Law. :)

http://m.youtube.com/watch?v=TuupoxmeQ6U

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by dalke on Tuesday June 30, 2015 @08:46AM (#9804758)
To add to that, http://www.techdigest.tv/2013/10/10_gadgets_that.html shows examples on a Nintendo DS, TI-Nspire (your link is for the older TI-83+), an old Minolta digital camera, iPod Classic, Zune, a Commodore Vic 20, and others.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by Smushman on Monday June 29, 2015 @04:38PM (#9800855)
not to denigrate the hard work... but without a keyboard, just how am I supposed to enter cheat codes??

Nice work BTW.

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by morsch on Monday June 29, 2015 @05:45PM (#9801363)
Clearly, the answer is you write a keyboard emulator running on the RPi in 9800 lines of of assembly.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by wbsun on Monday June 29, 2015 @08:02PM (#9802009)
An (probably) easy way is to connect a switch to a GPIO pin, then watch for special patterns of on/off sequences as cheat codes :), and you end up programming a computer in binary code.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by z92 on Monday June 29, 2015 @05:45PM (#9801361)
The original Doom ran on 33MHz processor and 4MB RAM. I can't understand why it might have any problem running on RPi.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by morsch on Monday June 29, 2015 @05:49PM (#9801389)
It doesn't. I imagine it's still a fun way to learn ARM assembly and an impressive achievement. Note that apparently they didn't use any operating system and built their own controller from scratch.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by girvo on Monday June 29, 2015 @11:43PM (#9802808)
The rPi is ARM, not x86 I'm pretty sure?
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by duaneb on Monday June 29, 2015 @05:46PM (#9801371)
I played doom on my ipod mini. I'm pretty sure this wasn't to stress the insane hardware of a pi so much as x86 is completely miserable to bare-metal program in.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by lcswi on Monday June 29, 2015 @05:00PM (#9801035)
Hm, that's hardly anything like doom. It is more like a very basic raycasting engine from several years before that. Doom in 9800 would be really impressive. This does not seem very special if you ever wrote your own engine like that.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by nathancahill on Monday June 29, 2015 @06:16PM (#9801538)
They wrote a raycasting engine in 9800 lines of assembly, running on a Pi, using Doom's textures. Is it Doom? No, but it's pretty darn impressive. Avoid gratuitous negativity.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by kbenson on Monday June 29, 2015 @07:29PM (#9801860)
Which is why they should have advertised something like that. This is related to Doom only in that the music and textures are the same. I'll forgive a little negativity if it comes from someone correcting a dishonestly titled article/submission.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by lcswi on Tuesday June 30, 2015 @06:15AM (#9804102)
I doubt the music was played by the device, most probably it was dubbed in post processing.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by iaw on Monday June 29, 2015 @06:28PM (#9801591)
'avoid gratuitous negativity' is a thought we all need to keep in mind more.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by knodi123 on Monday June 29, 2015 @06:33PM (#9801609)
It's actually a rule of the site,

https://news.ycombinator.com/newsguidelines.html

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by iaw on Monday June 29, 2015 @07:19PM (#9801821)
I think it should be a rule for real-life. I've found the less negative my thoughts, the better my general outlook on life.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by lcswi on Tuesday June 30, 2015 @06:14AM (#9804095)
What is gratuitous about what I said?
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by ZenoArrow on Tuesday June 30, 2015 @07:41AM (#9804457)
Just because it wasn't Doom doesn't mean it's without merit. This is a first year University project, written in small amount of assembly, with no supporting OS.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by lcswi on Tuesday June 30, 2015 @10:02AM (#9805234)
I never questioned that
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by ZenoArrow on Tuesday June 30, 2015 @03:04PM (#9807679)
You implied it was a trivial achievement. Perhaps that wasn't your intention, perhaps you had intended to encourage, but if that's the case it wasn't obvious.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by kcsongor on Monday June 29, 2015 @06:42PM (#9801655)
it's not raycasting though
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by neuro_sys on Tuesday June 30, 2015 @04:12AM (#9803693)
Right, it does not seem to be a raycasting algorithm, and the author mentions of it in the youtube comments that it's a "rasterization" meaning perspective projection of textured polygons.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by kcsongor on Tuesday June 30, 2015 @08:10AM (#9804593)
Actually I'm the author, so yeah, that's right
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by JonathonW on Monday June 29, 2015 @05:16PM (#9801161)
Looks like they have part of what made Doom unique (at the time)-- they've got height differences and non-perpendicular walls, but don't quite have the same lighting and texture mapping capability that Doom had.

And the demo doesn't show whether or not they have Doom's dynamic capabilities (that let level builders make things like moving elevators).

This looks like it's probably somewhere between Wolfenstein 3D and Doom in terms of engine features.

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by afandian on Monday June 29, 2015 @05:43PM (#9801341)
As a first-year University assembly project in 4 weeks, I'd be a bit more hesitant to judge.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by myth_buster on Monday June 29, 2015 @05:58PM (#9801444)
From the comments:

  OP's project isn't a simple port. They wrote an original DOOM-like engine, 
  from scratch, in assembly language. It only looks like 
  DOOM because they're using DOOM textures.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by ehaliewicz2 on Monday June 29, 2015 @07:30PM (#9801865)
It's a common misconception, but Doom uses a BSP-tree based renderer, not raycasting.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by akhilcacharya on Monday June 29, 2015 @07:22PM (#9801834)
This is their first year project...
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by Cyph0n on Monday June 29, 2015 @06:40PM (#9801646)
Great work for a first year project. It was completed in 3 weeks according to the thread. I wouldn't have been able to pull it off.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by confiscate on Monday June 29, 2015 @05:48PM (#9801383)
good job guys. the controller on the breadboard looks pretty neat
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by kcsongor on Monday June 29, 2015 @06:12PM (#9801513)
that is actually not a breadboard, the stuff is soldered :)
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by blackguardx on Tuesday June 30, 2015 @01:32AM (#9803124)
It is still technically called a breadboard. The other type of breadboard you are thinking of is a "solderless breadboard." Original breadboards date back to the days before printed circuits when people would stick component leads through holes drilled in a piece of wood or some other material and wire them together.
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by ZenoArrow on Tuesday June 30, 2015 @03:21PM (#9807784)
Isn't 'stripboard' the technical term for the soldered type of prototyping board (often known as veroboard in the UK)? https://en.wikipedia.org/wiki/Stripboard

I've only heard the term breadboard being applied to the solderless prototyping boards (and the old school point to point type).

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by kcsongor on Tuesday June 30, 2015 @08:11AM (#9804601)
oh, I didn't know that :) in the context I've heard it, people usually referred to the solderless one
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by yunfeng on Monday June 29, 2015 @10:58PM (#9802648)
hhaha:)
Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by Negative1 on Monday June 29, 2015 @07:41PM (#9801933)
Keep in mind they are calling it a "replica", not a port. From the video there's some form of game logic, the raycaster and asset loader. Other than that, it doesn't appear to be the full game.

Still, though, AWESOME! Can't wait to check out the code when it goes up on Github (they said soon).

Re:A Doom-like engine on the Raspberry Pi – 9800 lines of ba... by deevus on Monday June 29, 2015 @11:53PM (#9802841)
If only the cyber-demon was always that easy!