Lemmings CSS Animation

(markblah.github.io)

141 points | by MarkBlah 4 hours ago ago

30 comments

  • rfarley04 31 minutes ago

    I played this game for dozens of hours with my dad growing up and seeing and playing with these animations is one of those times when nostalgia is so overwhelming and unexpected that I feel physically dizzy. If the animation had the sounds of lemmings dying when they fell from too high[1] I might have been hospitalized. Good work.

    [1] https://www.youtube.com/watch?v=F_RmG9WB4BE

    • MarkBlah 4 minutes ago

      Haha yea I pulled the sprites from the original game, I was thinking the same, an umbrella or die, it’d be a good way to artificially increase web analytics, maybe a message bubble

  • jdw64 2 minutes ago

    Oh, this game brings back memories

  • Waterluvian 3 hours ago

    That’s pretty sweet.

    I did something on my site recently like that where you can click a hexagon and it turns into a robot and starts SLAM mapping the page, navigating around text elements carefully.

    Were you initially surprised by how easy it was to get exact block size of individual characters and not just entire dom elements? That’s the part I thought was going to be the most difficult.

    • tomcam 2 hours ago

      https://ablakey.ca/

      Nice! Your site is impressive and your achievements even more so.

    • diginova 3 hours ago

      the base plates lighting up showing history of where the robot travelled is a fun detail

  • OuterVale 2 hours ago

    I enjoy putting the lemming in the margin on the bottom of the viewport at the left or right side then scrolling down such that the lemming plummets. Then, scrolling up, I can make it bounce up as if it is on a trampoline. Very funny.

  • freshteapot 18 minutes ago

    Took me a moment to realise I could pick them up and place them, on things and in things.

    Thank you for bringing this to life.

  • rob74 37 minutes ago

    Cute, but it would look nicer if the walkers were... you know, actually walking? Ok, might be hard to do with CSS to be fair, I don't know enough about CSS animation to judge that.

    EDIT: works in Chrome and Firefox, doesn't work in Edge (on Linux - yeah, I know almost nobody uses that) for some reason...

    • filcuk 33 minutes ago

      They are...

  • ggsp 2 hours ago

    Cute :) It has a couple of zoom bugs on mobile, something like

    html { overflow-x: clip; touch-action: manipulation; }

    should fix them!

    • MarkBlah 2 hours ago

      Oh awesome thank you, I will add this in

  • richardfey 32 minutes ago

    Funny how they keep hopping on a toggling horizontal scrollbar there at the bottom.

  • grumbel an hour ago

    I vibe-ported xpenguins[1] to Web[2] recently, can be used as bookmarklet and let run on any website. No original Lemmings in that one however, only the knockoff penguins.

    [1] http://xpenguins.seul.org/ and updated at https://github.com/Grumbel/xpenguins-ng

    [2] https://xpenguins-web.github.io/

    • jcattle an hour ago

      Just a note for you: Nothing at all shows up for someone who has prefers reduced motion on.

    • MarkBlah an hour ago

      Haha that’s cool, need to hunt sheep.exe

  • noufalibrahim 2 hours ago

    I don't know if I'm remembering this correctly but there used to be a site called html5lemmings (or something similar) where you could play a few levels of the game. This was before modern web applications and things were still mostly server side rendered with minimal javascript. The demo was quite impressive. I don't know if it's still there. Couldn't find it with a quick search.

  • allexsendev 27 minutes ago

    mad impressive imo, spawned like 50+ ppl and still running smooth (although must say I have a monster rig).

    And I overenjoyed throwing lil marios around

    • MarkBlah a minute ago

      The tick rate isn’t high so should be able to have thousands

  • felipeerias an hour ago

    Love it!

    It is unfortunate that the scenery is positioned in such a way that lemmings end up falling by the side all the way to the bottom of the screen.

    Perhaps it would look better if you removed the padding from <body> and added more pits to the scenery.

    • 9dev an hour ago

      Right, I thought the same. Construct it such that a Lemming falling down from the top will have to clear every level to the bottom instead of just falling past all of them.

  • WhyIsItAlwaysHN an hour ago

    Thank you for making this. It was really fun and a really pleasant start to my day.

  • swiftcoder an hour ago

    I love that they can also walk on the text headings

  • nilail an hour ago

    Super funny idea ! But it does not follow the scroll down on Safari

  • alana314 2 hours ago

    This is fantastic.

  • MarkBlah 4 hours ago

    A tribute to Psygnosis, just for fun

  • cheapcheerful 2 hours ago

    Awesome. Loved the originals.

  • memming 2 hours ago

    Now that's what I'm talking about.