Skip to content
Snippets Groups Projects
Commit c9e00397 authored by Paolo Brasolin's avatar Paolo Brasolin
Browse files

feat: #fe mono newspaper style for clue payload

parent a97aba04
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,19 @@ const TEXT_STYLE: {
testString: GERMAN_ALPHABET,
};
},
NEWSPAPER: (height) => {
MONO_NEWSPAPER: (height) => {
return {
fontSize: `${height * 1.4}px`,
fontFamily: FONTS.MONO,
color: "#333333",
stroke: "#666666",
strokeThickness: 4,
testString: GERMAN_ALPHABET,
backgroundColor: "#aaaaaa",
padding: { x: 8 },
};
},
FRAK_NEWSPAPER: (height) => {
return {
fontSize: `${height * 1.4}px`,
fontFamily: FONTS.FRAK,
......@@ -61,7 +73,7 @@ export class TextCluePayload
baseHeight: number;
constructor(scene: FightScene, baseHeight: number) {
super(scene, 0, 0, "", TEXT_STYLE.TYPEWRITER(baseHeight));
super(scene, 0, 0, "", TEXT_STYLE.FRAK_NEWSPAPER(baseHeight));
this.setAlpha(0);
this.baseHeight = baseHeight;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment