frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Sprite Garden - HTML Canvas 2D sandbox and farming

https://kherrick.github.io/sprite-garden/
2•postpress•2h ago
Sprite Garden: https://kherrick.github.io/sprite-garden/

A 2D sandbox exploration and farming game that runs entirely in the web browser. As a fully HTML, CSS, and JavaScript game, it is highly readable, hackable, and customizable. Included on "globalThis" is the "spriteGarden" global object with the game config and state readily available. Drawing with tiles is as easy as opening dev tools (use the menu in the browser as keyboard is captured), or entering the "Konami Code," for a full screen view and a map editor.

Controls (jump to get started):

- Jump: W, ↑, or Space

- Movement: W/A/S/D or Arrow Keys

- Break Block: R

- Plant/Harvest (select in inventory): F

- Place Block (select in inventory): U/I/O/J/K/L/M/,/.

Features:

- Share games from the world state manager

- Explore unique procedurally generated biomes

- Dig for resources like coal, iron, and gold

- Use collected materials to place blocks and shape the world

- Discover underground cave systems filled with resources

- Plant and harvest different crops with "realistic" growth cycles

Examples:

- Preparing a QR Code to be mined: https://gist.github.com/kherrick/1191ae457e1f6e1a65031c38c2d...

- Drawing a heart in the sky: https://gist.github.com/kherrick/3dc9af05bccc126b11cc26fb30a...

- Entering the Konami Code (map editor / fullscreen): https://gist.github.com/kherrick/effbe1463d9b78da046f27c5d42...

I'm unsure how the game should be taken further, or whether it should progress.

Some potential ideas for the future include:

- Input Box with JS Execution: Provide a safe, sandboxed input area in the game's UI where players can write small JS functions or scripts (instead of exposing it on globalThis).

- API Exposure: Expose a controlled API or object representing game state and functions, like terrain manipulation, crop growth, player movement, to the user script so players can automate or modify behaviors.

- Event Hooks: Allow players to register hooks into game events (e.g., world update, planting crops) where their custom code runs, enabling mods or custom automation.

- Multiplayer: Use WebRTC to allow many players in the same world.

- Actual gamification: Make reasons to play, health meter, powerups, plant combinations, enemies?

- Better mobile controls: Currently on screen, no swiping for movement.

- Easier building with blocks: Currently block position based on location of player.

Also featured on:

- Microsoft Store: https://apps.microsoft.com/detail/9mv5d0990kct

- Wayback Machine: https://web.archive.org/web/20251008155620/https://kherrick....

Feedback is highly welcome, and source is available at: https://github.com/kherrick/sprite-garden

Comments

recursivegirth•1h ago
Doesn't work on Firefox...
postpress•1h ago
I've tested https://kherrick.github.io/sprite-garden/ by pressing, "W", "↑", or "space bar" to get started moving in the game. Afterwards the other functionality seems to work as expected in Firefox on Linux with the following versions:

- 140.3.1esr (64-bit)

- 143.0.4 (64-bit)

- 145.0a1 (2025-10-02) (64-bit)

Are you able to describe what issue you are seeing in particular?

Chinese EV giant BYD sees UK sales soar by 880%

https://www.bbc.com/news/articles/c3w5jl2jgqwo
1•JumpCrisscross•2m ago•0 comments

The Rise of 'Conspiracy Physics'

https://www.wsj.com/science/physics/the-rise-of-conspiracy-physics-dd79fe36
1•joak•4m ago•0 comments

The uranium plant at the center of U.S. plans to expand nuclear power

https://www.cnbc.com/2025/10/04/urenco-centrus-orano-enriched-uranium-nuclear-russia-ai-data-cent...
1•JumpCrisscross•5m ago•0 comments

OpenRouter drops fees in response to Vercel's AI Gateway

https://www.coplay.dev/blog/openrouter-drops-fees-in-response-to-vercel-s-ai-gateway
1•josvdwest•12m ago•0 comments

VOC injection into a house reveals large surface reservoir sizes

https://www.pnas.org/doi/10.1073/pnas.2503399122
2•PaulHoule•15m ago•0 comments

rift – a tiling window manager for macOS

https://github.com/acsandmann/rift
1•atticus_•16m ago•1 comments

Germany, where beer is sacred, now leads world in nonalcoholic brews

https://www.washingtonpost.com/world/2025/10/11/germany-nonalcoholic-beer-sales-boom/
4•bookofjoe•30m ago•1 comments

Ask HN: Has anyone made any serious production grade application with AI yet?

2•sandeepkd•31m ago•1 comments

Education Department wipes out special ed office in shutdown layoffs

https://www.usatoday.com/story/news/education/2025/10/11/education-department-special-ed-office-l...
1•hbcondo714•38m ago•0 comments

A Search Engine in CSS – By Tim Carry – Algolia Stories

https://stories.algolia.com/a-search-engine-in-css-b5ec4e902e97
1•iamrishub•39m ago•0 comments

Show HN: I wrote a (slightly less slow, but still bad) autodiff from scratch

https://github.com/mebassett/quixotic-autodiff
1•mebassett•40m ago•0 comments

Scientists pinpoint brain cells linked to depression

https://www.sciencedaily.com/releases/2025/10/251010091559.htm
2•birriel•41m ago•0 comments

Pokémon Color Palette Swapping

https://fanyangxyz.github.io/2025/10/04/recoloring/
1•fanyangxyz33•43m ago•0 comments

LineageOS 23

https://lineageos.org/Changelog-30/
23•cdesai•45m ago•2 comments

Vancouver Stock Exchange: Scam capital of the world (1989) [pdf]

https://scamcouver.wordpress.com/wp-content/uploads/2012/04/scam-capital.pdf
6•thomassmith65•55m ago•1 comments

Google blocks Android hack that let Pixel users enable VoLTE anywhere

https://www.androidauthority.com/pixel-ims-broken-october-update-3606444/
16•josephcsible•57m ago•1 comments

Show HN: GTA Vice City Styled OpenStreetMap

https://lab.subinsb.com/gta-vice-city-theme-openstreetmap/
1•subins2000•59m ago•1 comments

Tinymist is an integrated language service for Typst

https://myriad-dreamin.github.io/tinymist/
4•todsacerdoti•1h ago•0 comments

Paper2Video: Automatic Video Generation from Scientific Papers

https://arxiv.org/abs/2510.05096
4•jinqueeny•1h ago•0 comments

Fighting Email Spam on Your Mail Server with LLMs – Privately

https://cybercarnet.eu/posts/email-spam-llm/
3•kevinak•1h ago•0 comments

Java Shell User's Guide

https://docs.oracle.com/en/java/javase/21/jshell/introduction-jshell.html
3•TrianguloY•1h ago•0 comments

AI videos of dead celebrities are horrifying many of their families

https://www.washingtonpost.com/technology/2025/10/11/openai-sora-dead-celebrities-ai/
2•bookofjoe•1h ago•2 comments

M*LIB The STL library for modern C

https://github.com/P-p-H-d/mlib
1•synergy20•1h ago•0 comments

Meta Superintelligence's surprising first paper

https://paddedinputs.substack.com/p/meta-superintelligences-surprising
57•skadamat•1h ago•8 comments

Bitcoin Whale Shorted $1.1B Right Before Tariffs

https://cryptonews.com/news/early-bitcoin-whale-shorted-1-1b-right-before-tariffs-now-up-27m-how-...
9•somewhatrandom9•1h ago•1 comments

You can use almost anything as a key file for encrypted storage device (2024)

https://ounapuu.ee/posts/2024/11/20/keyfiles/
1•sipofwater•1h ago•1 comments

22% Jump in Electricity Rates Dominates New Jersey Governor's Race

https://www.nytimes.com/2025/10/09/business/new-jersey-electricity-prices-governor-election.html
9•JumpCrisscross•1h ago•2 comments

Kalshi hits $5B valuation

https://techcrunch.com/2025/10/10/kalshi-hits-5b-valuation-days-after-rival-polymarket-gets-2b-ny...
2•JumpCrisscross•1h ago•0 comments

Apple says goodbye to the Clips app

https://techcrunch.com/2025/10/11/apple-says-goodbye-to-the-clips-app/
1•JumpCrisscross•1h ago•0 comments

Show HN: I built a local-first timeboxing app that never leaves your computer

https://focusbox.dev/
1•akarnam37•1h ago•0 comments