Changed rotation on text
This commit is contained in:
parent
b2ef3cecf7
commit
349d2736c9
|
|
@ -182,7 +182,7 @@ export default class BlackjackGame extends Phaser.Scene {
|
||||||
const a = start + i * anglePer; // offset from straight-down
|
const a = start + i * anglePer; // offset from straight-down
|
||||||
this.add.text(centerX + radius * Math.sin(a), cy + radius * Math.cos(a), ch, style)
|
this.add.text(centerX + radius * Math.sin(a), cy + radius * Math.cos(a), ch, style)
|
||||||
.setOrigin(0.5)
|
.setOrigin(0.5)
|
||||||
.setRotation(a)
|
.setRotation(-a)
|
||||||
.setDepth(depth);
|
.setDepth(depth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue