
Impact of algorithmic and data structure implementation to game development
- 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
* Author to whom correspondence should be addressed.
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
[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/
Cite this article
Xie,Y.;Zheng,J.;Chen,K. (2024). Impact of algorithmic and data structure implementation to game development. Applied and Computational Engineering,31,96-103.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 2023 International Conference on Machine Learning and Automation
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).