Impact of algorithmic and data structure implementation to game development
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.
References
- Red Blob Games.(2012). 2d visibility. https://www.redblobgames.com/articles/visibility/.
- BrendanL.K. (2013). Swept AABB Collision Detection and Response. https://www.gamedev.net/ articles/programming/general-and-gameplay-programming/
- Continuous collision detection. https://nphysics.org/ continuous_collision_detection/
- Red Blob Game. [n. d.]. Introduction to A*. https://theory. stanford.edu/~amitp/GameProgramming/AStarComparison.html
- Ryan Frazier. (2021). 2D Binary Spacing Partitioning with Python and NetworkX. https://www.fotonixx.com/posts/ 2d-binary-spacing-partitioning-with-python-and-networkx/
- 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/
- Buck. (2011). Maze Generation: Aldous- Broder algorithm. http://weblog.jamisbuck.org/2011/1/17/ maze-generation-aldous-broder-algorithm
- Edward Green. (2020). Procedural maze generator using python. https://edtg.co.uk/2020/04/16/ procedural-maze-generator-using-python/
- Jon. (2015).Continuous Collision Detection (CCD). https://www.stencyl.com/help/view/continuous-collision-detection/
- Daemian Mack. (2019). Mazes for Programmers: Dijkstra’s algorithm. https://daemianmack.org/posts/2019/12/mazes-for-programmers-dijkstras-algorithm.htmls
- Deepak Reddy. [n. d.]. Collision Detection in pygame susing Python. https://www.codespeedy.com/ collision-detection-in-pygame-using-python/