-
);
diff --git a/src/features/snake-game/components/FoodLegend.tsx b/src/features/snake-game/components/FoodLegend.tsx
new file mode 100644
index 0000000..71512c7
--- /dev/null
+++ b/src/features/snake-game/components/FoodLegend.tsx
@@ -0,0 +1,23 @@
+import { memo } from 'react';
+import { FOOD_TYPES } from '../constants';
+import type { FoodType } from '../types';
+
+const ORDER: FoodType[] = ['function', 'class', 'async'];
+
+export const FoodLegend = memo(function FoodLegend() {
+ return (
+
+
// comidas
+ {ORDER.map((type) => {
+ const { points, color, label } = FOOD_TYPES[type];
+ return (
+
+
+ {label}
+ +{points}
+
+ );
+ })}
+
+ );
+});
diff --git a/src/features/snake-game/components/GameCanvas.tsx b/src/features/snake-game/components/GameCanvas.tsx
index 2018120..353a58c 100644
--- a/src/features/snake-game/components/GameCanvas.tsx
+++ b/src/features/snake-game/components/GameCanvas.tsx
@@ -86,8 +86,8 @@ export const GameCanvas = memo(function GameCanvas({ food, gridSize, particles,
}, [gridSize]);
return (
-
-
+
+