Skip to content

Commit 6a0f7f1

Browse files
committed
game: temp fix
1 parent 80543b4 commit 6a0f7f1

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

kernel/game_be.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void game_enter() {
6969
Portal portal = {&portalMeta, &portalDes};
7070
Maze mz3 = {};
7171

72-
Maze *mazes[] = {&mz2, &mz2, &mz2};
72+
Maze *mazes[] = {&mz1, &mz2, &mz2};
7373

7474

7575
// menu
@@ -94,7 +94,7 @@ void game_enter() {
9494
for (int i = 0; i < 3; i++) {
9595
game_start(mazes[i], &optIdx, i);
9696
}
97-
97+
clearScreen();
9898
break;
9999
}
100100

kernel/game_fe.c

-23
Original file line numberDiff line numberDiff line change
@@ -287,29 +287,6 @@ void drawDialog(const char *title, const char *text) {
287287
);
288288
}
289289

290-
unsigned char getComponent(uint32_t color, int position) {
291-
return (color >> position) & 0x3;
292-
}
293-
294-
uint32_t interpolateColor(uint32_t startColor, uint32_t endColor, int currentStep, int totalSteps) {
295-
float t = (float)currentStep / totalSteps;
296-
297-
unsigned char startR = getComponent(startColor, 4);
298-
unsigned char startG = getComponent(startColor, 2);
299-
unsigned char startB = getComponent(startColor, 0);
300-
301-
unsigned char endR = getComponent(endColor, 4);
302-
unsigned char endG = getComponent(endColor, 2);
303-
unsigned char endB = getComponent(endColor, 0);
304-
305-
unsigned char currentR = (unsigned char)((1 - t) * startR + t * endR);
306-
unsigned char currentG = (unsigned char)((1 - t) * startG + t * endG);
307-
unsigned char currentB = (unsigned char)((1 - t) * startB + t * endB);
308-
309-
uint32_t currentColor = (currentR << 4) | (currentG << 2) | currentB;
310-
return currentColor;
311-
}
312-
313290
void drawLevelTransitionText(const uint8_t levelNum) {
314291
uint64_t color = 0xE7E1DA;
315292
if (levelNum != 3) {

0 commit comments

Comments
 (0)