Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#1289 closed enhancement (fixed)

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

Reported by: FeXoR Owned by: Jonathan Waller
Priority: Must Have Milestone: Alpha 10
Component: Core engine Keywords: rmgen
Cc: Patch:

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 (1)

entity_placement.diff (20.2 KB ) - added by FeXoR 12 years ago.

Download all attachments as: .zip

Change History (4)

by FeXoR, 12 years ago

Attachment: entity_placement.diff added

comment:1 by Jonathan Waller, 12 years ago

Owner: set to Jonathan Waller
Resolution: fixed
Status: newclosed

In 11430:

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

comment:2 by fabio, 12 years ago

Milestone: BacklogAlpha 10

comment:3 by sanderd17, 8 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.