{"author_name":"bvssvni","cat":"LD #29","comments":[],"epoch":1398459900,"likes":2,"metadata":{"p_key":"32719","p_author":"bvssvni","p_authorkey":"19918","p_urlkey":"68232","p_title":"bvssvni\u2019s Codebase in Rust for Ludum Dare","p_cat":"LD #29","p_event":"LD29","p_time":"1398459900","p_likes":"2","p_comments":"0","p_status":"UPD5","us_key":"19918","us_name":"bvssvni","us_username":"bvssvni","event_start":"1398384000","event_key":"22","event_name":"LD29"},"text":"<p>According to the rules, I need to publish my code-base before the competition starts.<\/p>\n <p>This will be posted on \/r\/rust so other Rust hackers has the same benefit.<\/p>\n <p>&nbsp;<\/p>\n <p>Because my goal is to improve Rust-Graphics, a back-end agnostic graphics engine,<\/p>\n <p>the following will be part of my code-base:<\/p>\n <p><a title=\"Rust-Graphics\" href=\"https:\/\/github.com\/bvssvni\/rust-graphics\">https:\/\/github.com\/bvssvni\/rust-graphics<\/a> (the graphics engine)<\/p>\n <p><a href=\"https:\/\/github.com\/bvssvni\/piston\">https:\/\/github.com\/bvssvni\/piston<\/a> (the game engine, depends on Rust-Graphics, glfw-rs and rust-opengles)<\/p>\n <p><a title=\"Rust-Snake\" href=\"https:\/\/github.com\/bvssvni\/rust-snake\">https:\/\/github.com\/bvssvni\/rust-snake<\/a> (example project, depends on Piston)<\/p>\n <p>&nbsp;<\/p>\n <p>To install Rust, you can clone one of the projects and type `make nightly-install`.<\/p>\n <p>This will install a nightly build of Rust on your machine.<\/p>\n <p>&nbsp;<\/p>\n <p>The best way to iterate between multiple projects is using symlinks `ln -s &lt;from&gt; &lt;to&gt;`.<\/p>\n <p>Symlink the .rlib library located in `target\/cpu-vendor-os\/lib\/` folder to the same folder in next project.<\/p>\n <p>&nbsp;<\/p>\n <p>Some updates on Rust-Graphics:<\/p>\n <p>1. Alpha blending<\/p>\n <p>2. Clear background<\/p>\n <p>3. Fill rectangles<\/p>\n <p>4. Fill polygons (convex)<\/p>\n <p>5. Fill ellipses<\/p>\n <p>&nbsp;<\/p>\n <p>Rust-Graphics now supports procedural polygon triangulation for convex polygons.<\/p>\n <p>It also has some interpolation algorithms.<\/p>\n <p>This will hopefully make it faster to add new functionality.<\/p>\n <p>&nbsp;<\/p>\n <p>I will update Rust-Graphics while trying to make a small game.<\/p>\n <p>Join the #rust-gamedev channel at irc.mozilla.org to get status updates.<\/p>\n <p>Feel free to experiment with Rust-Graphics!<\/p>","time":"April 25th, 2014 4:05 pm","title":"bvssvni\u2019s Codebase in Rust for Ludum Dare"}