Hacker Newsnew | past | comments | ask | show | jobs | submit | davidslv's commentslogin

I spent 5 years building a roguelike game in pure Ruby (no game engines) to explore Entity-Component-System architecture and event-driven patterns outside of typical Rails applications.

Full disclosure: The project benefited significantly from AI assistance in the later stages to keep momentum going while balancing a full-time job and family. I used AI as a coding partner - I made all architectural decisions, reviewed every change, and stayed in control of the direction. It let me focus on the interesting problems (ECS design, event systems) rather than grinding through boilerplate.

The game runs entirely in the terminal and uses the same architectural patterns we use in production web apps - ECS for entity management, pub/sub for events, observer patterns for game state.

Why Ruby? Honestly, because it's the language I know best, and I wanted to prove you could build a game without reaching for Unity, Godot, or even a Ruby game library. It's all vanilla Ruby.

The codebase is fully open source and I've also written a book about the process (5 years in the making) that walks through the architecture decisions: https://www.amazon.com/Building-Your-Own-Roguelike-Hands-ebo...

Technical highlights:

- Entity-Component-System from scratch - Event-driven game loop - No dependencies (just Ruby stdlib) - Runs in the terminal

I'd love feedback from the HN community, especially on the architecture patterns. Happy to answer any questions about the implementation.

Thank you, davidslv


I've been working on writing a roguelike game in ruby, without using any external libraries.

It's not really a complete game at this stage, all you can do is travel through the randomly generated mazes once you hit the stairs.

I thought I would share as I have been struggling for time to do further features.

Any feedback is appreciated, feel free to have a look around and contribute if you so wish.


I just read the article, I don't know much about the subject, but I find myself feeling really good about someone honouring the contract, even more a verbal one, I wish more people could honour theirs. I think the moral of this story is: honour your word.


I totally agree with you, the website is really slow, most likely because it ended here...


If the resulting sites can't handle a traffic spike, it's not that great a tool, is it? No one wants a hammer that shatters if you swing it too hard...

Being optimistic, it might just be a hosting problem.


Ya, to be fair I've seen Wordpress blogs go down under an HN spike, as well as a lot of stuff using socket connections for each user. Not many people build products expecting 100+ people to simultaneously use the site on day one.


is only me having a slow experience? The concept is actually very interesting, it really makes it very easy to build websites for small businesses.


Wow, I've never see that one, it just makes me feel like playing it right now :D


amazing work, I always dreamt about having a world map in one of my future house walls, thanks for sharing, I will definitely come back to your article at some point.


What's the big deal? Why do you care about those documents so much? They all seem really meaningless, but maybe I'm missing the point... someone enlighten me?


Here's an example: https://wikileaks.org/sony/emails/emailid/112147

In 2014 Sony's German website was hacked and a file was replaced that served malware. The site inlcuded a database of 50,000 people's names and email addresses. Sony didn't tell anyone there had been a hack. The news of it broken in December[1] because of Wikileaks. Corporations cover up things that affect their customers. That is wrong.

[1] http://www.forbes.com/sites/thomasbrewster/2014/12/15/sony-p...


If you don't care about anything political you won't care about this. But, surely, you must understand that other people do care about those things and therefore would care about this.


But is this really political? In that this is information that is beneficial to a democratic society to have out in the open? Or is it something being done to embarrass a political rival which only serves the interest of a single party?

Because it really looks to me more like the later. Not that I feel sorry for Sony, but do they as a private-sector company not have a right to privacy? There's been a lot of talk lately about wanting to improve the state of privacy on the internet. Through pervasive encryption, controls on data collection, net neutrality, and limiting government surveillance. And then, because Sony happens to be unpopular, they get hacked and data stolen from them. I'm supposed to celebrate this breach of privacy? This tells me that if I value my own privacy I should be careful not to do anything that makes Julian Assange unhappy.

So no, I'm not going to join in the anti-Sony lynch mob. Privacy, like free speech, is something that if you value it for yourself you must defend it at all times, even if you disagree with who is using it.


I think this makes it fair game:

Quote: "Sony is a member of the MPAA and a strong lobbyist on issues around internet policy, piracy, trade agreements and copyright issues. The emails show the back and forth on lobbying and political efforts, not only with the MPAA but with politicians directly. In November 2013 WikiLeaks published a secret draft of the Trans-Pacific Partnership (TPP) IP Chapter. The Sony Archives show SPE's internal reactions, including discussing the impact with Michael Froman, the US Trade Representative. It also references the case against Megaupload and the extradition of its founder Kim DotCom from New Zealand as part of SPE's war on piracy."


No, it doesn't. In all those cases, courts (remember?) have the power to request the emails and use them as evidence of wrongdoing. If they are not doing that, there are legal ways for all of us to chime in and pressure them to do so. Release private company emails to the world (without much discretion, giving how useless most of them are) is completely stupid. It's the opposite of what Snowden did with the NSA documents and completely disconnected from responsible disclosure.


When a super human entity such as a corporation gains such control over humans and thus politics as does a media conglomerate such as Sony, then YES, it becomes quite obviously VERY political!


That's why I'm asking to people who care, because I'm not getting the picture.


I mean, which part do you not get? Do you not understand why anyone cares about politics and the machinations of corporations and high-up people in general? Or is it specifically these documents that you can't understanding caring about?

If nothing else, curiosity. But there is something more. It's very interesting to me to see how the world works at this level. And how they talk privately about things that I've only ever gotten to see publicly, in press releases and carefully crafted political statements.


Why don't you care?


how about someone take the place and don't let this die ?


why couldn't you put a NSFW tag? is that asking too much? Thanks for the awkward office moment.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: