4 ms·
Sedmario: NES Super Mario Bros level 1 written in pure sed (2015)
- adamredwoods 3y agoImpressive! But slow.
- Cloudef 3y agoYou can make it slightly more tolerable by changing the line 15 to `read -s -n 1 -t 0.16 TMP`
- user6723 3y agoWould watch Pewdiepie play this
- asicsp 3y agoSee also: Sokoban game implemented in sed https://github.com/aureliojargas/sokoban.sed https://github.com/aureliojargas/sokoban.sed
- mftrhu 3y agoAnd also, by the same author, SedArkanoid https://aurelio.net/projects/sedarkanoid/ https://aurelio.net/projects/sedarkanoid/
- naranha 3y agoFor my lazy self it would be nice to have a gif of how it looks without having to run it on my machine.
- iraldir 3y agoor people not wanting to run some random script on their machine
- nottorp 3y agodo you think of that when you type npm install? :)
- jerf 3y agoYes. Everything like that now that can just run whatever it wants I run in Docker. May not be perfect but it'll defend against most of what I've seen. Also a decent solution to this problem, it turns out.
- tracker1 3y agoI'm of a similar mindset... Docker dev environments are only slightly inconvenient, but much like a full VM, having exactly what you need, and the versions is kind of nice sometimes... especially working on differing projects. Aside: it's a blessing and a curse how many projects don't get curated/groomed regularly for updates/upgrades. I think it should be a day or two a month to update dependencies and runtimes to current. I've now been on a handful of projects in the past year with versions of resources pinned from 3+ years ago. It's disturbing.
- nottorp 3y ago> I think it should be a day or two a month to update dependencies and runtimes to current. And how long to validate the updated dependencies don't break anything?
- tracker1 3y agoUsually have pretty good test coverage, I've tended to suggest setting aside one day a month to update all project(s) and dependencies, much like Systems Admins will often do the same (more) for system updates. Most of the time, the updates don't require code changes, so it's maybe an hour, then tests, smoke tests, test/uat pass and release, like any other more significant frequent release ci/cd cycle. About twice a year, it may be deferred for a couple days, if there's a major library update with breaking changes. In those cases, new story(ies) go into the top of the backlog to handle it as a higher pointed change. Not every environment will follow the above... which is how you see projects with multi-year old dependencies, sometimes 2+ major releases behind. IMO, it should be considered the same as ceremonies and planning, it's just part of the lifecycle. That it doesn't get treated as such is the issue.
- francisduvivier 3y agoWell I am horrible at playing this, but here you can see how it basically looks: https://github.com/francisduvivier/sedmario_with_gif/blob/master/playing_sed_mario_very_bad_1.gif https://github.com/francisduvivier/sedmario_with_gif/blob/ma...
- mysterydip 3y agoThat's surprisingly viewable.
- ironSkillet 3y agoBetter graphics than the original dwarf fortress lol.
- footlose_3815 3y agoThis is a common problem with GitHub projects. Screen2gif is free and open source, people should use it.
- bawolff 3y agoPretty cool. The actual sed file is surprisingly short https://github.com/chebykinn/sedmario/blob/master/mario.sed https://github.com/chebykinn/sedmario/blob/master/mario.sed And it works surprisingly well. The main issue is timing of actions seems inconsistent so its hard to get the rhythm down.
- nottorp 3y agoPlease remain where you are. Nintendo's lawyers will arrive in their black helicopters shortly. I don't understand why people put so much effort in reproducing the products of a company that's always hostile to their fans.
- oneeyedpigeon 3y agoThe trouble is, 'Super Mario Bros' is literally the hook here. It would be a fun project if it was just 'a platformer using SED', but it would get nowhere near the attention. We should probably agree on a common way of labelling 'super mario bros' clones without trademark violations. E.g. this could probably safely be renamed 'Sed SMB'.
- Uehreka 3y agoThis was made (and likely widely shared) in 2015, it would seem the black helicopters have passed over this house.
- hospitalJail 3y ago>I don't understand why people put so much effort in reproducing the products of a company that's always hostile to their fans. I have realized I have a mental illness in favor of Nintendo, specifically Zelda. Its probably from being relentlessly marketed to as a child, before I was aware of corporate mascots. I must play all Zelda games. I don't even like them, I can't even say I was happy about playing Zelda since Wind Waker(and really MM/OOT + 2Ds were the genuinely good ones). Despite me hating Nintendo for exploiting my psychology as a child, I still beat all Zelda games. According to my therapist, this is most likely some sort of FOMO or a hope that I could relive those nostalgic moments. Whatever the case. You should know its not necessarily under our control. Our brains are compulsive and things that happen to us as children have long term impacts.
- nottorp 3y agoYeah I'm "lucky" to be an Eastern European and have grown up with ZX Spectrum clones not any game consoles. None of my great games seem to have endured as brands. Although I do keep some remakes and emulator images. Nintendo... I bought the mini SNES when they put it out. It was my first Nintendo product. Tried the games. Decided I'm too old for it. Although it's probably that I can't get used to that controller. Finished Bloodstained Ritual of the Night - which is a metroidvania - just fine on a PS4 controller with joysticks. To drift further off topic, this https://en.wikipedia.org/wiki/Lumo_(video_game) https://en.wikipedia.org/wiki/Lumo_(video_game) is a modern game done in the spirit of the great Spectrum isometric games.
- deng 3y agoExplanation how this actually works: https://old.reddit.com/r/programming/comments/15k3txt/nes_super_mario_bros_level_1_written_in_pure_sed/jv4mf6v/ https://old.reddit.com/r/programming/comments/15k3txt/nes_su...
- heraldev 3y agoHere's also a little bit more detailed write-up with the video of how it works under the hood: https://ichebykin.hashnode.dev/writing-mario-in-sed https://ichebykin.hashnode.dev/writing-mario-in-sed
- bartread 3y agoThis is absolutely perverse and messed up... but I sort of love it. Amazing, and fun, piece of work. Ivan, I think you may be the sedmaster. I haven't had to use it seriously in more than 20 years but back then I did remember use it for modifying install scripts on the fly for an application installer on Solaris. There was a fair amount of headscratching involved. Practice makes perfect, I'm sure, but this project must have taken ages. Thank you for sharing!
- benj111 3y agoWho would have predicted back in the 80s we'd have self driving cars, and we'd still be playing a version of super Mario Bros that wouldn't have taxed the 2600 (apart from the scrolling??)
- veganjay 3y agoSomeone made a homebrew of Super Mario Bros for the Atari 2600: - https://forums.atariage.com/topic/201426-super-mario-clone-world-1-1-playable-demo/ https://forums.atariage.com/topic/201426-super-mario-clone-w... - https://www.youtube.com/watch?v=8fSO-UTdCI8 https://www.youtube.com/watch?v=8fSO-UTdCI8
- deleted 3y ago[deleted]
- Waterluvian 3y agoThere’s this meme where people make variations of 1-1. “1-1 except that…” And I find it to be the most interesting thing in gaming in a While. It demonstrates such creativity. Here’s a bunch of them in Mario Maker, but there’s 1-1s made everywhere, in other games and even in real life. https://youtu.be/PhyG0s9tJaM https://youtu.be/PhyG0s9tJaM
- tracker1 3y agoThanks for killing all chance at productivity before lunch.. ;-)
- veganjay 3y agoTo run on Ubuntu 20.04, I had to change the last line of "mario.sh" to: done) | sed -Enf ./mario.sed