Fluxograma
Python Game
Conteúdo do fluxograma
Open menu()
start
User opens
menu
Game level:
Easy
Difficult
Set lives to 1, increase speed as player moves and ensure snakes are more than food
no
Easy
yes
Set lives to 3, keep speed the same and equal number of food and snakes
Music?
Mute; no sounds
no
Play Music/ Continue playing
yes
Sound?
Mute; player makes no sounds
no
Play sounds
yes
Player wants to exit?
end
yes
no
Game Events()
start
Create Player,
Snakes and Food
Has player collided with something?
Did player collide with Snake?
Yes
Did player collide with food?
Has player
reached
final size?
No
Deduct 1 life
Is player dead?
Increase size of player, remove food from screen
exit
yes
no
Yes
No
Yes
No
yes
No
Python Game: {Insert Title}
start
Open Menu
Game Events()
Does Player want to quit?
end
no
yes
Player()
Attributes:
name = "" (maybe)
health = 3
x_coordinate = int
y_coordinate = int
image = .png??
Behaviors:
move(): void
checkCollision(): void
Informações
- Descrição
- Fluxograma sobre Python Game, criado por Prachee Nanda em 04-01-2019.
- Criado por
- Prachee Nanda
- Visualizações
- 0
- Tags
- Avaliação