Flowchart
Clase FRUIT
Flowchart content
__init__(self)
self.randomize()
Fin
draw_fruit(self)
x_pos = int(self.pos.x*cell_size)
y_pos = int(self.pos.y*cell_size)
fruit_sqr = pygame.Rect(x_pos,y_pos,cell_size,cell_size)
Fin
self.x = randint(0,cell_number-1)
self.y = randint(0,cell_number-1)
self.pos = Vector2(self.x,self.y)
fruits = ['default','java','R']
self.state = choices(fruits, weights = (70,25,5), k = 1)
randomize(self)
Fin
self.state == ['java']
self.state == ['default']
fruit = pygame.image.load('C:/Python/Snake/Graphics/assets/java.png').convert_alpha()
fruit = pygame.image.load('C:/Python/Snake/Graphics/assets/apple.png').convert_alpha()
fruit = pygame.image.load('C:/Python/Snake/Graphics/assets/R.png').convert_alpha()
screen_on_game.blit(fruit,fruit_sqr)
V
F
V
F
Information
- Description
- Ingeniería Flowchart on Clase FRUIT, created by Juan David Ardila Diaz on 09/06/2022.
- Created by
- Juan David Ardila Diaz
- Views
- 1
- Rating