Twinklebear / LPCGame

Working on a C++ tile based 'engine' using SDL
MIT License
18 stars 1 forks source link

Speed Up and Animations #6

Closed btstevens89 closed 11 years ago

btstevens89 commented 11 years ago

This pull introduces some speed ups.

  1. It pre-computes several variables for a large nested for loop.
  2. It improves some exception handling that caused massive slowdowns.
  3. Changes a datatype from Vector to Set, simplifying code and execution time.

This pull also adds directional walking animations.

Twinklebear commented 11 years ago

Awesome! I like the animation additions too.

As a side note, the Player and NPC classes will be phased out soon and be replaced entirely by Lua scripted entities, so the code in the Player functions will be moved to Lua and re-worked to use the Lua API