Skip to content

NTUEE-ESLab/2021Spring-Reality-Motion-Game

Repository files navigation

2021eslab_final

Setup & Usage

Setup on Mbed compiler

  • Configure the Wi-Fi shield to use.

    Edit mbed_app.json to include the correct Wi-Fi shield, SSID and password. In our example, wifi-shieldis "WIFI_ISM43362". Notice that STM32 usually support only 802.11g, so you may have to check your wifi configuration.

        "config": {
             "wifi-shield": {
                     "help": "Options are WIFI_IDW0XX1",
                     "value": "WIFI_IDW0XX1"
                     },
             "wifi-ssid": {
                 "help": "WiFi SSID",
                 "value": "\"SSID\""
             },
             "wifi-password": {
                 "help": "WiFi Password",
                 "value": "\"Password\""
             }
        }
    
  • Import Sensor library BSP_B-L475E-IOT01 and wifi-ism43362. There is a button under the bottom right corner of the screen.

Setup for the game

  • If you have not installed pygame previously, run pip install -r requirements.txt under game/project.

Starting the game

  1. Under game/project, run python treasure-hunt.
  2. Make sure STM32 board is held in right hand with hand vertical to ground and press the restart button.
  3. The pygame window will automatically pops up when the wifi connection is successfully established.
  4. Game instructions:
    • Eat the two treasures and avoid getting hit by aesteroids.
    • Stand: remain in the same spot.
    • Walk: move forward.
    • Right twist: turn right.
    • Run: fire.
    • Raise hand: accelerate.

Progress

Demo

Final Project Demo

Final Project Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages