logoalt Hacker News

ariaalamyesterday at 7:15 PM2 repliesview on HN

vanilla JS and canvas plus a hefty bit of technical help from Claude.


Replies

lukanyesterday at 8:28 PM

It seems you draw everything every frame onto the canvas? The result is quite GPU heavy, for your next game I would recommend looking into a graphic libary like pixijs, to make use of the webgl/webgpu .. then it would run smooth even on old mobile phones.

evilhackerdudeyesterday at 9:49 PM

check out raylib, it should be amazing for this :)