prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Added per frame framerate #779

Closed AristurtleDev closed 7 months ago

AristurtleDev commented 7 months ago

This adds the option to specify a framerate/delay per frame instead of a single framerate for an entire animation. This is in preparation for adding Aseprite support.

for loop is used to populate the array in the original constructor instead of Enumerable.Repeat because it's faster (Do I need to justify this?) and ++i instead of i++ since we don't need the copy. I believe compiler would optimize this anyway, so feel free to tell me to change it to i++ if preferred.