Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
FLARE [ARCHIVED]

wiki fix for power definitions

protective1
Friday, August 29, 2014 - 11:08

I just tried out Flare and can't believe how awesome it is.  I was feeling nostalgic for Nox and Flare really scratched the itch.

I was looking through the wiki (https://github.com/clintbellanger/flare-engine/wiki/Power-Definitions) to see how mods are coded and noticed that the definitions for lifespan and speed don't seem to be consistent with what happens in the game. Here is what the wiki says:

  • lifespan is the number of frames the hazard exists for
  • speed is the number of map units per frame the hazard(s) traverse.

This doesn't make sense according to what I'm seeing in the game.  For example, in the fantasycore powers.txt, Shock has lifespan 24 and speed 16.  According to the wiki definitions, that would give it a range of lifespan * speed = 24 * 16 = 384, when actually the range in-game seems to be about 12-13 map tiles.  Is it possible that speed is really the number of map units per second (instead of per frame), given that there are 30 frames per second?

Can someone familiar with the code verify the correct definition of lifespan and speed for powers?

  • Log in or register to post comments
Clint Bellanger
joined 15 years 8 months ago
Friday, August 29, 2014 - 11:42
Clint Bellanger's picture

It looks like outdated documentation, AND you may be looking at an older version.

We tried making it a bit easier. Here's the current Shock values via

https://github.com/clintbellanger/flare-game/blob/master/mods/fantasycor...

lifespan=800ms

speed=16

I think speed is tiles per second. And each tile is now one unit square (1.0 x 1.0). So Shock will now travel 0.8 seconds * 16 tiles/second = 12.8 tiles total distance. A much more sensible calculation.

In the high res art I'm working on, the tiles will also be 1 square meter. So e.g. tiles per second will be the same as meters per second.

  • Log in or register to post comments
protective1
joined 10 years 8 months ago
Friday, August 29, 2014 - 12:30

Thanks for the quick response, Clint.

 

As for which version I was looking at, it's the 0.19 version for Windows which I downloaded from the Flare homepage, not your most up-to-date repository version.

  • Log in or register to post comments
Clint Bellanger
joined 15 years 8 months ago
Friday, August 29, 2014 - 12:37
Clint Bellanger's picture

For the previous versions, each tile was represented by a grid of 64x64 discrete integer positions. So a distance of "384" means 384/64 = 6 tiles. We changed over to floating point positions to add flexibility at various tile resolutions.

  • Log in or register to post comments