This repository contains a WebGL Pacman build for online deployment and PHP scripts that handle data transactions between the client and server. The client is built on Unity. This project is part of the AiPerCog research project.
- Browser-based Pacman game built with Unity (WebGL)
- Located in the root directory (excluding SQL Folder)
Located in the SQL
directory:
savegamedata_json.php
: Handles gameplay data storage with transaction safety and duplicate prevention.utils.php
: Utility functions for REDCap integration and data validation.Flow.php
: Manages Flow State Scale survey data collection.
- MySQL database for storing:
- Player gameplay data
- Session information
- Player account information (username, password with hashing, and email)
- REDCap integration for psychometric data collection
- Secure data handling with input validation
- Transaction-based game state storage
- Duplicate game prevention
- Integration with REDCap for psychological measurements
- Support for Flow State Scale and other survey tools
- LAMP Stack (Linux, Apache, MySQL, PHP)
- REDCap server for psychometric data collection (hosted at University of Helsinki)
- MySQL database schema (available upon request)
The system collects various types of data:
-
Gameplay Data
- Player positions and movements
- Ghost positions and states
- Score and game progress
- Session information
-
Psychometric Data
- Flow Short Scale responses
- Other psychological measurements via REDCap (done through external link)