|
168 | 168 | var shoutoutNameTextOffsetX = this.canvas.width/4;
|
169 | 169 | var fontSize = 70; // For some long names we want a smaller font
|
170 | 170 | var currentName = '';
|
171 |
| - if(frame < firstFrameNumber + nameDisplayIntervalFrames){ |
| 171 | + if(frame < firstFrameNumber + 1 * nameDisplayIntervalFrames){ |
172 | 172 | currentName = 'Darklite';
|
173 |
| - shoutoutNameTextOffsetX += 64; |
| 173 | + shoutoutNameTextOffsetX += this.canvas.width / 5; |
174 | 174 | }
|
175 | 175 | else if (frame < firstFrameNumber + 2 * nameDisplayIntervalFrames){
|
176 | 176 | currentName = 'Desire';
|
177 |
| - shoutoutNameTextOffsetX += 16; |
| 177 | + shoutoutNameTextOffsetX += this.canvas.width / 7; |
178 | 178 | }
|
179 | 179 | else if (frame < firstFrameNumber + 3 * nameDisplayIntervalFrames){
|
180 | 180 | currentName = 'Dekadence';
|
181 | 181 | fontSize = 45;
|
182 |
| - shoutoutNameTextOffsetX += 32; |
| 182 | + shoutoutNameTextOffsetX += this.canvas.width / 6; |
183 | 183 | }
|
184 | 184 | else if (frame < firstFrameNumber + 4 * nameDisplayIntervalFrames){
|
185 | 185 | currentName = 'Ephidrena';
|
186 | 186 | fontSize = 40;
|
187 |
| - shoutoutNameTextOffsetX += 64; |
| 187 | + shoutoutNameTextOffsetX += this.canvas.width / 5; |
188 | 188 | }
|
189 | 189 | else if (frame < firstFrameNumber + 5 * nameDisplayIntervalFrames){
|
190 | 190 | currentName = 'Mr doob';
|
191 | 191 | fontSize = 50;
|
192 |
| - shoutoutNameTextOffsetX += 32; |
| 192 | + shoutoutNameTextOffsetX += this.canvas.width / 6; |
193 | 193 | }
|
194 | 194 | else if (frame < firstFrameNumber + 6 * nameDisplayIntervalFrames){
|
195 | 195 | currentName = 'Still';
|
196 | 196 | }
|
197 | 197 | else if (frame < firstFrameNumber + 7 * nameDisplayIntervalFrames){
|
198 | 198 | currentName = 'Solskogen crew';
|
199 | 199 | fontSize = 35;
|
200 |
| - shoutoutNameTextOffsetX += 64; |
| 200 | + shoutoutNameTextOffsetX += this.canvas.width / 5; |
201 | 201 | }
|
202 | 202 | else {
|
203 | 203 | currentName = 'You!';
|
|
0 commit comments