Skip to content

Minimap kann vergrößert werden#16

Open
ginogeorgiev wants to merge 10 commits into
mainfrom
feature/341-large-map
Open

Minimap kann vergrößert werden#16
ginogeorgiev wants to merge 10 commits into
mainfrom
feature/341-large-map

Conversation

@ginogeorgiev
Copy link
Copy Markdown
Collaborator

@ginogeorgiev ginogeorgiev requested a review from r-zander October 8, 2019 11:39
Copy link
Copy Markdown
Collaborator

@r-zander r-zander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paar kleine Sachen noch, aber sonst einwandfrei.

min-width: 1px; //dummy width to render and read height

background-color: @backgroundColorDark;
background-clip: content-box; // don't let the background mix with the border
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die große Map hat ja keinen Border, also kann die Zeile weg


function update() {
this.trackedGameObjects.forEach(gameObject => {
// TODO Rotation des largeMapIcons anpassen
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dieses TODO wurde erledigt und kann weg

if (Game.state !== Game.States.PLAYING) {
return;
}
if (event) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnötig. Das prüft einfach nur, ob es ein Event gibt - was immer der Fall ist. Auch der parameter event kann dann weg.

this.scale = this.width / this.mapWidth;
this.iconSizeFactor = this.scale * sizeFactorRelatedToMapSize;

this.domElement = document.getElementById("largeMap");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schau mal, oben der container ist bereits genau dasselbe Element. Schieb mal diese Zeile nach Zeile 47 und ändere sie zu this.domElement = container

@r-zander
Copy link
Copy Markdown
Collaborator

r-zander commented Oct 8, 2019

@xyckno Nicht wundern, ich habe 'develop' einmal in deinen Branch gemerged, damit es keine Merge Conflicts mehr gibt. Unter anderem gibt es jetzt type safe events und interfaces für Game :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants