Pages: [1]
|
|
|
Author
|
Topic: Unit of speed in the source code? (Read 1629 times)
|
Valaggar
Guest
|
What unit of speed is used in the source code for ships? I.e., the Pkunk Fury has a maximum speed of 64. Are they pixels per frame?
|
|
|
Logged
|
|
|
|
Novus
Enlightened
Offline
Gender:
Posts: 1938
Fot or not?
|
Not quite. Maximum velocities are counted in world units per frame, and as far as I can tell, there are 4 world units to a pixel at maximum zoom (16 at minimum). This makes the Fury's top speed 16 (maximum-zoom) pixels per frame (24th of a second, according to src/sc2code/libs/timelib.h) or 384 pixels per second.
Experimentally, a Fury can fly around the playing area (about 2000 pixels) in about 6 seconds, roughly 14 pixels/frame, which probably means I've worked it out right.
|
|
|
Logged
|
|
|
|
Valaggar
Guest
|
Ah, thank you. So there are 24 FPS? Seems that meep-eep made a little typographical error on Tabe of bio types. Corrected. (By the way, how could I forget that the length of a pixel varies with zoom?!)
|
|
|
Logged
|
|
|
|
|
Pages: [1]
|
|
|
|
|