P5js:
Lion:
v1: https://editor.p5js.org/zixin.cheng/sketches/okLxC8Lyj
- Mouth opens when the down arrow key is pressed
- Mouth automatically closes when nothing is done
- Balls show up on canvas in random position
v2: https://editor.p5js.org/zixin.cheng/sketches/B7TWcnRoI
- Balls randomly spawn in from all 4 sides of the canvas and move towards middle
v4:https://editor.p5js.org/zixin.cheng/sketches/RH_UfXRKo
- [ ] Mouth opens
- [ ] When the space bar is hit multiple times
- [ ] Sucks in the ghosts when “s” is hit
Energy bar:
- [ ] If the space bar is hit multiple times the energy bar will increase
- [ ] The wider the mouth is opened the more energy it consumes
- [ ] When the mouth is opened at the widest the energy consumed will be slightly higher than the max value of the energy the tambourine could generate
Ghosts:
- [ ] The spawn rate increases as time go on
- [ ] Going toward the middle of the lion (destination point is middle of canvas)
- [ ] Being sucked in by the lion when “s” is hit (speed of ghost increase)
- [ ] When a ghost hits the lion, minus one life
Arduino: