If you have Windows + MatLab (>6.0) + Webcam + Free time you are very lucky!
Yes, because you can play Space Invaders or Breakout interactively so? move your body!
You just need to download and unzip this file in one directory. The zip file is very large (>3MB) because of the songs (.wav) included.
- Start MatLab.
- Plug a WebCam.
- Run gameplay.m
- Go to the menu and press "Connect WebCam...", this starts the vcapg2.dll.
- The WebCam starts with a default resolution; it must be manually changed to 320x240 pressing the icon of "vcapg2" in the windows task bar.
- Select the game you want to play and... move your body !
Some short videos in our web:
Jordi Palacin (2021). Interactive games: Space invaders + Breakout (https://www.mathworks.com/matlabcentral/fileexchange/15028-interactive-games-space-invaders-breakout), MATLAB Central File Exchange. Retrieved .
Inspired by: VCAPG2
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!