Lemmings CSS Animation markblah.github.io · 317 points · 64 comments · HN thread...
HN Best 30 @best30
Lemmings CSS Animation markblah.github.io · 317 points · 64 comments · HN thread
TL;DR A developer built a web page where Lemmings-style walkers, using sprites pulled from the original 1991 game, fall, walk and bounce across the lines of text on the page, using CSS animation and a little JavaScript. Each text line acts as a floor, and the walkers can be picked up and placed, and reflow when the window is resized. The Hacker News thread is mostly nostalgic and playful, with people sharing memories of the original game and similar projects.
- Each line of text is treated as its own floor; walkers can drop between lines and fall off short line ends.
- Line spacing is tighter than a walker's height, so text does not block them; only borders, boxes, buttons, images and fields do.
- One long floor near the bottom of the page catches anything that falls all the way down.
- Sprites were taken from the original Lemmings game; the author says the sprites were in BMP format.
- Users can drag walkers to carry them and place them on or in page elements.
- Reported issues include mobile zoom bugs, walkers falling down the side on Android, a toggling horizontal scrollbar, no display under reduced-motion settings, and no support for the animation in Edge on Linux; performance differs between Chrome and Safari under load.
Discussion The thread is warm and nostalgic. Most commenters talk about playing Lemmings on the Amiga, PC or with family, and many share personal anecdotes. A smaller group tests the page for bugs, mainly on mobile, Safari and in reduced-motion mode, and suggests fixes. Some point out that the demo lacks the core gameplay of the original, and several link to other Lemmings-like projects and ports.
- Nostalgic delight at seeing the Lemmings sprites again (most): Many commenters say the page brought back strong memories of playing Lemmings on the Amiga or PC as children or teenagers, often with siblings or parents.
- Cute demo, but not really Lemmings without gameplay (some): Some commenters note that without digging, building, stairs, parachutes and explosions, the page only borrows the look of Lemmings and misses what made it fun.
- Useful feedback on bugs and mobile behavior (some): Several commenters report zoom problems, walkers falling down the side on Android, scrollbar flicker, and Safari not following scroll, and offer CSS fixes.
- Impressed by the technical craft (a few): A few commenters praise the performance and the idea of text as floors, and compare the work to other browser-based simulations and to a SLAM-mapping robot demo on a personal site.
- Browser performance trade-offs (a few): One tester found Chrome smoother for animation but scrolling got painful with 200 walkers, while Safari used more CPU yet kept scrolling smooth.
Links from the comments
- Archive.org copy of the original MS-DOS Lemmings for playing it directly.
- DHTML Lemmings, an early browser-based version with a few playable levels.
- Port of the Lemmings games and community levels to Mac.
- Homebrew port of DOS Lemmings for the Nintendo 3DS.
- Web version of xpenguins that can run as a bookmarklet on any site.