News for hackers. Stuff that matters.

phaser-studio

Nice! Genuinely enjoyed a few rounds of that. Unlike 'normal' Minesweeper I felt like you had to make pot-luck guesses more often with the hex shape, but that didn't matter on the smaller grids. Was a bit depressing on the large grid though after you'd cleared half of it but had to pot-luck guess a new section :)
Re:Show HN: 1M+ animated GPU sprites in JavaScript on Friday January 31, 2025 @08:06AM (#42887261)
Yes, this is correct! You _can_ update the GPU Layer data, the API allows it, but you pay the upload cost each time, which is why we framed it as for 'backgrounds' - but in reality, it could be used for anything animated. I mean, you don't HAVE to create 1m sprites! You could just do 100 and it'd still be significantly less overhead than 100 actual sprites. Going to be interesting to see what devs come up with here.

Show HN: 1M+ animated GPU sprites in JavaScript

https://phaser.io/news/2025/01/phaser-v4-beta-5-released

We added a new feature to our open-source HTML5 game engine today that allows you to create Sprite GPU Layers.These pack together simple JS object definitions onto the GPU and renders them using a custom vertex shader. This skips all CPU computation and GPU upload operations, resulting in vastly increased performance. For objects that don't need to be updated by input, physics, or other...

( Read More... | 5 comments | 22 points | on HN )