Design Patterns and Code Maintainability in Games: A Case Study

  • Vitor Braga Estevam UFC
  • Alysson Diniz dos Santos UFC
  • Matheus Paixao UECE

Resumo

Design patterns are a common strategy employed in software development to promote several aspects of software quality, including code maintainability. Game development is a multidisciplinary field that includes not only software development but also animations, interactivity, sound design and others. Given the short deadlines in which game developers commonly operate, on top of the intrinsic complexity of the field itself, code maintainability is often overlooked by game developers. Hence, this work investigates how design patterns can impact the code maintainability of games. First, we performed a review to understand how (and which) design patterns can be applied to different game mechanics. Next, we selected two small games and refactored the code by applying design patterns to some of the games’ mechanics. By leveraging static analysis to assess the games’ code maintainability before and after the application of the design patterns, we observed an overall code maintainability improvement of 5.5%. The preliminary results indicate the potential to use design patterns as a strategy to improve code maintainability in the context of game development.

Referências

Ampatzoglou, A., Charalampidou, S., and Stamelos, I. (2013). Research state of the art on gof design patterns: A mapping study. Journal of Systems and Software, 86:1945–1964.

Ampatzoglou, A. and Stamelos, I. (2010). Software engineering research for computer games: A systematic review. Information and Software Technology, 52(9):888–901.

Barakat, N. (2019). A framework for integrating software design patterns with game design framework. Faculty of Informatics and Computer science.

Figueiredo, R. (2015). Gof design patterns applied to the development of digital games. In Proceedings of SBGames 2015, Teresina PI Brazil. XIV SBGames.

Gamma, E., Helm, R., Johnson, R., Johnson, R. E., Vlissides, J., et al. (1995). Design patterns: elements of reusable object-oriented software. Pearson Deutschland GmbH.

Hunicke, R., LeBlanc, M., Zubek, R., et al. (2004). Mda: A formal approach to game design and game research. In Proceedings of the AAAI Workshop on Challenges in Game AI, volume 4, page 1722. San Jose, CA.

IEEE/ISO (2011). Systems and software engineering – Systems and software Quality Requirements and Evaluation (SQuaRE) – System and software quality models. IEEE Computer Society.

Jones, M. (2022). Code metrics values. [link].

Kanode, C. M. and Haddad, H. M. (2009). Software engineering challenges in game development. In 2009 Sixth International Conference on Information Technology: New Generations, pages 260–265. IEEE.

Nystrom, R. (2014). Game Programming Patterns. Genever Benning.

Paschali, M.-E., Volioti, C., Ampatzoglou, A., Gkagkas, A., Stamelos, I., and Chatzigeorgiou, A. (2021). Implementing game requirements using design patterns. Journal of Software: Evolution and Process, 33(12):e2399.

Wedyan, F. (2020). Impact of design patterns on software quality: a systematic literature review. IET Software, 14(1):1–17.
Publicado
2023-11-06
Como Citar
ESTEVAM, Vitor Braga; SANTOS, Alysson Diniz dos; PAIXAO, Matheus. Design Patterns and Code Maintainability in Games: A Case Study. Anais Estendidos do Simpósio Brasileiro de Jogos e Entretenimento Digital (SBGames), [S.l.], p. 299-304, nov. 2023. ISSN 0000-0000. Disponível em: <https://sol.sbc.org.br/index.php/sbgames_estendido/article/view/27824>. Acesso em: 18 maio 2024. doi: https://doi.org/10.5753/sbgames_estendido.2023.234103.
Seção
Trilha de Computação – Artigos Curtos