Skip to content

Commit 31c5e4d

Browse files
committed
add: red apple
1 parent 367c62e commit 31c5e4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
world = World()
88
snake = Snake(world, 5, 5, Direction.SOUTH)
99
green_apple = Apple(world, 2, 2, AppleType.GREEN)
10+
red_apple = Apple(world, 2, 2, AppleType.RED)
1011

1112
world.spawn_entity(snake)
1213
world.spawn_entity(green_apple)
14+
world.spawn_entity(red_apple)
1315

1416
while True:
1517
world.render()

0 commit comments

Comments
 (0)