Live data from Hacker News

T * sin (t) ≈ Christmas tree

github.com

11–20 of 28 posts

Re: T * sin (t) ≈ Christmas tree

#11
This reminds me of when I first started programming in Turbo Pascal. I made a Christmas tree using graphic mode and trig functions. I also only used if-then statements so i ended up with about a thousand lines :) Looking at this more elegant tree reminds me of why I went into this career.

Re: T * sin (t) ≈ Christmas tree

#16
post #13

Same formula on Quake's Railgun

Got a link? Google found this Quake2 railgun, but it doesn't look to be the same on first glance https://github.com/id-Software/Quake-2/blob/master/ctf/g_wea...

That's the game attack logic, not the rendering logic. You want this instead:

https://github.com/id-Software/Quake-2/blob/master/client/cl...

Post reply on HN