MATLAB Game function
castellano
Developed by UdL Robotic Group

Gameplay 1.0

Application of artificial vision in which your body movements are used to control both interactive games developed in MATLAB: a camera gets the movements and the software incorporates them into the game.

Gameplay.zip
This zip file includes:

- gameplay.m (the GUI of the games)
- *.wav (the sounds of the games: explosions, etc.)
- vcapg2.dll (fantastic dll to get the images of the WebCam; thanks to Kazuyuki Kobayashi)
- detecta_moviment.dll (our dll to detect body movememts; compiled to speed it up !)

Instructions
  • 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 !
  • During the game the menu is disabled, press "[X]" to end the game (or live representation). Go to the menu an press "EXIT" to close the window.

  • Games included
    Space Invaders

    Fire missils with your hands...

    Figure 1 shows our biomimetic humanoid robot called "Merce 1.0" (phonetically [merz3']) playing the game. It is a free version of the well-known "invaders" and has 7 different levels. You have to destroy the invading ships shooting defensive missiles with the movement of your hands/body. The code is mainly open source so you can add more levels, ships, etc... but do a backup copy firts !

    Fig. 1: Space Invaders.
    BreakOut

    Hit the ball with your hands...

    Figure 2 shows our biomimetic humanoid robot playing the game. This game is a free version of the famous "arkanoid" and has 4 levels. The user has to strike the ball with the movements of his hands/body in the area between the two green lines. The propose of this game is breaking all the bricks of the screen.

    Fig. 2: BreakOut.
    Future

    These iterative games were developped for the Lleida Lan Party 2007, we have no idea if we could spend more time improving/adding new games. If you are interested we can develop new games or adapt the idea to do other things...
    Tell us what you need and we will tell you if it can be done, its schedulle and its cost !


    :

    © Grup de Robotica 2007