randomPoison / gunship-rs

An experimental game engine written in Rust.
MIT License
27 stars 3 forks source link

Add Code Hotloading as an Engine Feature #12

Closed randomPoison closed 9 years ago

randomPoison commented 9 years ago

This pull request adds support to the core engine for runtime code reloading. This is done by building the the game and engine into a dylib and using a loader to monitor the dylib and reload it when rebuilt. The following changes are necessary to make this work:

Minor changes are also made to various other parts of the engine and libraries, but these were part of normal development and were not specific to implementing hotloading.

There's a bunch more work that can be done for hotloading but it's reached a point where it's stable enough for regular use and there are other features I want to start working on.