arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.21171cs.SEcs.AI
收藏

LLM辅助重构与无尽跑酷游戏玩法特征生成的探索性案例研究

An Exploratory Case Study of LLM-Assisted Refactoring and Gameplay Feature Generation in an Endless Runner Game

IU International University of Applied Sciences(国际应用科学大学)

Jan Wunderlich, Markus Kleffmann, Sebastian Lempert

AI总结:

通过GPT-4o在Python/Pygame无尽跑酷游戏中的案例,发现LLM在局部重构任务上表现可靠,但在需要跨系统交互的新玩法生成任务中成功率较低。

摘要:

大型语言模型(LLM)越来越多地被用于支持软件开发,但它们在应用型游戏开发环境中的实际实用性仍未得到充分探索,尤其是当生成的代码必须集成到现有游戏软件系统中时。本文提出了一个探索性实证案例研究,涉及GPT-4o在自定义Python/Pygame无尽跑酷游戏中的应用。该研究考察了六个选定的开发任务:三个局部重构任务和三个涉及游戏玩法特征生成的任务。通过软件度量、单元测试和手动游戏评估对生成的实现进行了评估。在本案例研究中,所有三个选定的重构任务在功能上均成功完成,而三个选定的游戏玩法特征生成任务中只有一个产生了正确集成的特征。研究结果表明,在这种设置下,GPT-4o处理局部转换比处理需要跨多个现有系统的新游戏交互任务更可靠。鉴于探索性单案例设计,这些结果最好被视为指示性观察,而非类别级模型性能的可推广证据。总体而言,本文提供了一个透明的基于案例的说明,展示了LLM辅助重构和游戏玩法特征生成在现有游戏软件系统中的机遇与局限性。

英文摘要:

Large language models (LLMs) are increasingly used to support software development, but their practical usefulness in applied game-development settings remains underexplored, especially when generated code must be integrated into an existing game software system. This paper presents an exploratory empirical case study of GPT-4o in a custom Python/Pygame endless runner. The study examines six selected development tasks: three localized refactoring tasks and three tasks involving gameplay feature generation. The resulting implementations were evaluated using software metrics, unit tests, and manual gameplay assessments. In this case study, all three selected refactoring tasks were completed successfully in functional terms, whereas only one of the three selected gameplay feature generation tasks resulted in a correctly integrated feature. The findings suggest that, in this setting, GPT-4o handled localized transformations more reliably than tasks requiring new gameplay interactions across multiple existing systems. Given the exploratory single-case design, these results are best interpreted as indicative observations rather than as generalizable evidence of category-level model performance. Overall, the paper contributes a transparent case-based account of the opportunities and limitations of LLM-assisted refactoring and gameplay feature generation in an existing game software system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑