The use of educational games as interactive learning media is one solution to increase learning motivation and understanding among elementary school students. This study aims to implement the Fisher–Yates Shuffle (FYS) and Finite State Machine (FSM) methods in the development of a Unity-based educational game for Natural Sciences (IPA) and Social Sciences (IPS), and to evaluate its effectiveness in improving students’ learning outcomes. The system was developed using the Multimedia Development Life Cycle (MDLC), which consists of concept, design, assembly, testing, and distribution stages. FYS was applied to randomize quiz questions and answer options, while FSM was used to manage game flow and scene transitions in a structured manner. System testing was conducted using black-box testing, and learning effectiveness was evaluated through pre-test and post-test involving grade III and IV elementary school students. The results indicate an increase in students’ average scores after using the educational game, with improvement percentages ranging from 22% to 25%. In addition, teacher questionnaire results show that the game is feasible, easy to use, and beneficial as a supporting learning medium. Therefore, the developed Unity-based educational game is effective in enhancing students’ understanding of IPA and IPS subjects