Research Article

Impact of algorithmic and data structure implementation to game development

Yuzhe Xie1,*, Junjie Zheng2, Kerui Chen3
1. College of Letters and Science, University of Wisconsin-Madison, Madison, 53706 , United States
2. Electrical Engineering and Computer Science, Syracuse University, Syracuse, 13210, United State
3. College of Arts and Sciences, University of Miami, Miami, 33146, United State

* Corresponding author: [email protected]

Abstract

Many game developers tend to build their proprietary game engines with various algorithmic and data structure implementations. This work discusses a game made using the Pygame library that utilizes a maze generation algorithm, collision detection algorithm, and 2d shadow drawing algorithm to analyze how programming implementation could impact the game's representation, optimization, and future development. In this paper, various algorithms and data structures are compared based on their characteristic and performance, which leads to an analysis of how the game would differ from its current state if alternative implementations are used. It also addresses the issues raised by algorithms and data structures based on their interdependence relationship.

Keywords: Game Development; Framework; Algorithms; Data structures; Optimization
Published: January 31, 2024
DOI: 10.54254/2755-2721/31/20230130
Volume: ACE Vol.31
pp. 96-103
Download PDF

References

  1. Red Blob Games.(2012). 2d visibility. https://www.redblobgames.com/articles/visibility/.
  2. BrendanL.K. (2013). Swept AABB Collision Detection and Response. https://www.gamedev.net/ articles/programming/general-and-gameplay-programming/
  3. Continuous collision detection. https://nphysics.org/ continuous_collision_detection/
  4. Red Blob Game. [n. d.]. Introduction to A*. https://theory. stanford.edu/~amitp/GameProgramming/AStarComparison.html
  5. Ryan Frazier. (2021). 2D Binary Spacing Partitioning with Python and NetworkX. https://www.fotonixx.com/posts/ 2d-binary-spacing-partitioning-with-python-and-networkx/
  6. Berglund(2017) Carl Berglund. 2017. Designing a simple game AI using Fi- nite State Machines. designing-a-simple-game-ai-using-finite-state-machines. https://www.gamedeveloper.com/programming/swept-aabb-collision-detection-and-response-r3084/
  7. Buck. (2011). Maze Generation: Aldous- Broder algorithm. http://weblog.jamisbuck.org/2011/1/17/ maze-generation-aldous-broder-algorithm
  8. Edward Green. (2020). Procedural maze generator using python. https://edtg.co.uk/2020/04/16/ procedural-maze-generator-using-python/
  9. Jon. (2015).Continuous Collision Detection (CCD). https://www.stencyl.com/help/view/continuous-collision-detection/
  10. Daemian Mack. (2019). Mazes for Programmers: Dijkstra’s algorithm. https://daemianmack.org/posts/2019/12/mazes-for-programmers-dijkstras-algorithm.htmls
  11. Deepak Reddy. [n. d.]. Collision Detection in pygame susing Python. https://www.codespeedy.com/ collision-detection-in-pygame-using-python/