VedVid / RAWIG

RAWIG (Roguelike Architecture, Written In Go) is ready to modify and expand roguelike architecture.
BSD 2-Clause "Simplified" License
16 stars 3 forks source link

Animations #107

Closed VedVid closed 2 years ago

VedVid commented 2 years ago

As of cc4e820e775ca3a0fb296a898d7f51adbbd3f832 animations are sort-of ready to use. There are problems, though:

  1. Slice of characters must have the same length as slice of colors, and this does not have much sense; I would like to have, for example, single character and multiple colors
  2. Every item of given type has the very same current frame all the time, so e.g. fire animation looks very much unnatural: every tile turns brighter in the same time; still, there are cases when such behaviour is desired.

Possible solutions:

  1. Don't know yet, probably some kind of ugly hack
  2. When item has CurrentFrame specified as "-1" on creation, then on start of the game the proper current frame would be assigned randomly
VedVid commented 2 years ago
  1. Done
VedVid commented 2 years ago
  1. Done 722daa5b26030c3ea7603aec40e9f5953f183029

Chars slice must have the same number of elements as color (then both chars and colors are updated at the same time, at the same rate) or single element (then, only color is updated over time)

VedVid commented 2 years ago

Delay is working eedf727c21a85f9fb1d897082db1126293182d54

VedVid commented 2 years ago

554126293208e4ede23538d0a18c1d44b45097a4