IMPLEMENTASI GAME HOROR 2D ADAPTIF “SUKMA” BERBASIS BIOFEEDBACK DETAK JANTUNG DAN FINITE STATE MACHINE BERBASIS IOT
Abstract
Pengembangan game horor konvensional yang statis sering kali gagal mempertahankan tingkat ketegangan pemain. Penelitian ini mengimplementasikan prototipe serious game horor 2D adaptif "SUKMA" menggunakan metode Game Development Life Cycle (GDLC). Sistem mengintegrasikan ESP32, Pulse Sensor Amped, broker MQTT Eclipse Mosquitto, dan Godot Engine (.NET/C#) dengan algoritma Finite State Machine (FSM). Logika FSM membagi kondisi biologis pemain menjadi tiga state: Calm (<85 BPM; 5 NPC hantu aktif), Tense (85–100 BPM), dan Panic (>100 BPM) yang memicu penyesuaian berupa pengurangan hantu, penurunan agresivitas, dan efek visual red vignette. Pengujian Black Box (11 skenario) mencapai tingkat keberhasilan 100%. Latensi transmisi data MQTT berlangsung secara real-time dengan rata-rata 42,5 ms ( ms). Sementara itu, User Acceptance Test (UAT) terhadap 20 responden menghasilkan nilai penerimaan 84,80% (Sangat Baik). Hasil ini membuktikan efektivitas integrasi sensor detak jantung, MQTT, dan FSM dalam menciptakan pengalaman bermain horor yang adaptif dan personal.
Conventional horror game development is often static and fails to maintain consistent player tension. This study implements "SUKMA", an adaptive 2D horror serious game prototype developed using the Game Development Life Cycle (GDLC) method. The system integrates an ESP32 microcontroller, Pulse Sensor Amped, Eclipse Mosquitto MQTT broker, and Godot Engine (.NET/C#) powered by Finite State Machine (FSM) logic. The FSM categorizes player physiological conditions into three states: Calm (<85 BPM; 5 active ghost NPCs), Tense (85–100 BPM), and Panic (>100 BPM), which triggers negative adaptations including reduced ghost count, decreased aggressiveness, and a red-vignette visual effect. Black Box testing across 11 scenarios achieved a 100% success rate. Data transmission latency via MQTT averaged 42.5 ms ( ms), well below the 100 ms real-time threshold. Furthermore, User Acceptance Testing (UAT) with 20 student respondents yielded an 84.80% approval score (Very Good category). The results demonstrate that combining heart-rate biofeedback, MQTT protocol, and FSM effectively creates a real-time, adaptive, and personalized horror gaming experience.
Downloads
References
S. Ahmad, F. Mehmood, F. Khan, and T. K. Whangbo, “Architecting Intelligent Smart Serious Games for Healthcare Applications: A Technical Perspective,” Sensors, vol. 22, no. 3, Feb. 2022, doi: 10.3390/s22030810.
M. Croissant, G. Schofield, and C. McCall, “Theories, methodologies, and effects of affect-adaptive games: A systematic review,” Entertain. Comput., vol. 47, Aug. 2023, doi: 10.1016/j.entcom.2023.100591.
G. N. Yannakakis and D. Melhart, “Affective Game Computing: A Survey,” Sep. 2023, doi: 10.1109/JPROC.2023.3315689.
P. Moschovitis and A. Denisova, “Keep Calm and Aim for the Head: Biofeedback-Controlled Dynamic Difficulty Adjustment in a Horror Game,” Jun. 2022. doi: 10.1109/TG.2022.3179842.
T. Pham, Z. J. Lau, S. H. A. Chen, and D. Makowski, “Heart rate variability in psychology: A review of hrv indices and an analysis tutorial,” Jun. 02, 2021, MDPI AG. doi: 10.3390/s21123998.
M. J. Kang and Y. C. Hwang, “Exploring the Factors Affecting the Continued Usage Intention of IoT-Based Healthcare Wearable Devices Using the TAM Model,” Sustain., vol. 14, no. 19, Oct. 2022, doi: 10.3390/su141912492.
M. Praneeth, M. Gopi Krishna, K. Kavyalahari, and V. S. Kumar, “AN IoT BASED INTELLIGENT FALL DETECTION AND HEALTH MONITORING SYSTEM,” 2021. Accessed: Jul. 27, 2026. [Online]. Available: http://annalsofrscb.ro/index.php/journal/article/view/9027
H. H. Alshammari, “The internet of things healthcare monitoring system based on MQTT protocol,” Alexandria Eng. J., vol. 69, pp. 275–287, Apr. 2023, doi: 10.1016/j.aej.2023.01.065.
A. Hermansyah, R. Hardiyanti, and A. P. P. Prasetyo, “Sistem Perekam Detak Jantung Berbasis Internet Of Things (IoT) dengan Menggunakan Pulse Heart Rate Sensor,” JTEV (Jurnal Tek. Elektro dan Vokasional), vol. 8, no. 2, p. 338, Jul. 2022, doi: 10.24036/jtev.v8i2.116677.
M. A. Rahman, Y. Li, T. Nabeed, and M. T. Rahman, “Remote monitoring of heart rate and ECG signal using ESP32,” in Proceedings - 2021 4th International Conference on Advanced Electronic Materials, Computers and Software Engineering, AEMCSE 2021, Institute of Electrical and Electronics Engineers Inc., Mar. 2021, pp. 604–610. doi: 10.1109/AEMCSE51986.2021.00127.
D. Silva, L. I. Carvalho, J. Soares, and R. C. Sofia, “A performance analysis of internet of things networking protocols: Evaluating MQTT, CoAP, OPC UA,” Appl. Sci., vol. 11, no. 11, Jun. 2021, doi: 10.3390/app11114879.
J. Khatib Sulaiman Dalam No, J. Wiratama, M. Evelin Johan, and H. Santoso, “Enhancing Gaming Engagement through the Integration of Game Design Document and Finite State Machine: A Study on Optimizing Non-playable Character Responsiveness,” Indones. J. Comput. Sci. Attrib., vol. 12, no. 4, pp. 2023–1627, Aug. 2023, doi: 10.33022/ijcs.v12i4.3328.
A. A. Pratama, I. M. Ghufron, R. Ferdian Maulana, and I. F. Anshori, “Perancangan Game 2D Side Scrolling Other Side dengan Model GDLC,” vol. 4, no. 1, 2023, Accessed: Jul. 27, 2026. [Online]. Available: https://eprosiding-old.ars.ac.id/index.php/pti/article/view/954
A. Kartadinata and M. Akbar, “IMPLEMENTASI SISTEM CHARACTER PLAYER PADA GAME RPG 2D MENGGUNAKAN GAME ENGINE GODOT,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 3, Jul. 2025, doi: 10.23960/jitet.v13i3.7163.
E. Kristian and I. A. Mastan, “Penerapan Algoritma Finite State Machine Pada Game ‘Knight And King’ Dengan Metode Game Development Life Cycle Implementation Of Finite State Machine Algorithm For Game ‘Knight And King’ Using Game Development Life Cycle Method,” vol. 6, no. 2, pp. 58–66, Aug. 2023, doi: 10.30813/jbase.v6i1.4675.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.



