sphere_dance
sphere_dance copied to clipboard
Using rust to create a real 4K intro
God is good! Thanks for placing this (and tinywin) to help us learn how to make neat 4kb productions using Rust. Tried making a 4k Image Entry for Revision 2022...
I just would like to thank you for this effort (thank you! thank you!) and I would also like to announce I am forking it to improve its ergonomics to...
Saw your blog post on [HN](https://news.ycombinator.com/item?id=23742870). Cool stuff! Just wanted to point out you could replace this: https://github.com/janiorca/sphere_dance/blob/b9c10f31701a540230a028a8499a7fd3c432df8d/src/shaders.rs#L1-L5 With something like: ```rust pub static frag_shader_src : &'static str = include_str("../shader_code.h");...
As seen in the [download page](https://files.scene.org/view/parties/2020/nova20/new_school_intro/ochre.zip), `ochre_1280_720_v_1.exe = 3.97K` and `ochre_1920_1080_v_1.exe = 3.91K`. As far as I can tell the code is the same. (Question was originally asked [here](https://freepo.st/post/tjvdaxn8xp))
Just wanted to show you how you can use macros to both keep the glamour of for loops and avoid unnecessary code bloat.