Hacker News new | ask | show | jobs
by cloudmike 1244 days ago
When I started making a game [0] last year, first thing I did was write a little Unity script that takes a screenshot of the opening scene, counts current lines of code using CLOC [1] (for fun, not as a true measure of anything), and occasionally renders it all out to an image file.

With that I'm able to create some pretty fun time lapses of progress. I've been doing this at an arbitrary milestone, whenever my Luau [2] LOC surpasses C++ by another factor. This post reminded me I'm overdue for another now that Luau > 3x C++ LOC.

I find it rewarding to look back at my progress. I'll share in case it's interesting for you too [3].

[0] https://store.steampowered.com/app/2168330/Helmscape/

[1] https://github.com/AlDanial/cloc

[2] https://luau-lang.org

[3] https://twitter.com/kineticpoet/status/1619508466212831232

4 comments

Nice, love the time lapse gif!
Thanks for sharing! Very interesting to see the development in the timelapse. Going to do this for my next Unity project.
The time lapse on your twitter is great... really fun to see those simple shapes and environment get more detailed, better lighting, shading, etc. Thanks for sharing!
Thanks for sharing, Super cool. I wishlisted and downloaded the demo.