SShortSingh.
Back to feed

Lemmings demo turns each line of wrapped text into walkable terrain

0
·3 views

A web demo based on Lemmings lets small walkers move across the page itself, treating borders, buttons, images and text fragments as ground. Rather than measuring whole paragraphs as single blocks, it uses text ranges to collect separate rectangles for each wrapped line, preserving the gaps and varying line lengths. Text is treated as one-way floor that catches falling walkers but does not act as a solid obstacle, keeping tightly spaced lines from becoming cages. Coordinates are converted from viewport measurements into a coarse world grid with outward rounding so thin features are not lost, and falls are checked in small steps so thin surfaces are not skipped. The author also notes that the world is rebuilt after page changes so standing walkers stay attached to their surfaces.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Darrell Huff's 1954 book How to Lie With Statistics resurfaces as a PDF on Hacker News

A PDF copy of Darrell Huff's 1954 book How to Lie With Statistics has been shared on Hacker News, drawing attention to the classic work on statistical misuse. The post links to a copy hosted on horace.org, a blog domain. It has gained four points and no comments at the time of posting. The item contains only a link and metadata, with no accompanying discussion or description of the book's contents.

0
ProgrammingHacker News ·

Nasdaq Falls 5% as Investors Pull Back from AI Stocks Following Election

The Nasdaq composite dropped about 5% in a sharp selloff as investors retreated from artificial intelligence-related trades. The decline followed the election, according to a Wall Street Journal live coverage report. The source material provided is limited to the headline and article link, so further details on specific causes and individual stock moves could not be confirmed. Market participants appeared to reassess AI-linked valuations in the wake of the vote. The item was shared on Hacker News, where it drew modest attention.

0
ProgrammingDEV Community ·

Why IBM's Granite name became shorthand for built-in AI guardrails

IBM's open Granite family of enterprise AI models has become a metaphor for guardrails, with the name meant to evoke durability and structural integrity. The article says Granite models ship with alignment layers, configurable output filters, and safety mechanisms built in during pretraining, rather than added afterward. It draws a comparison to granite's geological formation, describing safety as embedded in the material instead of bolted on. The metaphor reportedly appears in IBM documentation, technical briefings, and Brazilian regulatory discussions on AI governance. The piece also notes that the models support fine-tuning and retrieval-augmented generation while keeping core safety constraints intact.

0
ProgrammingDEV Community ·

Moving a Lovable Cloud App to Your Own Supabase Project: Step-by-Step

A new guide explains how to migrate an app built on Lovable Cloud to a Supabase project the owner controls. Because Lovable Cloud runs on a Supabase project managed by Lovable, it cannot be linked to a personal account, so the move requires creating a new project, copying the database and files, and switching the app's connection settings. The process covers exporting and restoring the database, which carries user accounts and password hashes, while sessions end and files, secrets, sign-in provider settings and connectors must be transferred manually. The guide advises keeping the old backend running until the new one passes all checks, and deleting nothing in Lovable until verified copies are held.