feat: add initialSnakeSize and initialFoodCount to GameOptions
- New option: initialSnakeSize (defaults to 3)
- New option: initialFoodCount (defaults to 1)
- Snake spawns with configurable size
- Initial food count is configurable
- Example: useGame({ initialSnakeSize: 5, initialFoodCount: 2 })
This commit is contained in:
@@ -35,6 +35,8 @@ export type GameOptions = {
|
||||
startingLevel?: number;
|
||||
foodsPerLevel?: number;
|
||||
maxLevel?: number;
|
||||
initialSnakeSize?: number;
|
||||
initialFoodCount?: number;
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user