News for hackers. Stuff that matters.

hamora

Re:Show HN: A Tribute to “Asteroids” on Thursday August 14, 2014 @04:13PM (#8179605)
Asteroid collisions completely change the game! You also nailed that vintage look! Nice stuff! I'm diving into your source code for polygons in detail!
Re:Show HN: A Tribute to “Asteroids” on Thursday August 14, 2014 @04:09PM (#8179584)
Thanks for the comment. It's ideally supposed to be the same as the original. If it is not, it's because I haven't implemented some features yet (spaceships, slowing down eventually if you don't thrust, ...).
Re:Show HN: A Tribute to “Asteroids” on Thursday August 14, 2014 @04:08PM (#8179579)
My collision code is overly simplistic, and so I went with squares to give the asteroids some jagged edges. I should totally try out circles to see if they look better, though. Thanks!
Re:Show HN: A Tribute to “Asteroids” on Thursday August 14, 2014 @04:07PM (#8179570)
Ah yes, the scroll is annoying! I think I tried some sort of preventDefault thing, but definitely need to get that working. Thanks!
Re:Show HN: A Tribute to “Asteroids” on Thursday August 14, 2014 @09:50AM (#8177434)
Something I made with pure JS and the HTML5 Canvas. Play it, have fun, and if you have any thoughts on the quality of the source code, please let me know!