1. COVID-19
Program that simulates the
growth of the coronavirus and
shows the changes that are
obtained from following
preventive measures
Programing challenge
Source: envejecimientoenred.es/beta/wp-content/uploads/2020/03/2019-nCoV-CDC-23312.jpg
2. 1. Virus movement
Program the movement of the virus
meeting the following conditions:
1. Adjust the size of the virus.
2. Use the “open” backdrop.
3. The movement should start with the
key space.
4. The virus must be able to move
throught all the background.
5. The virus must bounce when hitting
walls or limits.
Take as a base the blocks shown and
improve them according to what is
observed.
3. 2. COVID-19 contagion
Use the provided blocks to simulate
the virus contagion meeting the
following conditions:
1. Adjust the size of the people.
2. The contagion should start with the
key space.
3. Start with the healthy costume for
the people.
4. When the virus touches the people
the costume must change to sick.
4. 3. Starting conditions
Every time you run the simulation the
costumes and places of the sprites
changes and if you want to start again
you need to manually set the starting
conditions.
That’s why you need to define the
starting conditions and program them to
execute at the start of the simulation.
Activity: define the starting conditions
for your program (initial position and
initial costume), and use the example
code to program your starting conditions
for the virus and for the people.
Initial position
Initial costume