• 0 Posts
  • 55 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle









  • rand() generates a number from 0 to a constant defined in stdlib, which usually corresponds to the architechture of your compiler. So, for 32 bit systems (assuming all the software in the line is 32 bit, too) it will be 2^31-1 = 2 147 483 647, as 1 bit in integers is reserved for negative numbers and 1 number is 0.

    Though, by design it is guaranteed to be at least 32767, which is a value for 16 bit integers.







  • MOBA as a genre didn’t come from WC3. There were quite a lot of predecessors to DotA, both in WC3 itself and in first StarCraft, namely Aeon of Strife is believed to be the first popular MOBA custom map out there.

    Blizzard didn’t decide that quirks of WC3 engine are dumb. Yes, they wanted to make a simpler MOBA, but the main reason for lack of funny stuff from WC3 is that they used Galaxy engine for the game, the same one StarCraft 2 was built upon.

    And HotS feels less complex not because of Galaxy’s vs WC3’s quirks (the former has plenty, too), but because of lack of gold and shop, shared experience and an actual tutorial at the beginning of the game.