Ticket #1289 (closed enhancement: fixed)

Opened 14 months ago

Last modified 14 months ago

[PATCH] Change placement for random maps to default 2d (x/y plane)

Reported by: FeXoR Owned by: quantumstate
Priority: Must Have Milestone: Alpha 10
Component: Core engine Keywords: review, rmgen
Cc:

Description

Changed the placement of entities in random map scripts to default 2d behavior. A unit placed with the angle 0 faces right now (towards positive x) and rotates counter clockwise when the angle is risen (mathematical positive rotation).

BUILDING_ANGlE is now -PI/4 so all random map scripts had to be changed.

Also the function 'createStartingPlayerEntities' had to be changed for that in 'misc.js'. (There you can see WHY it's changed! Unit placement angle is now the same as the direction they are placed with the civil center centered)

The resource bunches at the start locations in the random map 'fortress' are swapped but I think that doesn't matter. If Spahbod insists I will fix that.

Still no propper 'Component' to choose...

Attachments

entity_placement.diff (20.2 KB) - added by FeXoR 14 months ago.

Change History

Changed 14 months ago by FeXoR

comment:1 Changed 14 months ago by quantumstate

  • Owner set to quantumstate
  • Status changed from new to closed
  • Resolution set to fixed

In 11430:

Convert rmgen to use anticlockwise angle from the positive x axis for unit placement, patch from FeXoR, fixes #1289.

comment:2 Changed 14 months ago by fabio

  • Milestone changed from Backlog to Alpha 10
Note: See TracTickets for help on using tickets.